For example, if I am deleting a portal row, and I get the out-of-the-box filemaker "are you sure you want to delete this related record?" message, what determines where on screen that dialog box appears? In Windows?
I think I figured it out by trial and error. It appears to my untrained eye that it adjusts to the center of the open application window. Is this technically correct?
I think Windows determines the original position, then it is stored in cache by FileMaker... Not certain though.
I think you are correct. Here is document from MS.
Dialog Boxes (Windows)
You should double-check - I believe that at least some dialogues will pop up in the position the user last moved them to, until the file is re-opened.
I'd tested it on "Delete Record" dialog, seems not saving last position. (sorry this is not exactly OP wrote that "portal")
I know "Show custom dialog" in script has position / size saved in windows registry, there may be many other dialogs work as same. (resizable ones?)
This thread isn't about Show Custom Dialog, but those that appear by sort of by default.
What I tried, when coming to my conclusion was first, try moving the dialog to a different position before clicking OK. The next occurrence of the same box, in this case a "are you sure you want to delete?" message, it was back to where is it was before.
Then I tried resizing the FileMaker Pro Application window. In that test, no matter how I resized the window, height or width, the dialog message box always appeared nearly centered inside the FileMaker Pro Application window. It was especially noticeable on my system where I have dual monitors set to extend. If I widened the FileMaker Pro window to stretch across both monitors, the dialog box would show up right around where the two monitors meet in the middle. Then if I resized the application window to fit the width of only one monitor, it would be approximately centered on that one.
Agree - the 'Delete record' dialogue box always comes back to about centre-centre. I sympathise with FM over that - the number of times a user has moved a custom dialogue away to the bottom right of a big screen, and the next user is stabbing away at the keyboard, oblivious to the nagging dialogue...
Retrieving data ...