# SelectMenuItem

Objects
Menu
4.9.1.0 GWE
bool
int number Number of the menu item which is to be selected. The first entry is number 0.
Sets menu selection in an object menu.
SelectMenuItem can be used in conjunction with GetMenuSelection to update menu entries without losing menu item selection.
var selection = -1; // Menu bereits geöffnet? if(GetMenu()) selection = GetMenuSelection();

// [ Hier Menu (neu) erstellen... ]

// Selektion wiederherstellen? if(selection >= 0) SelectMenuItem(selection);
GetMenuSelection
GetMenu
CreateMenu
AddMenuItem
PeterW
2002-10