doMenu, alas

DunbarX at aol.com DunbarX at aol.com
Wed Mar 4 11:18:54 EST 2009


In a message dated 3/4/09 9:49:20 AM, klaus at major-k.de writes:


> 
> No, I always create handlers in the mainstack or lib-stacks and will 
> just
> call these handlers "on menupick". This way these handlers can be called
> from anywhere without using the menu :-)
> 
> Is that what you meant?
> 
No, you are handling the "menuPick" message after it has been sent. Many 
people have told me what happens when a menuItem is invoked, I assume by hand. A 
"menuPick" message can be trapped and dealt with. Great.

I was trying to determine the usual way to invoke a menuitem from a script. 
Like "doMenu" does, in Rev, in certain cases.

You can say: domenu "new card", but you cannot say; domenu "card inspector". 
I wondered why. So you have to have another method, and it seems sending 
"menuPick" is that other method.

Read Richard Gaskin's last two posts. They cover in detail the whole issue. 
He also offers a universal work-around that takes into account the innermost 
workings of the Rev IDE, essentially adding a universal "domenu".

Craig Newman


**************
A Good Credit Score is 700 or Above. See yours in 
just 2 easy steps! 
(http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668
072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)



More information about the use-livecode mailing list