Programmer's Guide > Interfaces > MenuItem interface > enabled attribute
  
enabled attribute
Shows whether the menu item is active or not.
enabled
Access
read-write
Returns
boolean
Set throws
WindowException
INVALID_MODIFICATION_ERR: Raised if the object is a top-level menu item which cannot be disabled.