Hi,
Just tested this code and only WMMove works and?WMEnterSizeMove doesn't. It simply works in Delphi. Why?
Show quoted text 38 lines
Regards, Ara

Mailing lists / lazarus / 2015-10
10 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
Just tested this code and only WMMove works and?WMEnterSizeMove doesn't. It simply works in Delphi. Why?
Regards, Ara
Aradeonas wroteHi, Just tested this code and only WMMove works and WMEnterSizeMove doesn't. It simply works in Delphi. Why?
http://bugs.freepascal.org/view.php?id=23302
Ondrej
Is there any other way to make it work for now?
Regards,
Ara
Aradeonas wroteIs there any other way to make it work for now?
It depends on what you want to do in WM_ENTERSIZEMOVE. For most uses you can use a workaround with MouseDown etc.
If you really need WM_ENTERSIZEMOVE, it should be possible to make win32 widgetset to pass it through but I didn't investigate further and used a MouseDown workaround.
Ondrej
I want to know when resize begin and end and really dont know how work with win32 widgetset.
Regards,
Ara
Now I get a kind message from Sz?kely Bal?zs that show a temporary way.
Regards, Ara
Aradeonas wroteNow I get a kind message from Sz?kely Bal?zs that show a temporary way.
Great! Thanks Bal?zs for the code and also thanks for sharing!
I added the workaround to the bug report:
http://bugs.freepascal.org/view.php?id=23302
Ondrej
Its a temp way and it should work the easy way but for now its good to go.
Regards,
Ara
Great! Thanks Bal?zs for the code and also thanks for sharing! I added the workaround to…
Juha, just to keep the discussion about unhandled messages in Windows:
From http://bugs.freepascal.org/view.php?id=23302#c86677 :
/> But even if they do not exist everywhere IMO they could be passed through to LCL at least from widgetsets where they are supported (?).// //No, that goes against the fundamental idea of a cross-platform library.// /
It's a matter of discussion. The message handling is low-level. So there can be differences between widgetsets. It's important to have as little differences in the high-level (events, virtual methods etc.). But small differences even in those exist, unfortunately.
It is extremely useful to be able to access the low-level messages without workarounds even with the limitation that they are available only on some widgetsets (maybe only one).
Zeljko stated in the "How to create a non focusable form?" thread http://lists.lazarus.freepascal.org/pipermail/lazarus/2015-October/095047.html that WMNCHitTest is Windows-only. And it is indeed passed to LCL. So LCL is not very systematic about this 't it be easier to pass all messages to the LCL? Furthermore, compatibility to Delphi would be achieved - only on Windows, though, but still better than nothing.
Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151027/2863f976/attachment.html>
True. Maybe the important question is "how badly it breaks the application in other widgetsets?"
The functionality based on WMEnterSizeMove message is then missing in other system.
Maybe it does not matter, the app is usable but some fancy resize feature is missing.
I am not against adding it. I know there are widgetsets differences already including non-supported properties.
Juha