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


Performs actions needed when the Font for the control has been changed.


Source position: controls.pp line 2391

protected procedure TGraphicControl.FontChanged(

  Sender: TObject

); override;




Object instance for the event notification.


FontChanged is an overridden method in TGraphicControl used to perform actions needed when the Font for the control has been changed. It is the routine used as the OnChange event handler for the Font property, and is assigned in the inherited constructor for the class instance.

Sender contains the object instance for the event notification, and is provided to maintain compatibility with the TNotifyEvent signature for the event handler. It is not used in TGraphicControl, but is passed as an argument to the inherited method.

FontChanged ensures that the new value for the Font property is also applied to the Canvas for the control. This includes the PixelsPerInch setting for the Font. FontChanged calls the inherited method prior to exit.

See also



Handles changes to the Font property.



The font to be used for text display in this control.



Constructor for the class instance.



Display density for the font.

CT Web help

CodeTyphon Studio