Enable

Description

Enables an item on a menu so a user can select it.

Applies to

Menu objects

Syntax

menuname.Enable ( )

Argument

Description

menuname

The name of the menu selection you want to enable

Returns

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

Example 1

This statement enables the m_delete menu selection on the menu m_appl:

m_appl.m_delete.Enable()

See also