Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Change layout, upon return wrong Tab selected in Tab Panel?


This topic is 6958 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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 by Guest
Posted

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

This topic is 6958 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.