TToolButton.ActionChange procedure
Implements the handler signalled when the Action for the tool button is changed.
Declaration
procedure ActionChange(Sender: TObject; CheckDefaults: Boolean)
; overrideArguments
Sender | New action for the control, or Nil. |
CheckDefaults | Indicates if the property in the action must be assigned (not empty). |
Description
ActionChange is an overridden method which implements an event
handler signalled when the
Action for the tool button is changed.
The Sender argument is the new TCustomAction instance
assigned to the Action property for the tool button.
CheckDefaults indicates when values from the action are copied
into the control. When set to
True, the values in the Action are
applied only when its property value has been assigned.
ActionChange calls the inherited method on entry to copy properties from
Sender to the control. It provides support for translating the
Checked property in the action to the Down property
used in the tool button. It also changes the value in ImageIndex
only when a valid image index has been assigned in the Action.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
