Jump to content

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

Recommended Posts

Posted

Hi any tricks to leave a layout and return to the last open tab on the original layout. I could use new window but would rather not.

thanks

Posted

Easy: give each tab an object name. Whenever leaving the layout remember the current frontmost tab into a global field or variable (or if completely within the same script, a script variable). When returning, restore the tab with the Go to Object step.

Layout-based script triggers make this very easy: the "remember" script is triggered by onLayoutExit while the restore script is triggered by onLayoutEnter. This will require FMP 11 or later.

There are some sample files around, I've used the one by Christopher Gauntt, Cordega Solutions.

Posted

Thanks vaughan the layout triggers sound good. How do I get the tab object name - that's where I've been stumbling? Cheers john

Posted

Thanks vaughan the layout triggers sound good. How do I get the tab object name - that's where I've been stumbling? Cheers john

It is what You name it. object inspector.post-105143-0-91434900-1334756952_thumb.

See under Name:

that is where you name your "selected" tab in layout mode.

This topic is 4670 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.