Stephen K Posted April 22, 2005 Posted April 22, 2005 Is there a script I can use to control the size of a window (not Zoom) so that different layouts have different sizes?
aaa Posted April 22, 2005 Posted April 22, 2005 In FM6 i think that there is only Toggle Window Script.
stanley Posted April 22, 2005 Posted April 22, 2005 Stephen: You can control that via AppleScript. I've got a solution for that somewhere, and if I can find it I will post it. Otherwise, I have posted this answer in the past, so you may want to search these forums for that. -Stanley
stanley Posted April 22, 2005 Posted April 22, 2005 Stephen: It goes like this: Perform AppleScript [ tell Application "FileMaker Pro" set bounds of Window "Your_Window_Name" to {x1,y1,x2,y2} end tell ] Where "Your_Window_Name" is, in FMP6, exactly what's in the title bar of the window (i.e., the file name), and the bounds x1,y1 are the location of the upper left corner of the window, and x2,y2 is the lower right of the window. Note that this is absolute for the screen, so you want to account for the menu bar, which is about 40 pixels high. -Stanley
Recommended Posts
This topic is 7157 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now