use-revolution Digest, Vol 16, Issue 68

Cubist at Cubist at
Sat Jan 22 21:52:48 EST 2005

In a message dated 1/22/05 5:43:17 PM, 
use-revolution-request at writes:

>Message: 12
>Date: Sat, 22 Jan 2005 20:17:28 +0100
>From: Klaus Major <klaus at>
>Subject: Re: Cascading PopUp menu
>To: Glen Bojsza <gbojsza at>,   How to use Revolution
>   <use-revolution at>
>Message-ID: <4150E19D-6CAA-11D9-A175-000A27B49A96 at>
>Content-Type: text/plain; charset=US-ASCII; format=flowed
>Hi Glen,
>> I have a popup menu button that cascades ie
>> button "transport"
>> car    >Ford
>> boat    GM
>>            Toyota
>> I am trying to figure out how to trap the user selection... say if GM
>> is selected I want to go to card GM.
>Submenus are returned separated by |
>So in your case it will be -> boat|GM
>you can:
>on menupick which
>set the itemdel to "|"
>put item 2 of which into the_actual_menu_item
   What if the user picks an item from the actual *menu*, and not a 
*sub*menu? Perhaps this might be better:

on menuPick which
  set the itemDelimiter to "|"
  put the last item of which into TheChosenMenuItem
  # whatever other stuff goes here
end menuPick

   Hope this helps...

More information about the Use-livecode mailing list