From RAD Studio API Documentation
Jump to: navigation, search


function IsEnabledLinked: Boolean; virtual;


virtual bool __fastcall IsEnabledLinked();


Type Visibility Source Unit Parent
function protected
System.Actions TContainedActionLink


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:

See Also