LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

MakeMovableCtrl

I am using function: MakeMovableCtrl from movectrl.fp. In my program I have to catch dragging of control (picture canvas). What Callback function do I have to use and what event are generated while a user drags a control?

Thanks LjubaS
0 Kudos
Message 1 of 3
(3,024 Views)
There is a shipping example available for this.
You can find it under C:\Program Files\National Instruments\CVI\samples\userint\custctrl\movectrl

Hope this helps.
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,009 Views)
DynamicCtrlCallback in movectrl.c uses GetMouseKeyState to check for the Control key, then looks for EVENT_LEFT_CLICK or EVENT_RIGHT_CLICK. Callbacks for the moved control and the panel it's on don't see any events. You can modify DynamicCtrlCallback in movectrl.c to set a global if the control you need to watch is moved. movectrl.c is in ...\CVI\toolslib\custctrl
0 Kudos
Message 3 of 3
(2,998 Views)