On Fri, 3 Nov 2006, Tiziano_mk wrote:
>
> I'm trying to understand why in Lazarus (opposite to Delphi) the
> width/clientwidth and height/clientheight form properties have always the same
> value and do not consider the borders of the form.
>
> in C:\Programmi\FPC\lazarus\lcl\interfaces\win32\win32wsforms.pp
>
> under class procedure TWin32WSCustomForm.SetBounds
>
> I read this comment:
>
> // the LCL defines the size of a form without border, win32 with.
> // -> adjust size according to BorderStyle
>
> so I suppose, if this is not to be considered a bug, on Lazarus I need to keep
> this in consideration when I place my forms on the desktop.
Yes.
The problem is, I suppose, that the width of the borders is not known to X on
unix.
The window manager is a separate process which draws the borders, and I don't
think it communicates the width of the borders it uses.
To be cross-platform, the border is therefore also not taken into account on
Windows.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives