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

Karl Brandt pascalive at bol.com.br
Sat Jun 28 10:41:20 EDT 2003


Mattias Gaertner wrote:

>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.
>
Before the last patch InitializeWnd was sendind Width,Height ;-) 

>I applied the patch.
>  
>
Thanks







More information about the Lazarus mailing list