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

Micha Nelissen mdvpost at hotmail.com
Sat Jun 28 03:00:58 EDT 2003


Karl Brandt 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.

What was wrong? Those messages should send the same information as you
retrieve via GetClientRect/GetWindowRect.

Are the form sizes really correct for you? If I move the form the size is
usually Left+Width instead of Width, etc.

> 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.
>
> I hope someone fix this.

Yes...this is the problem I'm having too (and trying to fix).

Regards,

Micha.






More information about the Lazarus mailing list