how do you pulldown a menu?

Lynch, Jonathan bnz2 at cdc.gov
Wed Mar 23 10:01:51 CST 2005


Hi MisterX...

Did the popup command not work for you?


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of MisterX
Sent: Wednesday, March 23, 2005 11:02 AM
To: bornstein at designeq.com; 'How to use Revolution'
Subject: RE: how do you pulldown a menu?

Howard! 

Good call the wait + the 2nd click did it! This is absolutely logical
somehow too ;))

To make it work "almost" correctly, I had to add an offset to the
button's
loc or the button below gets the click! Another logical thing... 

   lock messages
    get the loc of btn "actionmenu"
    add 3 to item 1 of it
    add 3 to item 2 of it
     click at the loc of btn "actionmenu"
   wait 30
    click at the loc of btn "actionmenu"
    unlock messages
   
but the menu drops and disappears again (unlike the human click...) 

I had to add the lock messages since it's a group of buttons that
detects
the click and sends it again later (to itself since the click goes to
the
bottom menu if you dont add the click offset!)...

But this is for a popup menu (of which the pulldown flavor only is
satisfactory) and which will probably not work in Macs for a number of
illogical system reasons ;)). 

Given the logic of it all, im dumping it in favor of less headaches when
the
code breaks in 2 versions - forget about making user friendly and
intuitive
controls that prepare the work for the user ;(

The only way possible at this stack is to simulate it with a field... A
field which can't overlap stack boundaries like the menu can... ouch
ouch
ouch...

Thanks very much, let's forget I asked!

See my next announcement

Cheers
Xavier

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Howard Bornstein
> Sent: Wednesday, March 23, 2005 16:32
> To: MisterX
> Cc: How to use Revolution
> Subject: Re: how do you pulldown a menu?
> 
> Hi Xavier,
> 
> I'm not sure what you're trying to do here, but if you simply 
> want to simulate someone clicking a menu item, I didn't have 
> any trouble making it work.
> 
> I created a simple stack and a basic menu. I added a button 
> to the stack with this script:
> 
> on mouseUp
>   click at the loc of btn "file"
>   wait 30
>   click at "16,48"
> end mouseUp
> 
> This causes the File menu to select and then after 1/2 
> second, the Open item of the File menu selects. The menupick 
> handler in the File menu gets an Open as its parameter.
> 
> Unfortunately, this won't work on a Mac in the way Mac users 
> would expect. Instead, it still drops down the (hidden) menu 
> item within the stack itself, rather than selecting the menu 
> in the Mac's menu bar.
> 
> If this isn't what you were trying to do, maybe you could 
> explain it again.
> 
> 
> On Wed, 23 Mar 2005 07:13:10 +0100, MisterX 
> <b.xavier at internet.lu> wrote:
> > RunRev is great and we have virtually control of 
> everything. But one...
> > 
> > How do you pull down a menu using a script?
> > 
> > I tried click at the loc of mymenu but it didn't work!
> > 
> > The click actually when to the control below!
> > 
> > Never a dull moment!
> > 
> > thanks for any clues (other than faking a menu)
> > 
> > cheers
> > Xavier
> 
> 
> --
> Regards,
> 
> Howard Bornstein
> -----------------------
> www.designeq.com
> _______________________________________________
> 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




More information about the use-livecode mailing list