GetItemEnabled (return item status)

Top  Previous  Next

 

GetItemEnabled( name )

GetItemEnabled

Returns the enabled/disabled status of a menu item.

name

A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name.

The GetItemEnabled method returns one (1) if the item is enabled and zero (0) if the item is disabled. The SetItemEnable method sets the enabled/disabled state of a menu item.

Implementation:

The name parameter accepts up to 1024 characters.

Return Data Type:     BYTE

Example:

 IF PopupMgr.GetItemEnabled('Save')     !if item is enabled

  PopupMgr.SetItemEnable('Save',False)  ! disable it

 ELSE                                   !if item is disabled

  PopupMgr.SetItemEnable('Save',True)   ! enable it

 END

See Also:     AddItem, AddItemMimic, AddMenu, SetItemEnable