Jump to content

Invoke Built In Menu Item


Recommended Posts

So in 2011 and 2012 with the super secret key turned on there is an "Invoke Built In Menu Item" for a VI.  It states very clearly "NOT IMPLEMENTED" so I assume don't use this your computer will explode.  

 

But this feature would be nice.  I was wondering if anyone had a method for invoking a menu item from a VI, and if anyone knew if/when this feature will be implemented?  I noticed there is a similar invoke method for an application, but this makes me think it won't work for a VI specific menu item.

 

So this is a bad example but I have a Help >> About Us menu item, how could I problematically call that as if the user pressed the menu item?  There are many, work arounds I just thought this would be one of the cleanest for my setup.

Link to comment
Assuming the accelerator exists, I usually simulate the Alt+? followed by the accelerator keypresses. 

Great suggestion.  Won't work in my case but thanks.  In my scenario (which I probably should have mentioned) I'm envisioning a time when a VI could be shown in a floating window, or in a subpanel.  When it is in a subpanel I would remove the menu bar (so it looks more like part of the main VI), and then have some other mechanism to run the menu bar from the main VI, possible through a right click menu.  When the menu bar isn't being seen (and in a subpanel) the Alt + F method (for file) doesn't work.  

 

I can of course catch the event of a separate right click menu and show the same options as a menu bar, I just thought if there is a way from the Main VI to call the menu item of the VI in a subpanel then no extra code would be required.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.