TCustomFrame.FixFrameFontsPPI procedure
Adjusts the design-time PPI settings for fonts when scaling is enabled.
Declaration
procedure FixFrameFontsPPI(PPI: Integer)Arguments
PPI | Pixels-per-Inch setting examined and adjusted in the method. |
Description
FixFrameFontsPPI is a method used to adjust font PPI settings for
the frame and its child controls. It ensures that font sizes are scaled (when
enabled) so that the PixelsPerInch setting for the frame reflects the run-time
PPI setting used in the Parent control. This occurs when the Loaded method is
executed on completion of LCL component streaming, or when a new Parent has
been assigned for the frame instance.
FixFrameFontsPPI temporarily disables alignment on the frame while the PPI settings are adjusted and cascaded to the child controls. It calls FixDesignFontsPPIWithChildren using the PPI value as an argument. This occurs when the Scaled property is enabled for both the Application and the frame instance. FixDesignFontsPPIWithChildren is not called if either of the Scaled properties is not enabled.
Added in LCL version 4.6.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
