Menu Problem!

David Burgun dburgun at dsl.pipex.com
Wed Aug 17 10:49:51 EDT 2005


Hi,

I have a pop up menu that has two values, call them A and B. In the 
preOpenStack handler I want to set the menu back to A so I tried the 
following:

send "menuPick A" to button "myButton"

The Script on myButton is as so:

on menuPick theItemSelected
if theItemSelected = "A" then
-- Do Something

else
-- Do Something else
end if
end menuPick

When I manually enter A or B on the Pop Up all works ok. However when 
I run the preOpenStack handler, the Menu Stays a B even though I send 
an "A" to it. I have put a breakpoint in the menu pick handler and it 
receive the "A" ok. Do I need to set something else to have the menu 
update to "A"?????

Thanks in Advance
Dave



More information about the use-livecode mailing list