On May 3, 2006, at 7:57 AM, Mark O'Neill wrote:
On 3 May 2006, at 13:12, Jonathan Johnson wrote:
All works fine except I can't find how to custom place the popup -
by default it is where the cursor is but I want it elsewhere.
Sure. Pass in an X and Y parameter to PopUp. The language reference
shows that those are optional parameters.
Hi Jon,
I can't find that in the language reference, nor can I seem to pass
the x or y values to PopUp without it causing a "method does not
exist" error.
Can you supply me with a snippet of code and/or the text from the LR
where it says this?
In 2006r2, type in the location field of the Language Reference
"MenuItem.PopUp". For me, it says: "If no parameters are passed, the
contextual menu appears at the location of the mouse pointer."
And, while this code doesn't do anything for me (which it shouldn't,
it's an empty menu), this compiles fine for me in the MouseDown event
of a window:
dim mi as new MenuItem
mi = mi.PopUp( x, y )
HTH,
Jon
--
Jonathan Johnson
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>