LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to preserve dynamic run-time shortcut menu updates for a control?

Hello all,

 

I have a question about getting control run-time shortcut menus to persist after adding new items.  I am hopeful that I'm simply missing something simple here.

 

Known Information

I understand the use of the "Shortcut Menu Activation?" event (for the control of interest) which provides the relevant control's menu reference for use with the menu VIs.  No problems there.

 

Problem

  • I start with a control which has an .rtm file assigned as its run-time shortcut menu.  
  • I then generate new items dynamically using the event/menu mechanism noted above.  
  • The problem is that there doesn't seem to be a way to *preserve* those newly added items (ie. I have to re-create the new items everytime the menu is *activated*).
  • What I observe is that, unless I add all the items every time the right-click event occurs (in the "Shortcut Menu Activation?" event case), it defaults back to the original .rtm menu state.

 

Question

Does anyone know how to either:

  • get dynamically added menu items to "stick"
  • perhaps dynamically create (new) and load an .rtm for a *control*

 

 

Thanks in advance for any thoughts.  I'm working in LabVIEW 8.6 for this particular project.

 

VM

0 Kudos
Message 1 of 3
(2,500 Views)

Update: Appears that this is not currently a feature in LabVIEW.  

 

More details and performance notes here: 

 

http://lavag.org/topic/13844-is-it-possible-to-preserve-dynamic-run-time-shortcut-menu-updates-for-a...

Message 2 of 3
(2,459 Views)

Looking at the second post link, it seems like you are trying to populate 10,000+ shortcut items on the Shortcut Menu for the control. I'm guessing these are tiered, since I don't think all of them would fit on the screen. If they are tiered, have you tried populating only the top level short cuts, and then populating more as the user navigates down the tree?

- Regards,

Beutlich
0 Kudos
Message 3 of 3
(2,437 Views)