In Lazarus GTK2 panels are positioned differently to Lazarus Win32 and Delphi
Original Reporter info from Mantis: Maxerist
-
Reporter name: Max Vlasov
Original Reporter info from Mantis: Maxerist
- Reporter name: Max Vlasov
Description:
Lazarus GTK2 for all panels the bevel space is added to children positions, so if the child has Top=0 it is placed several pixels lower than it is placed in Lazarus Win32 and Delphi (in attached files Panels_Windows.png shows correctly placed panels, Panels_Ubuntu.png shows ubuntu screenshot and real measured distances).
This can be a little problem for one level of controls, but for every sub-child panel the difference is accumulated, so two labels placed on two panels having different nesting level can lie on the same visual line, but in with GTK2 the one label lies noticeably lower than the other (see Labels_Ubuntu.png and Labels_Windows.png)
Additional information:
I think that fixing this directly can pose some problems for existing projects (the forms in people's project will start to look a little differently), but not fixing this make designing forms for two platforms more difficult. For example, I frequently use bevel-less panels just as containers for convenience, copy them from one form to another and since no matter how much levels used, the look is the same, some of my controls can safely live in deeply nested panel so can be affected by the 'label' problem I described.
Mantis conversion info:
- Mantis ID: 19658
- Version: 0.9.30.1 (SVN)
- Fixed in revision: 31534 (#e0012b32)