On Friday 10 September 2010 12:25:57 Lukasz Sokol wrote: > Isn't +10 the GroupBox's label/caption height in pixels ?
Yes but it depends on widgetset and theme. There is no absolute correct value, or the absolute value should be inspected at run-time somehow. > and the +2, something to do with the bezel or the line-around-groupbox > width ? Yes, there is a border and the coordinates are relative to ClientWidth and ClientHeight. In Delphi they are relative to the total Width and Height. All TWinControl descendants have this problem I am told. If you have some good default values, please let me know. Juha -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
