Cascading menu

Jan Schenkel janschenkel at yahoo.com
Tue Dec 16 14:49:55 EST 2003


--- Ironmaan at aol.com wrote:
> Hi all,
> Quick question. Is it possible to create a cascading
> menu button that 
> cascades beyond one level? For
> instance--TIRES>MANUFACTURER>TYPE>SIZE. If so How?
> John
> 

Hi John,

Try the following script :

set the text of btn "MyCascadingMenu" to \
    "Tires" & return & \
    tab & "Manufacturer" & return & \
    tab & tab & "Type" & return & \
    tab & tab & tab & "Size"

For each level deeper, you prepend a tab ; the items
are separated by returns.

Now when you select an item from a submenu, the engine
will send your button a "menuPick" message, with a
parameter of the form :
  "Titles|Manufacturer|Type|Size"

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


More information about the use-livecode mailing list