Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Change sub menu names through scripting .. ? Collapse All
Subject Author Date
Jayender S Jan 3, 2006 - 10:55 PM

is it possible to chage the sub- menu names through  scripting? if yes how to do it ? say for example the menu has got File,View,Action,Help. In file we got Exit as sub menu and now i need to change the name of this Exit to some thing like X. how to do it?                                                                                i know to change the menu name through scripting .. like this:


AutoWindow.ActiveMenuBar.ActiveButtons.Item( 1 ).CustomTextInToolbar = "Edit"


now i need to change the name o the sub menu.

Technical Support Jan 4, 2006 - 11:57 AM

In the testScripts sample application we provided you with, you can type or append the following line of VB script code:

AutoWindow.ActiveMenuBar.ActiveButtons.Item( 0 ).Children.Item( 0 ).CustomTextInMenu = "XXXXXXXXXXXXXXXXXXXXX"
After running the script, you will see that the Exit item in the File menu is renamed to XXXXXXXXXXXXXXXXXXXXX.

Jayender S Jan 4, 2006 - 9:19 PM

Thanks dude.... !!