[lazarus] Bug in lcl resizing code and patch for win32

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Jun 28 07:45:23 EDT 2003


On Sat, 28 Jun 2003 13:58:43 +0200
"Micha Nelissen" <mdvpost at hotmail.com> wrote:

> Mattias Gaertner wrote:
> > On Sat, 28 Jun 2003 01:33:43 -0300
> > Karl Brandt <pascalive at bol.com.br> wrote:
> > 
> >> Attached is a patch that makes the form sizes correct.
> >> But when we move or resize the window, strange effects occurs.
> >> This happens because the LCL in TWinControl.InitializeWnd, sends a
> >> LM_SETSIZE message with the Width and Height  parameters (which the
> >> interface expect) while in TWinControl.RealizeBounds it sends the
> >> same message with the Bottom-Right coordinates.
> > 
> > ?
> > Both creates the rectangle with Bounds(Left,Top,Width,Height). So both
> > should be right,bottom.
> 
> Can you fix TWinControl.InitializeWnd in that case? Instead of:
> 
>   R:= Rect(Left, Top, Width, Height);
> 
> also:
> 
>   R:= Bounds(Left, Top, Width, Height);
> 
> ?

Ehh, the R was unneeded. Fixed.

Mattias






More information about the Lazarus mailing list