Aussie John Posted April 18, 2012 Posted April 18, 2012 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
Vaughan Posted April 18, 2012 Posted April 18, 2012 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.
Aussie John Posted April 18, 2012 Author Posted April 18, 2012 Thanks vaughan the layout triggers sound good. How do I get the tab object name - that's where I've been stumbling? Cheers john
imoree Posted April 18, 2012 Posted April 18, 2012 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. See under Name: that is where you name your "selected" tab in layout mode.
bcooney Posted April 18, 2012 Posted April 18, 2012 http://sixfriedrice.com/wp/restoring-active-tab-state/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now