Unit 'StdCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomEdit.RealSetText

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

Declaration

Source position: stdctrls.pp line 829

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.

TCustomEdit.Text

  

The text displayed and edited for the control.

TCustomEdit.TextHint

  

Default hint text shown when the Text property is empty and the control is not focused.

TWinControl.RealSetText

  

Sets the text / caption for the control.

TControl.Caption

  

The text displayed for the control.



CT Web help

CodeTyphon Studio