Sign in Join
FPDoc Onlineexperiment

TCustomEdit.RealSetText procedure

Member of TCustomEditprotectedIn unit StdCtrls

Updates Modified and the TextHint display when storing the new Text value.

Declaration

pascal
procedure RealSetText(const AValue: TCaption); override

Arguments

AValue

New value stored as the text/caption for the control.

Description

RealSetText is an overridden method in TCustomEdit. It ensures that the value in Modified is updated when a new value in Text is applied to the Caption for the control. It also hides the TextHint display when the new value is not an empty string ( '') by calling HideEmulatedTextHint.

RealSetText calls the inherited method to store the Text value, and to adjust the control size when needed.

The TextHint is re-displayed when it is hidden and CanShowEmulatedTextHint returns True.

See also

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