menu builder
Sarah
sarahr at genesearch.com.au
Wed Jun 11 18:28:01 EDT 2003
Your script looks fine, so there are a few other possibilities:
Have you changed the text of the menu items? If your menu item is
"About MyApp..." then it won't get caught in this switch.
Is there another handler in the same script that might have an error so
that the complete script fails to compile?
Do you have any front scripts that might be trapping the menuPick?
To test, I would add a new line to your handler as follows:
on menuPick pWhich
put pWhich
switch pWhich
....
This will allow you to check that your handler is being called and give
you the exact parameter that is being passed to it.
Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/
On Wednesday, June 11, 2003, at 11:44 pm, muaadh salih wrote:
> On going through the Tutorials and on practicing menu building it
> seems that either I have not seeen somthing imprtamt or there might be
> a bug.
> Problem : Script of help menu:
> ----------------
> on menuPick pWhich
> switch pWhich
> case "Help"
> Answer " This is a test"
> break
> case "About"
> Answer " I have written this"
> break
> end switch
> end menuPick
> ------------------
> does not seem to work; clicking on ether submenu produce nothing.
>
> I have checked that every thing is for "Revolution 2.01 .education"
>
> any idea
> help
> --
>
> All the best
>
> ---------------
> M. Salih
> N.M.E. Dept.
> SOAS
> University of London
> Thornhaugh Street
> London WCIH OXG
>
> Tel. (UK) 020 7898 4354 Direct
> 020 7898 4320 Dept.
> eMail: ms1 at soas.ac.uk
>
More information about the use-livecode
mailing list