April 18, 201213 yr 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
April 18, 201213 yr 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.
April 18, 201213 yr Author Thanks vaughan the layout triggers sound good. How do I get the tab object name - that's where I've been stumbling? Cheers john
April 18, 201213 yr 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.
Create an account or sign in to comment