How to create a popup menu anywhere on screen?

BlitzMax Forums/BlitzMax Programming/How to create a popup menu anywhere on screen?

Fabian.(Posted 2005) [#1]
I found function PopupWindowMenu(window,menu), but this command only can open a menu at current mouse position. Is there anyway to open it anywhere on screen?
(For example something like PopupWindowMenu(window,menu,x=MENU_MOUSEX,y=MENU_MOUSEY))


Bremer(Posted 2005) [#2]
How about moving the mouse there, then pop the menu, then move the mouse back to where it was.


Fabian.(Posted 2005) [#3]
But what if user moves the mouse after MoveMouse and before PopupWindowMenu?
The menu wouldn't appear at the correct postion.
Isn't there any other way?


Beaker(Posted 2005) [#4]
I agree that it would be good to be able to specify a position as you suggest in your first post.


skidracer(Posted 2005) [#5]
Why would you want to place the menu anywhere else and hence make the user have to move the mouse to get there?


Beaker(Posted 2005) [#6]
You might want to tweak the position ever so slightly, or have the user push a small button to get the menu and you want the menu to popup relative to the button and not the mouse position.


Beaker(Posted 2005) [#7]
Here is a simple example:



Fabian.(Posted 2005) [#8]
Exactly for this reason I need this command.
Another example is if you want to create something equal to the windows system menu: