Description
Enables an item on a menu so a user can select it.
Applies to
Menu objects
Syntax
menuname.Enable ( )
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If menuname is null, Enable returns null.
Usage
Enabling a menu item changes its color to the active color (not the dimmed, or disabled, color). Calling Enable sets the item's Enabled property to true.
Equivalent syntax
Setting the menu's Enabled property is the same as calling Enable.
menuname.Enabled = TRUE
This statement:
menu_appl.m_delete.Enabled = TRUE
is equivalent to:
menu_appl.m_delete.Enable()
Examples
This statement enables the m_delete menu selection on the menu m_appl:
m_appl.m_delete.Enable()
See also