How to create a popup menu anywhere on screen?
BlitzMax Forums/BlitzMax Programming/How to create a popup menu anywhere on screen?
| ||
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)) |
| ||
How about moving the mouse there, then pop the menu, then move the mouse back to where it was. |
| ||
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? |
| ||
I agree that it would be good to be able to specify a position as you suggest in your first post. |
| ||
Why would you want to place the menu anywhere else and hence make the user have to move the mouse to get there? |
| ||
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. |
| ||
Here is a simple example: |
| ||
Exactly for this reason I need this command. Another example is if you want to create something equal to the windows system menu: |