Jump to content
Sign in to follow this  
Joseph31

Opening New Window on top of Current

Recommended Posts

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 by Guest

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

[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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.