Sign in Join
FPDoc Onlineexperiment

TToolButton.TextChanged procedure

Member of TToolButtonprotectedIn unit ComCtrls

Performs actions needed when the caption text for the tool button has been changed.

Declaration

pascal
procedure TextChanged; override

Description

TextChanged is an overridden method in TToolButton used to perform actions needed when the caption text for the tool button has been changed. No actions are performed in the method if the parent tool bar has not been assigned for the tool button.

When ShowCaptions is enabled, the Invalidate method is called to cause the tool button to be redrawn.

TextChanged is called when the CM_TEXTCHANGED control message is handled for the control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.