Joseph31 Posted May 28, 2008 Posted May 28, 2008 (edited) Is there a way to open a new window (sized correctly) on top of the main window. I have made a script that opens a new window but the main window resizes when I do this. I need to be able to make a new window open on top of the current window without the main window resizing. Also is there any way to take off the thick blue header on the new window -- not needed. Any ideas? Joseph Edited May 28, 2008 by Guest
Fitch Posted May 28, 2008 Posted May 28, 2008 If you're going to use maximized windows on Windows, you'll have to compromise with something like this in your script: Move/Resize Window[ Get(WindowDesktopHeight) ; Get(WindowDesktopWidth) ] then open your new window; then after you close it: Adjust Window[ Maximize ] Thick blue header is not optional AFAIK.
Joseph31 Posted May 29, 2008 Author Posted May 29, 2008 Thank you but could you show me what you mean: I need a smaller window to open on the main window page. The smaller window size is Height: 950 pix Width: 370 Pix Location: 150 pix 70 pix The main window is maximized Thank you
mr_vodka Posted May 29, 2008 Posted May 29, 2008 Tha main window can not remain maximized on Windows when another window opens. The best that it can do is resize to a certain size as Fitch said.
grumbachr Posted May 29, 2008 Posted May 29, 2008 [color:black]This is an example of a technique I've been using for a little while. It was taken/borrowed from a FileMakerMagazine.com video. [color:gray]Set Variable [ $$pwindow_name; Value:Get ( WindowName ) ] Set Variable [ $$window_values; Value:Get ( WindowTop ) & ¶ & Get ( WindowLeft ) & ¶ & Get ( WindowWidth ) & ¶ & Get ( WindowHeight ) ] Set Variable [ $$window_name; Value:"Contact Edit" ] New Window [ Name: $$window_name ] Go to Layout [ “Contact_Edit” (Contact) ] Show/Hide Status Area [ Hide ] Adjust Window [ Resize to Fit ] Perform Script [ “Center Window”; Parameter: "Screen" ] [color:black]This is the important part of the script "Center Window" [color:gray]Move/Resize Window [ Current Window; Top: (Get ( WindowDesktopHeight ) / 2) - (Get ( WindowHeight ) / 2); Left: (Get ( WindowDesktopWidth ) / 2) - (Get ( WindowWidth ) / 2) ] [color:black]I'd recommend looking into the full article/video it goes into much greater detail and there are additional option that I'm not using but may work for your needs.
Joseph31 Posted May 29, 2008 Author Posted May 29, 2008 Wow great than you guys... I will try this script --- thank you again. Joseph
Recommended Posts
This topic is 6020 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