Checks if a menu item is enabled.
Takes userDefinedID (Int).
Returns the enabled state of a menu item identified by userDefinedID.
BGI GUI
Parameters & Returns
Parameters
userDefinedIDInt
Returns
Int
Quick Summary
Checks if a menu item is enabled.
Takes userDefinedID (Int).
Returns the enabled state of a menu item identified by userDefinedID.
Technical Exegesis...
Returns the enabled state of a menu item identified by userDefinedID. Searches menuMap for the item with matching userDefinedID and returns its isEnabled property. Returns 1 (true) if the item is enabled and can be clicked, 0 (false) if disabled (grayed out), or -1 if the item is not found.
Use the same userDefinedID that was passed to bgiAppendSubMenuItem. Useful for querying enabled state before changing it or for validating user actions.
Returns the enabled state of a menu item identified by userDefinedID. Searches menuMap for the item with matching userDefinedID and returns its isEnabled property. Returns 1 (true) if the item is enabled and can be clicked, 0 (false) if disabled (grayed out), or -1 if the item is not found.
Use the same userDefinedID that was passed to bgiAppendSubMenuItem. Useful for querying enabled state before changing it or for validating user actions. The enabled state is independent of checked state - items can be enabled but checked, or disabled but checked. Returns the current state including any changes made with bgiSetMenuItemEnabled.