Forum > Win32/64
Resizing in win32
balazsszekely:
--- Quote from: big_M ---Hm, I must admit this is currently a bit beyond my abilities. I have no clue about messages.
--- End quote ---
https://forum.lazarus.freepascal.org/index.php/topic,41843.msg291170.html#msg291170
nanobit:
--- Quote from: big_M on February 16, 2023, 10:56:51 am ---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
--- End quote ---
I use only the older LCL which has a simpler concept.
For all newer versions there is a report. It may help you to continue, but this change has also some sideeffects (on operations which utilize the non-message queues (threadQueue, asyncCall)).
big_M:
--- Quote from: GetMem on February 16, 2023, 10:59:51 am ---https://forum.lazarus.freepascal.org/index.php/topic,41843.msg291170.html#msg291170
--- End quote ---
Thank you for the example, I will give it a try.
--- Quote from: nanobit on February 16, 2023, 12:04:08 pm ---I use only the older LCL which has a simpler concept.
For all newer versions there is a report. It may help you to continue, but this change has also some sideeffects (on operations which utilize the non-message queues (threadQueue, asyncCall)).
--- End quote ---
That's good to know. I always use OnResize to update while dragging, eventhough that seems to be suboptimal. Let's see, I'm curious to see the difference. At least OnResize is system agnostic.
Btw, are there similar messages on linux? Because qt5 scales without flicker with OnResize, but gtk2 is not great...
big_M:
Ok, so for updates while dragging I actually need WM_SIZING. WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE just get sent once (makes sense), so the behaviour is the same as with OnResize currently. It renders okey, but from memory, I wouldn't say it renders any better then using OnResize (maynard philbrook's comment on the posted report implied it would). But I would need to have a side by side comparison to confirm that.
balazsszekely:
@ big_M
--- Quote ---Ok, so for updates while dragging I actually need WM_SIZING.
--- End quote ---
Yes you're right, I misunderstood your question, you indeed need WM_SIZING. Sorry for that!
--- Quote ---It renders okey, but from memory, I wouldn't say it renders any better then using OnResize
--- End quote ---
As @nanobit already mentioned the resizing mechanism is broken in the latest stable release Lazarus 2.2.4, however it works fine with Lazarus trunk/main(just tested). So if you use 2.2.4 you need to catch WM_SIZING, in other version you can use the OnResize event.
PS: Current bug aside, in my experience combining WM_SIZING with WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE gives you a much finer control, I prefer catching those messages, over OnResize in windows.
Navigation
[0] Message Index
[#] Next page
[*] Previous page