Sign in Join
FPDoc Onlineexperiment

TCanvas.FontChanging procedure

Member of TCanvasprotectedIn unit Graphics

Implements the OnChanging event handler for the Font used on the canvas.

Declaration

pascal
procedure FontChanging(AFont: TObject); virtual

Arguments

AFont

Not used in the current implementation of the method.

Description

FontChanging is assigned as the OnChanging event handler for the Font property in the constructor for the class instance. It allows the canvas class to be notified and updated when a new font is assigned to the canvas.

FontChanging ensures that both the Handle and the Font for the canvas are valid. No actions are performed in the method if State does not contain the values csFontValid and csHandleValid. It removes csFontValid from the States property and reselects the handle for the Font in the control.

See also

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