LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Events on moving a command button control

Hello all. I've a fairly populous panel with a variable number of command buttons which have been made movable by MakeMovableCtrl(). What event/callback data value will tell me if the user moves a control using CLT-right mouse drag ?. I'm using CVI 5.5 and EVENT_RIGHT_CLICK already has a use.
Any suggestions are greatly welcomed.
0 Kudos
Message 1 of 2
(2,575 Views)
Hello

In your Right Click callback, you can detect whether which modifier key is pressed by using the GetGlobalMouseState function, so this way you can do certain operations if the user pressed the key that you need. Also, check out this example that demonstrates how to use drag and drop functions on CVI panels

Drag and Drop support for panels example program

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,575 Views)