LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any idea for moving control instead of using "EnableExtendedMouseEvents()" ?

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

0 Kudos
Message 1 of 4
(2,877 Views)

Have you considered using the Run-time Movable Control instrument?

Here you can find a sample program that demonstrates its usage.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(2,872 Views)

Hi Roberto,

 

Is there a way to move a control using the mouse but not to hold the "ctrl" key?

 

 

David

0 Kudos
Message 3 of 4
(2,850 Views)

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.

0 Kudos
Message 4 of 4
(2,829 Views)