LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect "bring to center" cursor event in graph

Solved!
Go to solution

I have an XY graph where I update a table of the values of data on the graph when the user moves the cursor.

I would like to detect when the user chooses the "Bring to Center" from the cursor menu but there doesn't seem to be an event case for that.

I already have a case for "Cursor Move", "Cursor Grab" and "Cursor Release", but none of those handles the "Bring to Center".

Short of putting a button near the graph to bring the cursor to the center and updating my table then, is there any way to detect this?

 

Thanks.

Brian Smith
Advanced Light Source
Lawrence Berkeley National Laboratory
0 Kudos
Message 1 of 5
(3,081 Views)

When looking at the events for the event structure, click your graph, expand the "Shortcut Menu" and choose "Cursor Menu Selection". This event gives you the item tag, APP_SC_CURSOR_BRING_TO_CENTER is the tag for "Bring to Center". Filter within the event for that tag and you should be good to go.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
Message 2 of 5
(3,072 Views)

Hello Charles,

Thanks for writing.

 

There are three options in the Edit Events dialog:

 

Cursor Menu Selection? (App)

Cursor Menu Selection (App)

Cursor Menu Selection (User)

 

I tried all three but none is called when I select Cursor/Bring to Center.

This is LV 2011 f2.

 

- Brian Smith

 

Brian Smith
Advanced Light Source
Lawrence Berkeley National Laboratory
0 Kudos
Message 3 of 5
(3,065 Views)

Interesting, apparantly they added that in 2012. I do not see it on 2011 either but it is definitely there in 2012.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
Message 4 of 5
(3,062 Views)
Solution
Accepted by topic author BVSmith

Ok, we're going to 2012 (on our 100 installations) in a few weeks.

We can wait until then for this 🙂


Thanks again.

 

Brian Smith

Advanced Light Source

Lawrence Berkeley National Laboratory

Brian Smith
Advanced Light Source
Lawrence Berkeley National Laboratory
0 Kudos
Message 5 of 5
(3,056 Views)