[lazarus] Bug in lcl resizing code and patch for win32
Micha Nelissen
mdvpost at hotmail.com
Sat Jun 28 07:32:30 EDT 2003
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);
?
Thanks,
Micha.
More information about the Lazarus
mailing list