![]() |
GetItemState | ![]() |
|
GetItemState Returns a number representing the current state of the item. State = myMainMenu.GetItemState( Item_Name ) Return value A combination of STATE_DISABLED, STATE_CHECKED and/or STATE_RADIO. If no state, returns STATE_NORMAL (0). Parameters
The return value can be compared with: If( State & STATE_DISABLED() ) // Will be TRUE if the item is disabled. If there are multiple items in the menu with the same ID, this will check only the first (left-right, top-bottom). See also MainMenu:IsItemDisabled MainMenu:IsItemChecked MainMenu:IsItemRadio MainMenu:IsItemUnChecked JAM © 2005 no one in partiular Project started by David Evans in 2005 | ||