Apologies if this comes through twice -- the other was from an address not subscribed 
to the list.

At 8:55 PM -0400 7/24/01, Troy Rollins wrote:
>I am not able to group the
>items that I want to show/hide (too many script references to change from
>"item" to "item of group "groupName"")

Not sure I understand this -- you can't refer to the controls (in a group or not) as 
"items"

>, so my intention was to do them
>individually. They hide, but the don't come back. I *thought* the code was
>simple enough...
>
<snip>
>
>I also don't quite understand... Monte's directions seemed to indicate that
>items were grouped with a single tab. I don't understand how that's possible
>when a tab is a component of a button object.

You can't group controls in a single tab. But you can group the controls without the 
button, and then show or hide that group as appropriate.

But I do this differently, so here's my method, just to muddy the water a little:

-- Create a button, set its style to tabbed.
-- Enter the names you want to show in the tabs.
-- Create a group from the button and anything else you want to always display with 
the tab panel. This would include any fields that are on every panel, but with 
different contents, etc.
-- Create new cards, so that you have one card for each tab on the tab panel. If you 
create new cards starting at the card with the tab panel on it, the tab panel (and the 
group it's in) will be on all the cards.
-- Name the cards the same as the tab panels
-- Set the script of the tab panel to:

on menuPick pWhichTab
  go cd pWhichTab
end menuPick

You're done! customize the various cards any way you like. In case you access the 
cards in any other way but through the tab panel you will want to add the following to 
the script of the background containing the tab panel:

on preOpenBackground
  put lineOffset(the short name of this cd, btn "tabber") into tTab
  set the menuHistory of btn "tabber" to tTab
end preOpenBackground

That way the tab panel will automatically jump to the right tab before displaying the 
card.

Regards,

Geoff

Reply via email to