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

CreateEmulatedTextHintFont

Gets the font instance used for an emulated TextHint display.

Declaration

Source position: stdctrls.pp line 1669

function CreateEmulatedTextHintFont(

  AWinControl: TWinControl

):TFont;

Function result

TFont instance used for the emulated TextHint.

Description

CreateEmulatedTextHintFont is a TFont function which gets the font instance used to display an emulated TextHint in the control. It is retrieved by calling the CreateEmulatedTextHintFont method in the widgetset class. Widgetset classes use the font assigned to the control, but change the font color to clGrayText.

CreateEmulatedTextHintFont is called from FontChanged, and the private ShowEmulatedTextHint method.

See also

TCustomEdit.FontChanged

  

Handles changes to the font used in the control.

TCustomEdit.TextHint

  

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


Version 3.2 Generated 2024-02-25 Home