Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor AfterMove

Solved!
Go to solution

I would like a Cursor event that would only fire when the cursor is dropped by the mouse. 

I tried AfterMove event but it seems like the event is being fired for every move of the cursor.

 

How can I get it so that I only catch the drop of the cursor? So when the user is done setting the

cursor's position.

 

Thanks 

0 Kudos
Message 1 of 3
(3,741 Views)

There is not a specific event that will capture the cursor being moved along with the mouse click up. However, you could achieve this functtionality by setting a flag in the event AfterMoveCursor then in the event MouseUp check to see if that flag is set, if it is then run your code and reset the flag, otherwise do nothing.

 

Regards,

 

Steven Zittrower

Applications Engineer

National Instruments

http://www.ni.com/support

Message 2 of 3
(3,730 Views)
Solution
Accepted by datzstr8
Thank you that worked for me.
0 Kudos
Message 3 of 3
(3,727 Views)