Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_SCREENMOVE _MIDDLE and resolutions
#9
I believe the issue is that `Screen` does not resize the window immediately, rather it queues that change to happen on the next window redraw (which happens at 1/60 second intervals). `_ScreenMove _Middle` uses the current width and height of the window when calculating the location, so if call it immediately after `Screen` the window will not have been redrawn yet and will still be the old size, resulting in the issue. I suspect it's not all that hard to fix, we can make `Screen` wait for the window redraw to happen before it finishes.

In the mean time, a very short delay would solve the problem (ensure you call `_Display` if you're not using `_AutoDisplay` though). There are also some commands like `_DesktopWidth` that will wait for a window redraw to happen, you could call one of those a couple times (even if you don't use the result) to ensure the window has been redrawn.
Reply


Messages In This Thread
_SCREENMOVE _MIDDLE and resolutions - by NakedApe - 11-01-2023, 10:39 PM
RE: _SCREENMOVE _MIDDLE and resolutions - by DSMan195276 - 11-02-2023, 04:56 PM



Users browsing this thread: 1 Guest(s)