set MenuHistory without the menuPick call?
Trevor DeVore
lists at mangomultimedia.com
Tue Nov 30 16:49:23 EST 2004
On Nov 30, 2004, at 1:36 PM, Frank Leahy wrote:
>
> Unfortunately that makes a call to menuPick.
>
> I've solved the problem by writing a wrapper routine
>
> on MyMenuHistory buttonName, itemNumber
> put true into gMenuHistoryBeingCalled
> set the menuHistory of button buttonName to itemNumber
> put false into gMenuHistoryBeingCalled
> end MyMenuHistory
>
> and then in each of my menuPick routines I test to see if
> gMenuHistoryBeingCalled is set to true (exiting if it is).
Frank,
Did you try to lock messages before setting the menuHistory? That
keeps the menuPick message from being sent.
lock messages
set menuHistory of button "MyButton" to 2
unlock messages
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode
mailing list