Controls.TControl.ActionChange

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Controls.pas

	procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); dynamic;


Unit: Controls

Type: method

Visibility: protected

Member Of: TControl

C++ Information

From Controls.hpp

	dynamic virtual void __fastcall ActionChange(System::TObject * Sender, bool CheckDefaults);


Unit: Controls

Type: method

Visibility: protected

Member Of: TControl

Description

Responds when the action associated with the control changes.


ActionChange is called automatically when the action object specified by the Action property, or any of its properties, changes. By default, the control action link's OnChange event handler calls ActionChange.

ActionChange updates the control properties that correspond to properties of the associated action. These properties include the Caption, Enabled, Hint, and Visible properties and the OnClick event handler.

The Sender parameter is the action object that changed. The CheckDefaults parameter indicates whether the control's properties should all be updated or only those that have not been explicitly changed from their default values. When CheckDefaults is true, only those properties and event handlers that have not been changed from the default values are updated.

See Also

Personal tools
Translations
Newest Version