Enables an item on a menu so a user can select it.
Menu objects
menuname.Enable ( )
Argument |
Description |
---|---|
menuname |
The name of the menu selection you want to enable |
Integer. Returns 1 if it succeeds and -1 if an error occurs. If menuname is null, Enable returns null.
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.
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()
This statement enables the m_delete menu selection on the menu m_appl:
m_appl.m_delete.Enable()