Vcl.Controls.TControlActionLink

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.ActnList.TActionLinkSystem.Actions.TContainedActionLinkSystem.Classes.TBasicActionLinkSystem.TObjectTControlActionLink

Delphi

TControlActionLink = class(TActionLink)

C++

class PASCALIMPLEMENTATION TControlActionLink : public Vcl::Actnlist::TActionLink

Properties

Type Visibility Source Unit Parent
class public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

Links an action object to a client (generic control).

TControlActionLink is designed to link actions to clients (generic controls) that descend from TControl.

TControlActionLink keeps the linked client in the FClient field and the linked action in the Action property.

TControlActionLink defines methods supporting the linking of the action's properties and events with properties and events of the control (client). The TControlActionLink methods determine whether the action controls values of properties of the client's control, and sets values to such properties of the control. Most properties and events of the action and client have the same names: Caption, Enabled, Hint, Visible.

Use TControlActionLink as a base class when creating an action link class that targets a more specific client type. Descendent classes of TControlActionLink already support certain branches of the VCL, such as TWinControlActionLink, which supports TWinControl client types.

See Also