FMX.ActnList.TActionLink.IsEnabledLinked
Delphi
function IsEnabledLinked: Boolean; override;
C++
virtual bool __fastcall IsEnabledLinked();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.ActnList.pas FMX.ActnList.hpp |
FMX.ActnList | TActionLink |
Description
Retrieves whether the Enabled property for the action and for the client of the action link are linked.
FMX.ActnList.TActionLink.IsEnabledLinked inherits from System.Actions.TContainedActionLink.IsEnabledLinked. All content below this line refers to System.Actions.TContainedActionLink.IsEnabledLinked.
Retrieves whether the Enabled property for the action and for the client of the action link are linked.
Descendants of TContainedActionLink call IsEnabledLinked to determine whether they need to distribute changes made to the action's Enabled property to the corresponding Enabled property of the client object:
- When IsEnabledLinked returns
True
:- The action controls the Enabled property.
- Changes to the action's Enabled property are reflected by changes to the corresponding property of the client object.
- When IsEnabledLinked returns
False
, the client object is not influenced by the Enabled property of its action for one of the following reasons:- It does not have a corresponding property.
- It manages the value of its corresponding property independently (more common).
Descendant classes can override IsEnabledLinked to determine whether the Enabled property is linked with the appropriate client property. If a client linked by a descendant class object does not support the Enabled property, then IsEnabledLinked always returns False
.
The implementation of TActionLink is the following:
- If the action, assigned to the action link, belongs to TCustomViewAction and the component of this action equals the client of the action link, IsEnabledLinked returns
False
. - Otherwise, IsEnabledLinked returns
True
.