|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
| menu.popup.show(WindowID, MenuID, x,y, hAlign, vAlign, animOrient) |
Parameters
| ID | WindowID | ID of the parent window
| | ID | MenuID | ID of the menu.
| | INT | x,y | Position X and Y of the popup menu in the screen.
| | STRING | hAlign | Horizontal Alignment. Can be: left, right, center
| | STRING | vAlign | Vertical Alignment. Can be: top, bottom, center
| | STRING | animOrient | Orientation of the animation. Can be: leftToRight, rightToLeft, topToBottom, bottomToTop, none |
Return value
No value is returned.
Description
Show a popup menu at the specified position in the screen.
A popup menu is displayed at any location of the screen.
For a menu in the top of a window, please check menu.set |
MioScript Sample Code
event.mouse:click
&menuID = 1
menu.popup.create(&menuID)
menu.add.item(&menuID, 1, "Item 1")
menu.add.item(&menuID, 2, "Item 2")
menu.popup.show(main, &menuID,mouse.x(), mouse.y())
event.end
|
|
|
|