[lazarus] Alignment

Micha Nelissen M.Nelissen at student.tue.nl
Tue Aug 12 10:02:38 EDT 2003


Currently aligning is done recursively, if you setbounds on a form which 
has a nested tabcontrol with a nested form with a nested form then the 
recursion goes down to the last form setting width/height and back up. 
The problem is that the win32 interface have differences between 
window/client size and this cannot be compensated if this resizing is 
done in one step. You can see this bug in the object inspector, 
differences accumulate causing the scrollbar to be partly visible among 
other things. It could be done if the form aligned it's controls and 
those controls call the interface immediately with their new 
position/size. Then the interface will report the new size back to the 
lcl which then continues aligning it's controls until all is done.

How about it?


More information about the Lazarus mailing list