menuHistory and menuPick

Chris Sheffield revlist at cableone.net
Tue Jan 11 11:27:17 EST 2005


Sarah,

I think this was my problem.  I didn't realize menuPick wouldn't get sent
unless the menuHistory actually changed.  I'll give this a try.

And thanks to everyone else who responded as well.

Chris Sheffield
Software Development
Read Naturally


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Sarah Reichelt
Sent: Monday, January 10, 2005 7:45 PM
To: How to use Revolution
Subject: Re: menuHistory and menuPick

The menuPick message doesn't get passed unless the menuHistory is 
changed.
YOu get round this by doing a test for the current menuHistory and if 
it is the same as the one you are about to set, either switch to a 
different menuHistory and then back to the one you really want, or send 
a menuPick specifically to the menu.

Cheers,
Sarah


On 11 Jan 2005, at 8:28 am, Chris Sheffield wrote:

> I have an option button for which I am setting the menuHistory like:
>
>    set the menuHistory of btn "Level" to tLineNum
>
> And then there's a menuPick handler in the button's script that 
> performs
> additional tasks.  But the menuPick handler doesn't always fire.  Does
> anyone know of any reason why setting the menuHistory of a button 
> would not
> cause a menuPick message to be sent as well?  The above script is 
> called
> during preOpenCard, and, like I said, the menuPick handler is in the 
> script
> of the button.  It seems that the only time it fails is when I very 
> first
> come into the card.  If I do a "send preOpenCard" after that, menuPick 
> is
> sent normally.  Any ideas?
>
> Thanks,
>
> Chris Sheffield
> Software Development
> Read Naturally
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 1/6/2005
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 1/6/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 1/10/2005
 



More information about the use-livecode mailing list