June 19, 200520 yr I am trying to set a precise non user changeable window size for the user. I have got everything set except for one last problem... how to specify the size of the runtime application window. I want the standalone runtime window to open at a set size..... I then open the user window and maximize it within the application window. The user window has all its controls disabled so that it stays fixed as maximized. The runtime app window I want to be able to minimize, move and restore.... nothing more than that. This I have done , but to get it all to work correctly the runtime app should open as a 900x900 window to begin with. Is there any way I can do this this?
June 19, 200520 yr Chalkster: I've never done it for a runtime, but I regularly put AppleScripts in to pre-set window size & location. I'll see if I can dig the script up for you. -Stanley
June 19, 200520 yr Chalkster: Here's the script: tell Application "FileMaker Pro" set bounds of Window "YourWindowName" to {x1, y1, x2, y2} end tell x1, y1 are the x & y coordinates of the upper left-hand corner of the window; x2, y2 are the lower-right hand coordinates. Remembering to take into account the fact that the menubar is part of the window, you could set the coordinates to: 5, 55, 905, 955, and you'd have a 900x900 window. Play around with it, and you'll find exactly what you want. -Stanley
Create an account or sign in to comment