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

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


On Sat, 28 Jun 2003 01:33:43 -0300
Karl Brandt <pascalive at bol.com.br> wrote:

> Sometime ago i sent a patch fixing the forms sizes under win32 and got 
> surprised to see that things were messed.
> So i  did the  job again!
> 
> 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.
I applied the patch.

 
> I hope someone fix this.
> 
> BTW. During the last months, i didn't worked with lcl/win32 because of 
> lack of time. Now i want to spend some time with it :-)


Mattias






More information about the Lazarus mailing list