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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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