sending menupick to combobox button

Jan Schenkel janschenkel at yahoo.com
Tue Oct 21 10:45:59 EDT 2003


--- Mark Swindell <mdswindell at charter.net> wrote:
> I have a combobox button with several menuitems in
> it.  Next to it is a 
> plain radio button which serves to mark the state
> (on/off) of the 
> combobox.
> 
> When  the radio button is cllcked,  I need it to
> send a menupick to the 
> combobox so that the current combobox's label's
> menupick script runs, 
> just as if the user had selected the option from the
> combobox's own 
> menu options.  (There's a mouthful.)
> 
> What is the correct syntax for making this happen?
> 
> Thanks,
> Mark
> 


Hi Mark,

Assuming the combobox button is named "Foobar", try
something like this in your radio button :

on mouseUp
  send "menupick" && the label of btn "Foobar" \
       to btn "Foobar"
end mouseUp

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!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


More information about the use-livecode mailing list