Find a menu item with a name given in the main menu of the localmain.
object @MenuItemFindByTitle(string title);
Parameters
string title : Name of the main menu item to find
Return Value
Returns the menu item found.
Example
menuitem = @MenuItemFindByTitle("Graphic (&G)");
@MenuItemSetTextColor(menuitem, @RGB(255, 0, 0));
@MenuItemSetBackColor(menuitem, @RGB(0, 255, 0));
@MenuItemSetCheck(menuitem,
1);
Description : Find a menu item with the name "Graphic (& G)" and change the red background color to green and check the menu.
Version Information
Initial Version: 10.2.7
Related Helps