[Lazarus] Default values for Top coordinate offsets for components in a visual container

Juha Manninen (gmail) juha.manninen62 at gmail.com
Fri Sep 10 12:26:43 CEST 2010

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.


More information about the Lazarus mailing list