07-14-2010 05:56 PM
I would like to create custom run-time shortcut menus for different elements of my XYgraph (plot legend, graph palette, X/Y-scale, etc). The shortcut menus could involve;
1) new options
2) restrictions on default options
3) additions to default options
I've thought about putting transparent 'panes' on different areas of the graph to trigger the appropriate shortcut menu, but I can't find the 'pane' control. I'm using LabVIEW 2009. Is my idea feasible?
07-14-2010 09:16 PM
It's easy to customize the Run-Time Shortcut Menu for any FP control indicator. Simply edit the RTM by using the menu items "Advanced >> Run-Time Shortcut Menu >> Edit..." This will bring up a dialogue where you can customize the RTM to suit your needs. From that point, it's required to have an Event Structure on your block diagram to handle the user selections of those menu items, using event cases such as "Menu Activation?" (a filter event) and "Menu Selection (User)" under the <This VI> Event Source.
07-15-2010 11:19 AM
I understand how to make runtime shortcut menus. I've done it before. What I want to do is have different shortcut menus pop up for different areas of the XYgraph control. For example: in the plot legend I want only a delete option to pop up when the user right clicks the plot name. However, the standard shortcut menu should pop up on the square plot type section.
I know this is possible because LabVIEW has different shortcut menus for different parts of the XYgraph control.
07-15-2010 12:47 PM
Gotcha. Is this a little closer to what you're talking about? (See attached VI)