FMX.ActnList.TActionLink.IsEnabledLinked
Delphi
function IsEnabledLinked: Boolean; override;
C++
virtual bool __fastcall IsEnabledLinked(void);
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.
TContainedActionLink descendants call IsEnabledLinked to determine whether they need to propagate 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, either because it does not have a corresponding property, or, more commonly, because it manages the value of its corresponding property independently.
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.
As implemented in TActionLink:
- IsEnabledLinked returns
False
if the action, assigned to the action link, belongs to TCustomViewAction and the component of this action equals the client of the action link. - Otherwise, IsEnabledLinked returns
True
.