03-02-2011 10:00 AM
As to the cvi's help document, the function of "EnableExtendedMouseEvents()" is obsolete, but how to use the "EVENT_MOUSE_POINTER_MOVE, EVENT_LEFT_CLICK_UP" event to realize moving a control?
David
03-02-2011 11:33 AM
Have you considered using the Run-time Movable Control instrument?
Here you can find a sample program that demonstrates its usage.
03-02-2011 05:54 PM
Hi Roberto,
Is there a way to move a control using the mouse but not to hold the "ctrl" key?
David
03-03-2011 08:02 AM
You could create your own routine by sitting in a loop reading GetGlobalMouseState () or possibly GetRelativeMouseState() to read the mouse position and button status, and then use SetCtrlAttribute() to move the control around on the user interface.