Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF graph controls selection

Solved!
Go to solution

Is it possible now to know when user clicks at marker or annotation? It wasn't working in v.2012.

0 Kudos
Message 1 of 7
(7,535 Views)

Hi Eugenem,

 

Could you clarify what you mean by marker or annotation?  Are you just trying to register a user click event?

Peter T
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(7,476 Views)

sorry, i mean cursor of course

 

look at the picture

 

and yes, i need to know when user click at the cursor

 

currently i can only get event when user moves the cursor...

0 Kudos
Message 3 of 7
(7,403 Views)

Hi Eugenem,

 

I think what you want is to use the User32.DLL to set and get the cursor position.  It wouldn't be so much on the Measurement Studio side of things but rather just calling the Win32.GetCursorPos().  Here is a link on stackoverflow that goes through programmatically getting and setting position of the cursor and also programatically clicking.

Peter T
Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(7,334 Views)
Solution
Accepted by topic author eugenem

As mentioned in the how to get click on cursor or annotation question, only the GetChildrenAtPoint issue was fixed in Measurement Studio 2013, which is the latest release available at this time. You can now hit test against target, line, and crosshair parts of graph cursors and annotations when handling preview mouse events in the graph, but parts like labels will not return a hit test result.

~ Paul H
0 Kudos
Message 5 of 7
(7,244 Views)

Hi, Paul! Glad you're back :). I'll check this out...

0 Kudos
Message 6 of 7
(7,197 Views)

Just wanted to let you know this issue (#406324) was fixed in the Measurement Studio 2015 release.

~ Paul H
0 Kudos
Message 7 of 7
(5,457 Views)