RAD Studio VCL Reference
TWinControl.ActionChange Method

Updates the control to reflect changes in its associated action.

procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;
virtual __fastcall ActionChange(TObject * Sender, Boolean CheckDefaults);

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!