[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs actions needed when the Font for the control has been changed.
Source position: controls.pp line 2487
protected procedure TCustomControl.FontChanged( |
Sender: TObject |
); override; |
Sender |
|
Object instance (TControl) for the event notification. |
FontChanged is an overridden method in TCustomControl 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.
|
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. |
Version 3.2 | Generated 2024-02-25 | Home |