Forum > LCL
problem with label alignment in pagecontrol
wp:
--- Quote from: jamie on November 27, 2022, 08:23:51 pm ---whatever he did it didn't solve anything from what I can see, it still fails.
--- End quote ---
No, he fixed the first level of visibility (Label.Visible = false).
wp:
--- Quote from: wp on November 27, 2022, 10:45:58 pm ---
--- Quote from: jamie on November 27, 2022, 08:23:51 pm ---whatever he did it didn't solve anything from what I can see, it still fails.
--- End quote ---
No, he fixed the first level of visibility (Label.Visible = false).
--- End quote ---
... but he met serious difficulties when extending the fix into the LCL (all parents of the label must be visible!), and in the end the changes would be too massive and risky so that he decided to revert the related changes and document them as Delphi-incompatibility issues:
- https://wiki.freepascal.org/Lazarus_2.4.0_release_notes#LCL
- https://wiki.freepascal.org/TLabel#Delphi_incompatibility_for_right-aligned_labels
jamie:
why not simply post pone the update of the label after a Text change has been issued until it becomes visible?
So basically, don't to any of the calculations until visible. make a fPostPoneAlign etc.
Navigation
[0] Message Index
[*] Previous page