July 11, 201213 yr 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?
July 11, 201213 yr 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).
July 11, 201213 yr Author 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 . . .
July 11, 201213 yr 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.
July 11, 201213 yr Author 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?
July 11, 201213 yr The issue is with list view layouts: the resize to fit command makes then fill the whole vertical window space.
July 14, 201213 yr Author THanks for the clarification, Vaughn. Very helpful! Now the needs for the 'Sizer' approach is pretty clear -- thanks for that bcooney!
Create an account or sign in to comment