LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create custom shortcut menu

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?

0 Kudos
Message 1 of 4
(2,936 Views)

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.

 

18999iD15AA5D3ADEB9F73

0 Kudos
Message 2 of 4
(2,928 Views)

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. 

0 Kudos
Message 3 of 4
(2,909 Views)

Gotcha. Is this a little closer to what you're talking about? (See attached VI)

 

19117iBA2C884B3287397C

0 Kudos
Message 4 of 4
(2,899 Views)