05-18-2006 10:34 AM
05-18-2006 10:57 AM
Hi,
The menu is setup by the VI Local OI.vi and the menu item have callbacks which are configured in Full OI - Configure Events Callbacks.VI except the Quit which user a user event setup.
Each item is obtained from the resourse file UIControlOperatorInterfaceStrings.ini found in the C:\Program Files\National Instruments\TestStand 3.5\Components\NI\Language\English folder or in the User folder if you have changed it
Regards
Ray Farmer
05-18-2006 12:37 PM
05-18-2006 01:36 PM
Hi,
Rather an copy the files to the User folder.
There is an ini file in the ..\TestStand 3.5\Components\User\Language\English folder called CustomStrings.ini
As an Example, I have added the following to this file and saved it.
[TSUI_OI_MAIN_PANEL]
FILE = "&MyFile"
I then launched the default LabVIEW OI from the Start | All Programs | ..... (which launches the default supplied OI)
Now instead of File as the menu item its MyFile.
Regards
Ray Farmer
05-18-2006 01:36 PM
05-19-2006 10:16 AM
05-19-2006 11:47 AM
05-19-2006 02:41 PM
You can modify this VI and notice the difference in behavior.
Each of these commands are associated with Resource Strings, so that they can easily be translated. For example, in the RTM file, you will notice that there is a menu item that is displayed as FILE, but shows up as File. FILE is stored in the resource file UIControlOperatorInterfaceStrings.ini, under TSUI_OI_MAIN_PANEL, where you will notice it is listed as FILE = "&File". The & symbol is to define a shortcut key for the letter F. If you wish to change the default names for the Top-Level Menu Items, you can change this INI file. The actual text for each menu items are defined in other language files, and can be "translated" if you wish to change the way they are displayed to the user. For instance, rather than say "Open Sequence File", you may wish the menu item to display as "Open Test Sequence". This can be done by changing the resource string that defines it.
Hopefully this clears things up! Let me know if you have other questions.
Allen P.
NI
05-21-2006 09:14 AM
05-22-2006 10:29 AM