Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3242 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a script that is attached to a button on a layout.  the script first step of the script opens a new window with sizing parameters and then goes to a layout.  The problem is the script is resizing the window that the button is on, along with opening the new window in the dimensions specified on the New Window step.  I can't figure out why this is happening.  I don't want to change the size of the current layout when opening the new window.  The steps of the script are:

New Window

go to layout

perform find

Sort Records

Enter Preview Mode

Thanks for any suggestions.

 

 

Posted (edited)

I'm going to guess your original window was Maximised - this is a long standing issue with Windows based FileMaker... It de-Maximises when the new window is created:

https://community.filemaker.com/thread/66710?start=0&tstart=0

And for making popup windows that work really nicely, also have a read of:

http://www.teamdf.com/blogs/creating-tidy-popup-windows/

Cheers

Webko

Edited by webko
  • Like 1
Posted

I think FileMaker will someday fix this. Until then, your best bet is to add this line before New Window:

Move/Resize Window[ Current Window; Width: Get(WindowWidth) ]

Notice you don't even have to subtract anything from the width or deal with the height. This is sufficient to un-maximize the window in the least intrusive way. If the window is maximized, it will just shrink by a pixel. If it's not, or your user is on a Mac, the window will stay as is.

  • Like 1
Posted

Well, that is frustrating!  Yes, the original window was maximized, but gets downsized to the size of the new window. 

Thanks for the fixes. 

Linda

This topic is 3242 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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