System.Actions.TContainedActionLink.SetEnabled

From RAD Studio API Documentation
Jump to: navigation, search

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 TContainedActionLink

Description

Introduces an interface for setting the Enabled property for a client of the action link.

Value specifies the new value of the Enabled property.

The associated action calls SetEnabled when its Enabled property changes so that the action link can propagate the new Value to the Enabled property of the client object of the action link.

As implemented in TContainedActionLink, SetEnabled does nothing. Descendant classes override SetEnabled to set the client's Enabled property if the IsEnabledLinked method returns True.

See Also