A script that knows which tab is selected in tab control..
I have a layout that uses 2 portals. I'm using tab control so there is a tab for each portal.
The user can't edit the layout until they press an edit button. The edit button brings the user to a nearly identical layout called "edit mode"
When the user is in tab 2 (the non default tab) and presses the edit button it brings them to the "edit mode" layout but with the default tab selected - not the tab they were just on in the previous layout.
How can I script it so if the user is on the non default tab it switches layouts and chooses the "same" non-default tab?
FM 10, Mac 10.6.x