Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-06

Patch: form sizing

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Micha Nelissen

Hi,

Attached is a patch to fix form resizing. It disables the code to send WM_SIZE messages on WM_POSCHANGED messages. This had nasty side effect because the GetClientRect was not always in agreement with AdjustWindowRect, its counterpart, because one thought the menu was there and the other didn't. It caused looping and making the form very wide or very small.

If you of reasons why it should send that message, let me know.

Regards,

Micha.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00037.bin
Type: application/octet-stream
Size: 710 bytes
Desc: "formsize.patch"
Url : http://localhost/pipermail/lazarus/attachments/20030627/27a9021d/bin00037.bin

Reply by email

Mattias Gaertner
to Micha Nelissen
Show quoted text 8 lines
Hi, Attached is a patch to fix form resizing. It disables the code to send WM_SIZE messages on WM_POSCHANGED messages. This had nasty side effect because the GetClientRect was not always in agreement with AdjustWindowRect, its counterpart, because one thought the menu was there and the other didn't. It caused looping and making the form very wide or very small.

ok

If you of reasons why it should send that message, let me know.

Hmm. Maybe some components expects the message. We will see.

Mattias

Reply by email