Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there way to detect when user clicks on a cursor

I need to detect whenever user clicks on a cursor.
Any ideas?
 
Thanks
0 Kudos
Message 1 of 4
(3,266 Views)

Hey LMR,

What do you mean by cursor?  When the user clicks the mouse button?  When the user clicks on a control?  When the user clicks on an actual picture of a cursor on your form?

I think what you want is a mouse down or mouse click event.  You can read more about those on MSDN.  This forum is primarily for Measurement Studio issues.

So basically when you add one of those events then you can put code in there that will do what you want whenever the user clicks.  I'm attaching a couple links that might help:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.click.aspx
http://msdn2.microsoft.com/en-us/library/system.windows.input.mouse.mousedown.aspx

of course it all depends on what your desired functionality is....

Hope that gets you on the right track,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(3,261 Views)
Hi LMR,

Not sure what your end goal is, but maybe look at the AfterMoveCursor and BeforeMoveCursor graph events.  These may or may not help you out so if they don't, you will need to provide a little more information on what you want to accomplish.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 3 of 4
(3,249 Views)

Thanks for your replays.

My intend is to detect when user clicks on XYCursor object on a graph so I can display cursor's crossbars. I've tried using BeforeMoveCursor event but that happes only if user starts moving the cursor. If user doesn't want to move the cursor and only clicks on it the BeforeMoveCursor event is not firing.

Any ideas?

Thanks,

LMR

0 Kudos
Message 4 of 4
(3,240 Views)