|#PB_Event_SizeWindow works different with #Window=0
|Page 1 of 1|
|Author:||Shardik [ Sat Jul 25, 2020 7:12 pm ]|
|Post subject:||#PB_Event_SizeWindow works different with #Window=0|
In his posting "Window resize events" WilliamL has posted an example which generates on MacOS multiple resize events on #PB_Event_SizeWindow with #Window=1 or higher or with #PB_Any. But with #Window=0 always only one resize event is generated.
I have found this bug testing with the following MacOS versions:
I was able to find out that the bug was introduced between PB 5.42 and 5.43 (no difference between x86 and x64):
The bug may have been introduced in responce to the thread [Done] dozens SizeWindow events after resizing a window where Fred at the end remarked "Fixed."
By the way I had already posted in 2014 this cross-platform example in the German forum that demonstrates how to detect the end of a window resizing action in Linux, MacOS and Windows by using PostEvent() to generate a new custom event to indicate that the resizing has been finished.
Unfortunately PureBasic's handling of #PB_Event_SizeWindow events is different on all 3 supported operating systems when resizing a window:
You may also take a look into this even more detailed analysis based on an example from mk-soft.
Therefore I would suggest that on all 3 operating systems multiple #PB_Event_SizeWindow events should be generated during the resizing of a window and that a new event (for example #PB_Event_SizeWindowFinished) should be generated at the end of a resizing as demonstrated in my cross-platform example which works in Linux (GTK2 and GTK3), MacOS and Windows...
|Page 1 of 1||All times are UTC + 1 hour|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group