Jump to content
Sign in to follow this  
sandyinlet

Returning the name of the active tab

Recommended Posts

For a scripted routine I need to evaluate the active tab (by it's name) on a tab panel. I may be barking up the wrong tree, I've been attempting to use the GetLayoutObjectAttribute — or else I'm just not seeing the solution when it's already in front of me.

I'm sure this problem must be a no-brainer but this no-brain doesn't currently see it.

Assistance appreciated.

Share this post


Link to post
Share on other sites

It is not dependent on what you have named each tab on the tab panel. It depends on what you named each tab in the "Object Name" field on the Info Palette.


If  [ GetLayoutObjectAttribute ( "Tab1" ; "isFrontTabPanel" ) ]

  Do something...

Else If [ GetLayoutObjectAttribute ( "Tab2" ; "isFrontTabPanel" ) ]

  Do Something Else...

Else If [ GetLayoutObjectAttribute ( "Tab3" ; "isFrontTabPanel" ) ]

  Do Something Else Too...

End If

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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