06-22-2011 02:45 AM
Hi
Is there a wy to edit a short cut menu from a control / indicator via scripting
Jürgen
06-22-2011 03:12 AM
What do you mean by "Short Cut". You can access the Short Cut settings, that you can define in the properties dialog via property nodes (not even vi-scripting).
If you are talking about the IDE, then the only settings to shortcuts that I know of are in Tools -> Options ... -> Short Cuts ? (well in German it is "Menüverknüpfungen", should be underneath print and path).
Cheers
06-22-2011 05:41 AM
Hi
The idea is that I can write, when the progarm is in the run state, a short cut menue depending on the program state into the short cut menue of the control
I mean the short cut menue with the right mouse click when the VI is running
I hope that's make it clear
I found nothing to do that
it seams to me that I can only do the in die edit mode of a VI
Jürgen
06-22-2011 06:04 AM
The event structure has a Shortcut Menu Activation? event which is triggered when you right click a control. The event returns a reference to the menu which you can use with the menu primitives to modify the menu.
06-22-2011 06:43 AM
That would be the right-click menu, with Short-Cut I was assuming a Key Combination. In which case you could use the Key down or the Key down? events. You could implement this on the control/indicator or the VI level.
06-22-2011 07:57 AM
Thanks for your help
I learned again some think about LabVIEW
Jürgen
PS
Now I found the example
Run-time Shortcut Menus.VI
This Vi is the solution to my problem