Just a guess: When last the file was closed, the window was in the upper right-hand corner, and is defaulting back to that position when the relogin executes.
This is only happening on Mac
The OnClose script moves the window back to the centre and on the right layout, then pauses for 1 sec, before the file closes
How is "center" of screen determined? I've seen different behavior on Windows and Mac in this regard.
Get Desktop Width / 2 - WindowWidth /2
But this is not really relevant as once FM has started the file behaves COMPLETELY as expected, and as designed
This does appear to only be happening on Mac though
I usually use Get ( ScreenWidth ) rather than Get ( DesktopWidth ). Might be worth a try.
Have you tried turning the debugger on and capturing the values in the data viewer?
Changing the window position (or select a different record) will NOT be stored with the file once the last record is committed, unless you modify the file in some other way, for example set a (global) field or commit a previously uncommitted record.
You are a star. I had forgotten about that, though I am sure you have written about it hundreds of times, and I must have read several of them..