[Laszlo-user] contextmenu problem

taocore taocore at laszlomail.com
Thu Sep 6 02:26:07 PDT 2007


It seems that can not install contextmenu on view which loads resource 
dynamically. Any sugguestions?


Try the code blow:


<canvas debug="true">

   <view bgcolor="white">

      <method event="oninit" >

         this.setSource('cd_cover.jpg');

         var cm = new LzContextMenu();

         var item = cm.makeMenuItem('insertasd', new LzDelegate(this, 
'insert'));

         cm.addItem(item);

         this.setContextMenu(cm);

      </method>

   </view>

</canvas>




taocore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070906/2c82ad06/attachment.html


More information about the Laszlo-user mailing list