How to create pop window that auto size
I created a pop up window that I would like to have auto size and center on the screen. I would like to show only the layout. right now it has too much dead space from the pop up window.
Also I have a button setup for each day, Day 30, Day 60 and Day 90. I have a script that closes the small pop up window and opens the layout for that calorie menu. But if I were to create a script to close that window and open the corresponding calorie menu I will have to to create a total of 36 scripts so they each go to their corresponding calories. Is there an easier way to do this? Here is what a script looks like if I were to choose Day 60 from 1200 Calories pop up window:
Script to go to 1200 Day 60 Layout:
Close Window [Current Window]
Go to Layout ["1200_60 (CaloriesMenu)]