June 30, 200916 yr I have a solution where I have several "small" master data layouts that I have linked to custom menus. the custom menu runs a basic script which opens a new window, loads a layout and resizes the window. The problem I have is that if my start point is my main interface which has a much larger window size the transition to the new window is pretty jerky. If I have a utility (small) window as my start point the new window works fine. Anyone have any tips here for calling "new" windows of a smaller size.
June 30, 200916 yr When you call your new window script step, enter the width and height as zero. Then, call your Go To Layout Script Step, Hide the Status Bar (if necessary) and then call the Adjust Window [Resize to Fit] script step. Let me know if that is what you were looking for.
June 30, 200916 yr Author Much better. Many thanks Lauren. One other minor problem : I'm using CenterWindow("vertical") & CenterWindow("horizontal") to position the window but it doesn't actually center the window in the centre of the screen as I'd expect. Any ideas on that one? Your help is much appreciated.
June 30, 200916 yr This is the code I use to open a window for Mac users. If you want it to be in the center of the desktop, use Get ( WindowDesktopWidth ) and Get ( WindowDesktopWidth ) in the first two set variables instead. For really big desktops (or multi-monitor setups, such as mine), I would expect the window to be centered above the window below it which is what this code does. Notice the minus 25. It places the window slightly higher which is user-expected behavior. Set Variable [ $window_center; Value:Get ( WindowLeft ) + ( Get ( WindowWidth ) / 2 ) ] Set Variable [ $window_middle; Value:Get ( WindowTop ) + ( Get ( WindowHeight ) / 2 ) ] New Window Go to Layout Show/Hide Status Area [ Hide ] Adjust Window [ Resize to Fit ] Set Variable [ $window_width; Value:Get ( WindowWidth ) ] Set Variable [ $window_height; Value:Get ( WindowHeight ) ] Move/Resize Window [ Current Window; Top: $window_middle - ( $window_height / 2) - 25; Left: $window_center - ( $window_width /2 ) ] Edited June 30, 200916 yr by Guest
Create an account or sign in to comment