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

TCustomEdit.RealSetText

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

Declaration

Source position: stdctrls.pp line 828

protected procedure TCustomEdit.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

TCustomEdit.CanShowEmulatedTextHint

  

Indicates if the value in TextHint can be displayed in the edit control.

TCustomEdit.Modified

  

True when the value in Text has been changed using the keyboard.

TCustomEdit.Text

  

The text displayed and edited for the control.

TCustomEdit.TextHint

  

Default hint text shown when the Text property is empty for the control.

TWinControl.RealSetText

  

Sets the text / caption for the control.

TControl.Caption

  

The text displayed for the control.


Version 3.2 Generated 2024-02-25 Home