option menu Btn

Jan Schenkel janschenkel at yahoo.com
Wed Oct 16 16:03:00 EDT 2002


--- Yves Coppé <yvescoppe at skynet.be> wrote:
> Hi,
> 
> I've created an option menu btn in mac OS X 10.1.5
> The menu is a list of item and some hierarchical
> subMenu Item
> 
> My handler is
> 
> if the selectedText of me is "xxx" then
> 
> else if the selectedText of me is "yyy" then
> 
> else...
> 
> end if
> 
> 
> 
> This doesn't work. I cannot access my script from
> the selectedtext
> 
> How can I do ?
> 
> Thanks.
> -- 
> Greetings.
> 
> Yves COPPE
> 

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.

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

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com



More information about the Use-livecode mailing list