Running a Mini under macOS Sonoma 14.6.1, with two screens. I move my app’s main window to the second screen, and make it fit in there nicely, and quit it. It saves its position (x, y, height, width), which should be restored when I open it again. But it sits jammed up against the left edge of the main screen.
So I added a Moved event, which fires twice during startup, once to set Left to the correct (saved) value (which would put it on the second screen), and a second time to set it to 4. Next I raise a runtime exception which fires on the second Moved event, showing this in the Stack:
22 Sep 2024 22:00:24 Stack: --------------------
22 Sep 2024 22:00:24 Sub MainWindow.MainWindow.Event_Moved (MainWindow.MainWindow)
22 Sep 2024 22:00:24 Sub DesktopApplication._CallFunctionWithExceptionHandling ()
22 Sep 2024 22:00:24 Stack done ----------------
(the stack output has been tidied up with @Beatrix_Willius 's excellent stack cleaner method).
Am I right in thinking that this just indicates that neither the app nor the user (me) moved the window - in which case it must be the OS? Or am I missing something?
Behaves the same under 2023 r4 and 2024 versions.
11 posts - 6 participants