Vcl.Controls.TControl.Action

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Action: TBasicAction read GetAction write SetAction;

C++

__property System::Classes::TBasicAction* Action = {read=GetAction, write=SetAction};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Specifies the action associated with the control.

Action is the action object that is associated with the control. Actions allow an application to centralize the response to user commands. When a control is associated with an action, the action determines the appropriate properties and events of the control (such as whether the control is enabled or how it responds to an OnClick event).

To create actions at design time, place an action list component on a form or data module. Double-click the action list to bring up the action list editor. Add actions in the editor using its context menu. Once the actions have been added using the Action List editor, they appear in the drop-down list for the Action property in the Object Inspector.

See Also

Code Examples