FMX.ActnList.TCustomAction.SetEnabled

From RAD Studio API Documentation

Delphi

procedure SetEnabled(Value: Boolean); override;

C++

virtual void __fastcall SetEnabled(bool Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.ActnList.pas
FMX.ActnList.hpp
FMX.ActnList TCustomAction

Description

Sets the Enabled property of the action to the specified Value and propagates this Value to all clients of the action. {{#multireplace:FMX.ActnList.TCustomAction.SetEnabled|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Actions.TContainedAction.SetEnabled|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Actions.TContainedAction.SetEnabled|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

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:

See Also