Vcl.Menus.TMenuItem.Enabled

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Enabled: Boolean read FEnabled write SetEnabled stored IsEnabledStored default True;

C++

__property bool Enabled = {read=FEnabled, write=SetEnabled, stored=IsEnabledStored, default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Specifies whether the menu item is enabled.

Use Enabled to enable or disable a menu item. If Enabled is true, the Click method is called when the user selects the item with the mouse. If Enabled is false, the menu item appears dimmed and the user cannot select it. However, calling the Click method works even when Enabled is false.

Note: This property is not stored with the menu item if it is supplied by a TAction object.

See Also

Code Examples