option menu Btn
yves COPPE
yvescoppe at skynet.be
Thu Oct 17 01:34:00 EDT 2002
>--- Jan Schenkel <janschenkel at yahoo.com> wrote:
> > >
>>
>> Hi Yves,
>>
>> The selected line is actually copied into the
>> 'label'
>> property when an item is selected.
>> If you want to react to a user's choice, you should
>> handle the 'menuPick' event.
>>
>> Hope this helped,
>>
>> Jan Schenkel.
>>
>
>And before I forget, there's also the menuHistory
>property, which works for all kinds of menus, not just
>the option menus.
>
1) the menuhistory gives "1" for the first submenu item AND for the
first menu item
2) I've tried with menupick. It doesn't work !
try something like :
an option menu btn with menu
one
two
three->four
five
and the following script :
on menuPick pWhich
answer the menuHistory of me
switch pWhich
case "One"
beep
break
case "Two"
beep
break
case "Three|Four"
beep 2
break
case "Five"
beep
break
end switch
end menuPick
It doesn't work !
can you help me ?
Thanks.
--
Greetings.
Yves COPPE
Email : yvescoppe at skynet.be
More information about the use-livecode
mailing list