Sign in Join
FPDoc Onlineexperiment

TCustomButton.TextChanged procedure

Member of TCustomButtonprotectedIn unit StdCtrls

Performs actions needed when the CM_TEXTCHANGED message is handled in the control.

Declaration

pascal
procedure TextChanged; override

Description

TextChanged is an overridden method used to performs actions needed when the CM_TEXTCHANGED message is handled in the control.

TextChanged calls InvalidatePreferredSize and causes the preferred height and width for the control to be recalculated. When Parent has been assigned and its AutoSize property is set to True, the AdjustSize method in Parent is called. The AdjustSize method for the control is called to resize the control or update control flags when delayed auto-sizing is in use.

TextChanged calls the inherited method prior to exit.

See also

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