mico
07-07-2008, 11:25 PM
no custom-context menu displayed in dhtml v4.1
even not for the case shown in http://www.openlaszlo.org/lps4.1/docs/developers/input-devices.html
any idea ? dear experts...
<canvas>
<simplelayout spacing="3"/>
<view width="350" height="100" bgcolor="#cccccc">
<text text="For my context menu to work, I need to run in SWF8"/>
<method event="oninit">
var cmenu = new LzContextMenu(); // create the menu
var item1 = cmenu.makeMenuItem('hello', new LzDelegate(this, null)); // create the menu item,
and set up an LzDelegate as a callback
cmenu.addItem(item1); //add the item to the menu
this.setContextMenu(cmenu);
</method>
</view>
</canvas>
even not for the case shown in http://www.openlaszlo.org/lps4.1/docs/developers/input-devices.html
any idea ? dear experts...
<canvas>
<simplelayout spacing="3"/>
<view width="350" height="100" bgcolor="#cccccc">
<text text="For my context menu to work, I need to run in SWF8"/>
<method event="oninit">
var cmenu = new LzContextMenu(); // create the menu
var item1 = cmenu.makeMenuItem('hello', new LzDelegate(this, null)); // create the menu item,
and set up an LzDelegate as a callback
cmenu.addItem(item1); //add the item to the menu
this.setContextMenu(cmenu);
</method>
</view>
</canvas>