use-revolution Digest, Vol 16, Issue 5

Ken Ray kray at sonsothunder.com
Sun Jan 2 22:24:12 CST 2005


On 1/2/05 7:18 PM, "Cubist at aol.com" <Cubist at aol.com> wrote:

>    I'm surprised that nobody else has come up with this solution to the
> problem of showing/hiding groups yet...
> 
> # in the script of the tabbed button
> on menuPick ChosenOne
>   repeat for each line LL of me
>     set the visible of group LL to (LL = ChosenOne)
>   end repeat
> end menuPick
> 
>    Simple. Easy. Quick. Automatically accomodates any number of tabs. What
> else could a body ask for?

Actually, it's even simpler:

on menuPick pNewTab,pOldTab
  hide group pOldTab
  show group pNewTab
end menuPick


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list