[Lazarus] Changing default font size for all controls

Sven Barth pascaldragon at googlemail.com
Sat Jan 19 22:43:58 CET 2013


On 19.01.2013 22:39, Krzysztof wrote:
> Hi,
>
> By default controls has font size and height = 0, so size depend on OS
> configuration. Can I change global size or height to custom value for my
> application?

By default all controls also have ParentFont = True set. This means that 
they use the font settings of the topmost parent control which normally 
is the form. So changing the font settings of the form should be 
sufficient. It will not work though if you set other properties of a 
child control's font (e.g. bold, italic, color, etc.) directly as then 
ParentFont will be set to False and thus the control will not inherit 
the font size from it's parent control.

Regards,
Sven





More information about the Lazarus mailing list