--- Alan Martin <[EMAIL PROTECTED]> wrote:
> Sean wrote:
> > How about this (:you can access the handle via 'MenuHandle'):
> > Menu.Show("Menu.Caption","offset 1 1 "++
> > assign("MenuHandle",win.handle("under")))
>
> I just tested that and it seems to work well.
> I found that it works with other position keywords too,
> such as "centerscreen"
> It surprised me because I have never seen that documented,
> and have never seen it used before in examples in messages,
> adding an expression after the position parameter
> in a menu.show command.
>
> I didn't expect that would be a legal statement; I expected the
> extra argument would produce a Syntax Error message; but it works!
> the additional argument seems to be "executed"
> (it affects the value of MenuHandle)
> and seems to have no effect on the Menu.Show command itself.
It's indeed an illegal syntax, but I abuses PP often. :)
If you feel uncomportable with it, however, simply clear it:
Menu.Show("Menu"++select(assign("_handle_",win.handle("under")),0))
As you can see now, the position or et al of it doesn't
matter, as a matter of fact.
Sean
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/