Menu appearence in point where mouse was clicked

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
austymenko
Beginner
Beginner
Posts: 2
Joined: Thu Jul 04, 2002 6:34 pm
Contact:

Menu appearence in point where mouse was clicked

Post by austymenko »

Does anybody know, how to force menu to appear on the point where left mouse button mouse was pressed ?

For example:
addmenu(menu=[
"menu1",
100, //top
40, //left
50, //width
...
])

it means that menu will appear on the point X=40, Y=100.
But for example I loaded the page, pressed(clicked) left mouse button on the point X=300, Y=400 and want menu to appear in this point. How should I do this ?

thank you in advance
Alex
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

try the popup() function like this

popup("menu1",1)

The second parameter indicates opening the menu at mouseXY

- Andy
austymenko
Beginner
Beginner
Posts: 2
Joined: Thu Jul 04, 2002 6:34 pm
Contact:

thank you Andy, it helped ;)

Post by austymenko »

thank you Andy, it helped ;)
Post Reply