Currently aligning is done recursively, if you setbounds on a form which has a nested…
Show quoted text 15 lines
We can add an interface function, to ask if bounds should be cached or sent directly. But before doing this, we should make sure that the win32 intf is doing, what it is told do to.
I have created a new example with a three nested groupboxes, all Align=alClient. (Unable to commit, because now the name server does not even know cvs.freepascal.org).
When you do this and add writeln in TWinControl.DoSendBoundsToInterface; and TWinControl.InvalidateClientRectCache;, you can see at least three bugs:
- The form is not resized after the LCL asked
the win32 interface to do so.
- the groupboxes are not resized after the LCL
asked the second time the win32 interface to do so
- The win32 intf does not tell the LCL, that
the clientrect of the groupboxes have changed
I think, these bugs must be fixed first before optimizing the LCL.
Mattias
