Forum > Win32/64

Resizing in win32

(1/3) > >>

big_M:
When I resize a form in qt5/gtk2 the onresize event gets triggered constantly as soon as I start resizing a window, but not so in win32 where it only fires after the resizing is done.

Is there any way to change this?

balazsszekely:

--- Quote from: big_M on February 15, 2023, 03:23:16 pm ---When I resize a form in qt5/gtk2 the onresize event gets triggered constantly as soon as I start resizing a window, but not so in win32 where it only fires after the resizing is done.

Is there any way to change this?

--- End quote ---
In win32 you have to catch the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages.

big_M:
Oh, I see. Thx!

nanobit:

--- Quote from: big_M on February 15, 2023, 03:23:16 pm ---but not so in win32 where it only fires after the resizing is done.

--- End quote ---

You use a Lazarus version which does not work.
Older versions (like my 2.0.x and older) and possibly the latest version fire onResize like you want.

big_M:

--- Quote from: GetMem on February 15, 2023, 03:33:42 pm ---In win32 you have to catch the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages.

--- End quote ---

Hm, I must admit this is currently a bit beyond my abilities. I have no clue about messages.


--- Quote from: nanobit on February 15, 2023, 03:50:12 pm ---You use a Lazarus version which does not work.
Older versions (like my 2.0.x and older) and possibly the latest version fire onResize like you want.

--- End quote ---

Interessting. Is this a known behaviour/bug? I tried 2.2.2 and 2.2.4 on two different machines with Windows 10, they both behave the same

Navigation

[0] Message Index

[#] Next page

Go to full version