moj6054 Posted March 10, 2012 Posted March 10, 2012 Hi, How can change layout size according with user's desktop windows size, after he/she open database?
Lee Smith Posted March 10, 2012 Posted March 10, 2012 Automatic message This topic has been moved from "FileMaker Product Family → FileMaker Pro 11" to "Database Schema & Business Logic → Managing Scripts". The General topic areas are intended for the discussion of the functions, features and tools that were new with the particular version mentioned. All how-to question should be posted to a topic area that best matches the sprit of the problem. Many questions can fit into more then one area, but you only need to pick one, and go with it. If you have any questions about this action, please contact me through a private message. Lee
LaRetta Posted March 10, 2012 Posted March 10, 2012 (edited) Hi, How can change layout size according with user's desktop windows size, after he/she open database? Hi moj6054, Your question is not specific enough to provide a solid answer. Are you talking about 1) maximizing the application window, 2) maximizing the window within the application, 3) using anchors to resize objects or 4) changing monitor resolutions? 1) If how to automatically maximize the application window - it has been broken on Windows for quite some time. There are workarounds depending upon your windows version. In some versions (such as windows xp professional), none of the workarounds work. Anyway, the theory is that you create a shortcut and set the shortcut to 'run maximized'. Somewhere along the line, this function has broken and never been fixed (that I know of). You can read up on it - there are things with Windows 7, such as creating a batch file or changing your command line, etc. None of it should be necessary but hey ... we are talking about Windows, after all ... 2) If you want to control the window size of the window inside of the application window then you must script it upon opening. Here is a sample file which shows a method of setting a windows window to pseudo-maximized, meaning it is maximized to fill the window but not 'maximized.' In this way, the original window will not move when you open a new window - it won't restore down (drop out of maximize) which is quite irritating to Users. 3) If you wish the layout objects to resize, see FM Help on 'Setting auto-resize options for layout objects'. 4) If you wish to change a file to match a monitor's resolution, I'm afraid you can't. You must design for the size you wish. If none of these, please explain in more detail. :^) Anyway, here's a file if you wish to see how to make a pseudo-maximize window. Note that the window must be 2 px smaller on all sides to keep the scroll bars from appearing. And the layout (header/body/footer) must be resized so they are within the size of your monitor. You accomplish this (on form view) by making sure no layout objects are to the right past your window and that the overall layout height is less than your window. You will know when scroll bars appear that the layout must be reduced. WindowSize.zip Edited March 10, 2012 by LaRetta
Recommended Posts
This topic is 4660 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