[Lazarus] Default values for Top coordinate offsets for components in a visual container
Lukasz Sokol
el.es.cr at gmail.com
Fri Sep 10 11:25:57 CEST 2010
On 09/09/2010 11:35, Juha Manninen (gmail) wrote:
> Hi
>
> I partly solved 2 old issues
> #942: Mis-Aligned components within GroupBox
> and
> #7671: Components within GroupBoxes are displaced
>
> by implementing Top coordinate offset with user defined values in Delphi
> converter.
>
> The value is defined separately for each container type (currently TGroupBox
> and TPanel). I can implement the left coordinate later.
> A runtime solution would be needed if the same .dfm form is used in both
> Delphi and Lazarus. I will see that later.
>
> Now I would need some good default values for Top and Left offsets. I know they
> depend on widgetset and theme but the user can change them if the default is
> not good for him. Now there is:
> TGroupBox.Top + 10
> TPanel.Top + 2
> Taken from my hat without measuring much anything.
>
Isn't +10 the GroupBox's label/caption height in pixels ?
and the +2, something to do with the bezel or the line-around-groupbox width ?
L.
> Juha
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list