03-23-2010 02:59 AM
Hi Ppl,
I'm editing the LabVIEW code of the full featured user interface. I'm not able to locate the part of the code that enables the shortcut hot keys like Ctrl+S, Ctrl+O.
I disabled the menu bar from VI properties. But I still find the shortcuts working.
Thanks
Solved! Go to Solution.
03-23-2010 11:42 PM
My guess is that you use the GetCommand from the Sequence File View Manager. Then once you have the command you can modify the shortcuts using the ShortcutModifier property. I recommend you reading chapter 9 in the reference manual. As well as referring to the TS Help for Command and/or ShortcutModifier API objects.
Hope this points you in the right direction.
Regards,
03-24-2010 04:58 AM
There are some properties for the ApplicationMgr that you maybe able to use but it does seems to enable or disable.
I thought there was a VI at the start that sets up the menu items?
Have you checked out whether the user rights and privileges may do something for you?
Regards
Ray
03-24-2010 05:12 AM
Hi Ray,
I found out the place to enable/disable the hot keys. In the full featured user interface LabVIEW code there is a menu activation event. Inside this event case the menu bar is built when the user clicks on the menu. While inserting the menu items the shortcut keys are also specified. So If we don specify the shortcut keys for the menu item and if there are no other controls connected to that particular command in the front panel then that shortcut hot key will not work. This is what i concluded from my experiments.
Thanks
03-24-2010 05:38 AM
Hi,
Thanks for the info. I found this which maybe a useful bit of information, http://zone.ni.com/devzone/cda/tut/p/id/2987#toc1
Regards
Ray