[Lazarus] Hi-DPI tweak of components

Ondrej Pokorny lazarus at kluug.net
Thu Jun 15 08:33:51 CEST 2023


On 14.06.2023 21:52, Vojtěch Čihák via lazarus wrote:
>
> Hi,
>
>
> I have one more question to DoAutoAdjustLayout();.
>
> I use TECSpinBtns (TGraphicControl) in two variants:
>
> The first as a stand-alone component and the second as a part of 
> TECSpinEdit (where TEdit is Owner and TECSpinBtns is subcomponent 
> anchored to it).
>
> When I put them on the form, DoAutoAdjustLayout() is triggered only in 
> the first case.
>
> Is it that Owner is responsible to call DoAutoAdjustLayout() of owned 
> controls?
>
This is strange. All controls should be adjusted regardless of the 
Owner. TLabeledEdit works fine (edit that has an attached label).

Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230615/80ea71e4/attachment-0001.htm>


More information about the lazarus mailing list