Wickerman Posted July 11, 2012 Posted July 11, 2012 I have a several similar scripts for opening pop-up windows to display charts and reports. I'm using a New Window step at the beginning to set the location of the new window on the screen, but leaving the dimensions blank, going to the desired layout, hiding the toolbar, and then Adjust Window: Resize to Fit step at the end. This is working fine for a layout where there is only a Body part, but for the ones where I have rand summaries or sub-summaries, I'm getting windows that ignore both window control steps: the window appears at the very top edge of the screen, and stretches the full height of the screen. Im attaching a picture of my script -- and of one of the layouts where it's not working. (The script trigger on the layout is just a Sort. Where am I going wrong here?
bcooney Posted July 11, 2012 Posted July 11, 2012 Sometimes (like for popup list views) it is helpful to use a layout that is a "sizer". Go to that layout, resize to fit, then go to the final layout (no resize).
Wickerman Posted July 11, 2012 Author Posted July 11, 2012 I'm not sure I understand why that would help . . . doesn't that just shove my problem over to another layout? If I want a fixed-size window I thought I could just specify the dimensions in the 'New Window' specs,yes? But in my script that step isn't even working . . .
bcooney Posted July 11, 2012 Posted July 11, 2012 No, it doesn't "shove your problem over." In fact, it allows for consistent popup window sizes. I just design a blank form layout with a rectangle in the lower right-hand corner and resize to fit.
Wickerman Posted July 11, 2012 Author Posted July 11, 2012 I see now -- in order to get the windows a consistent size. But that's not my need here -- the various windows that pop up for different charts can be different sizes. I'm trying to understand why 'Resize to Fit' isn't working in this situation (I just used the script debugger and it's just this step that's not behaving as expected. Is there something about sub-summary layouts that makes the ResizeToFit deliver a maximally-tall window even if 2/3 of it is blank?
bcooney Posted July 11, 2012 Posted July 11, 2012 I believe so, yes, so that's why I use the popup sizer technique.
Vaughan Posted July 11, 2012 Posted July 11, 2012 The issue is with list view layouts: the resize to fit command makes then fill the whole vertical window space.
Wickerman Posted July 14, 2012 Author Posted July 14, 2012 THanks for the clarification, Vaughn. Very helpful! Now the needs for the 'Sizer' approach is pretty clear -- thanks for that bcooney!
Recommended Posts
This topic is 4515 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