Tabs

Alex Tweedly alex at tweedly.net
Sun Jan 2 21:23:20 EST 2005


Richard Gaskin wrote:

>    Simple. Easy. Quick. Automatically accomodates any number of tabs. 
> What else could a body ask for?
>
> Just one more line:
>
> on menuPick ChosenOne
>   lock screen <- to postpone redraw until the changes are completed
>   repeat for each line LL of me
>     set the visible of group LL to (LL = ChosenOne)
>   end repeat
> end menuPick
>
> That's how I do it in WebMerge.  There are about 200 controls spread 
> across four groups, and I found it easier to address them all on one 
> card rather than having to specify the card for each control in the 
> scripts that deal with them.

Are there advantages of this approach compared to Dave C's suggestion of

> on menuPick pNew, pOld
>   hide group pOld
>   show group pNew
> end menuPick 

Now that I realize that there is a second parameter provided, it seems 
like the better way - but are there any cases where the "pOld" wouldn't 
be what might be expected ?

-- Alex.



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/2004



More information about the Use-livecode mailing list