November 3, 200520 yr Anyone else seeing this? If you have a layout with a tab panel, and a script which goes to another layout, when the script returns you return to the original layout, often a different tab is selected than the one you started from? Edit -- I know you can manually select the tab by using a Go To Field statement, but this is ugly and requires extra script logic. I'd like to know how FM determines which tab to select... Edited November 3, 200520 yr by Guest
November 4, 200520 yr Ralph is right about the default tab of course, however, there is a way forward. There always is. The new tab control makes it possible to have a single main layout in a table whereas in the past you probably could not have got all the information required into one layout. Simulated tabs were quite common. The problem mentioned here doesn't exist in that case because each simulated tab is a separate layout and if you return to it it looks the same. For this purpose I would suggest that we have to stop thinking of the layout as the main viewing object - think of the window. If you move from one table layout to another, changing the window as you go then when you come back to the original window you will find the tab control laid out exactly as you left it. Unfortunately FMP8 has not taken the step needed. You can return to the original layout but if you do that layout will be in your new window. So it is necessary to script the window changing. One script is all that is required. Then when you use it you pass the window name (and layout name if you wish) via a script parameter. I use simple window and layout names with no spaces so a simple parsing of the parameter into two words is all that is needed
Create an account or sign in to comment