Vcl.Controls.TWinControl.ActionChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Updates the control to reflect changes in its associated action.

ActionChange is called automatically when the associated action changes. It updates the control to reflect the action's current Caption, Enabled, Hint, Visible, and HelpContext properties and its OnClick event handler.

The Sender parameter is the associated action. The CheckDefaults parameter specifies whether properties and event handlers should be changed if they differ from the default values. When CheckDefaults is true, properties and event handlers are only changed when the current values are the default values (that is, when the values have not been previously changed). When CheckDefaults is false, properties and event handlers are changed, regardless of their current values.

See Also