From Porcupine wiki

Developers: contextMenu Property

This attribute contains the ContextMenu? assigned to the widget displayed when the user right-clicks on the widget, otherwise it contains null.

There are certain cases when this attribute is not null even though the widget has no context menu explicitly set. This is true for the menus contained inside a menu bar, the FlatButton? of type "menu" and the File? upload controls. All of the above controls display a drop down menu when clicked. The handler of this menu is kept in the contextMenu property.

Syntax

QuiX XML
<qx:rect xmlns:qx="http://www.innoscript.org/quix">
  <qx:contextmenu>
    <qx:menuoption caption="Create" img="images/filenew.gif"/>
    <qx:sep/>
    <qx:menuoption img="images/cut.gif" caption="Cut" onclick="clipboard.cut"/>
    <qx:menuoption img="images/copy.gif" caption="Copy" onclick="clipboard.Copy"/>
    ...
  </qx:contextmenu>
</qx:rect>
JavaScriptoMenu = new ContextMenu({}, parentW);
parentW.contextMenu = oMenu;
parentW.attachEvent('oncontextmenu', Widget__contextmenu);
Retrieved from http://wiki.innoscript.org/pmwiki.php/Developers/QuiXcontextMenu
Page last modified on August 28, 2006, at 08:54 PM