use-revolution Digest, Vol 16, Issue 5

Ken Ray kray at
Sun Jan 2 23:24:12 EST 2005

On 1/2/05 7:18 PM, "Cubist at" <Cubist at> 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:
Email: kray at

More information about the Use-livecode mailing list