Very simple tab button script

Eric Chatonet eric.chatonet at sosmartsoftware.com
Tue May 31 03:14:37 EDT 2005


Hi Tom,

Just add set the wholeMatches to true
But it's no longer a oneliner.
So...

Best regards from Paris,

Eric Chatonet.

Le 31 mai 05 à 09:01, Thomas McCarthy a écrit :

> Well the beauty of it is that you don't have to name each card for  
> the tab.
> 1. make a tab button for your stack
> 2. put in the background (so it appears on every card)
> 3. put a line in the buttons contents for each card--you don't need  
> to name the card to match the tab!
>
> ex. (these are the lines in the buttons contents)
> Welcome -> line 1, so selecting this will go to cd 1
> How to use
> History
> Preferences -> line 4, so will go to cd 4
>
> Then you just have to make sure that your cards are in order.
>
> The (only?) advantage of this code over something like:
> on menuPick tWhich
>   go to card tWhich
> end menuPick
>
> is that the card doesn't need the same name as the tab. It's a  
> small advantage, I know, but it seems simple to me and I will be  
> using it.
>
> one small problem is similar text:
> line 1: Women
> line 2: Men --> because 'men' is part of 'women', the lineoffset  
> will return '1'. There must be some simple fix for this.
>
> Tom McCarthy


----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------



More information about the use-livecode mailing list