01-22-2013 11:21 AM
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.
Solved! Go to Solution.
01-22-2013 02:05 PM
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.
01-22-2013 02:35 PM
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
01-22-2013 02:38 PM
Interesting, apparantly they added that in 2012. I do not see it on 2011 either but it is definitely there in 2012.
01-22-2013 02:46 PM
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