[Lazarus] Hi-DPI tweak of components

Vojtěch Čihák vojtech.cihak at atlas.cz
Wed Jun 7 00:35:19 CEST 2023


Hi,
 
I finally built a hi-DPI machine (28'' 4k display, currently set to 118PPI) and I need to tweak EC-Controls (https://wiki.freepascal.org/Eye-Candy_Controls) to scale better.
One problematic is TECSpinBtns because it is designed like this: it consists of (initially) nine small buttons (TPersistent) with hardcoded width=15 and its overall width is 9*15 =135 pixels or N*15 in general.
Therefore, when I put this component on the form, its Width is not scaled (Height is). I tried to override DoAutoAdjustLayout but it's not triggered at all.
TECSpinBtns is TGraphicControl.
 
Thanks, V.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230607/e5b7d485/attachment.htm>


More information about the lazarus mailing list