Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | menu.popup.show SEARCH    

  Functions
menu.add.item
menu.add.popup
menu.add.separator
menu.create
menu.destroy
menu.getItem
menu.item.checked
menu.item.enabled
menu.item.radio
menu.popup.create
menu.popup.show
menu.redraw
menu.set

  Events
event.menu:click

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
menu.popup.show

Language: MioScript
Product: MioFactory


Syntax

menu.popup.show(WindowID, MenuID, x,y, hAlign, vAlign, animOrient)


Parameters

IDWindowIDID of the parent window
IDMenuIDID of the menu.
INTx,yPosition X and Y of the popup menu in the screen.
STRINGhAlignHorizontal Alignment.
Can be: left, right, center
STRINGvAlignVertical Alignment.
Can be: top, bottom, center
STRINGanimOrientOrientation 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