June 25, 200421 yr The solution i'm working on right now will have two main windows: A navigation window - this is not only the nav menu for the system, but also the nav / functionality window per each table. the data window. At any given time, other windows may be open as well, to view a quick list, select from a list, etc etc. I would like to include a button that goes back to the original state of the solution which is having only the main navigation window open on the system navigation layout. Potentially, there could be 5 or 6 windows open at any given time. I would hope not, but it would be possible. I was thinking i can use an unstored calc set to [windownames]. From there, i can know what windows are possibly open based on the layout / table i'm in. I script to check for those window names within the calc. field. if the pattern count = 1 for a particular window name, than i select that window and close it... Not a huge deal if i only have a few layout possibilities... but, to give you an idea, this solution is one i'm upgrading from 6 and it has about 20 tables in it, most of which will have some sort of UI. So, this type of scripting would be cumbersome and time consuming. I'm new to 7 and wasn't all that good in 6 or below. So forgive me if this is simple... is there an easy way to close all windows except for one? the main one? (further design notes. All new windows open up with a pre-determined window name. i have a global field for each possible window name.)
October 28, 200421 yr Hi, Just tried myself with this today. At least it is close. May be there are some other ways which is why I answer to this old post actually. Whenever the user moves from one Layout to the other using the Main Tabs in my Tabbed Interface Application, all windows except the Main one should be closed. The solution involves a text global gWindowsList and a loop. SetField[Table::gWindows;RightWords(Substitute(WindowNames & "
Create an account or sign in to comment