System.Actions.TContainedAction.SetEnabled
Delphi
procedure SetEnabled(Value: Boolean); virtual;
C++
virtual void __fastcall SetEnabled(bool Value);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | System.Actions.pas System.Actions.hpp |
System.Actions | TContainedAction |
Description
Sets the Enabled property of the action to the specified Value and propagates this Value to all clients of the action.
The behavior of SetEnabled depends upon the State of the ActionList action list:
- If the value of State is
asSuspended, then SetEnabled sets to the specifiedValueonly the Enabled property of the action. - If the value of State is
asSuspendedEnabled, then SetEnabled sets to True the Enabled property of the action and of all clients of the action. - Otherwise, SetEnabled sets to the specified
Valuethe Enabled property of the action and propagates thisValueto all clients of the action.