Sign in Join
FPDoc Onlineexperiment

TCustomEdit.FontChanged procedure

Member of TCustomEditprotectedIn unit StdCtrls

Handles changes to the font used in the control.

Declaration

pascal
procedure FontChanged(Sender: TObject); override

Arguments

Sender

Object for the event notification.

Description

FontChanged is an overridden method in TCustomEdit. It ensures that the Font used for an emulated TextHint display is (re-)created when visible by calling CreateEmulatedTextHintFont.

FontChanged calls the inherited method to set flags in the control, and to perform notifications of the changed value to any child controls. The hint font is freed when the inherited method is completed.

FontChanged is assigned as the OnChange event handler for the TFont class instance in the Font property.

See also

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