Vcl.Buttons.TBitBtn.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.Buttons.pas
Vcl.Buttons.hpp
Vcl.Buttons TBitBtn

Description


Updates the button control to reflect changes in its associated action.

Vcl.Buttons.TBitBtn.ActionChange inherits from Vcl.StdCtrls.TButtonControl.ActionChange. All content below this line refers to Vcl.StdCtrls.TButtonControl.ActionChange.

Updates the button control to reflect changes in its associated action.

ActionChange is called automatically when the associated action changes. It updates the button control to reflect the action's current Checked state. Then it calls the inherited method, which checks the associated properties for that client type.

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