gui.popMenu
Shows or hides a popup menu.
Prototype
bOk = gui.popMenu ( hMenu, bShow, [nGlobalPositionX=nil, nnGlobalPositionY=nil] )
Description
Shows or hides a popup menu, for instance a right-click context menu.
Parameters
hMenu - menu handle
bShow - true to show, false to hide
nGlobalPositionX, nGlobalPositionY - optional menu position on the screen in px, default nil means mouse pointer position
Return values
bOk - true on success
Sample
function onPropertyViewSectionAIModelsItemRightClicked ( hView, hComponent ) local hMenu = gui.getComponent ( "genericContextMenu" ) if ( hMenu ) then -- fill it with items -- and when done, pop the menu gui.popMenu ( hMenu, true ) -- etc
Available since ShiVa 2.0