[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomCheckBox.TextChanged

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

Declaration

Source position: stdctrls.pp line 1352

protected procedure TCustomCheckBox.TextChanged; override;

Description

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

TextChanged calls InvalidatePreferredSize to update the sizing flags for the control and its Parent. When Parent has been assigned and its AutoSize property is True, its AdjustSize method is called. The AdjustSize method in the control is called to resize the visible control.

TextChanged calls the inherited method prior to exit.

See also

TControl.TextChanged

  

Performs actions needed when the value for the Text property has been changed.

TControl.InvalidatePreferredSize

  

Marks the preferred size as invalid for this control and all parents (implies that we will look for another).

TControl.AdjustSize

  

Smart way to DoAutoSize.


Version 3.2 Generated 2024-02-25 Home