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

Reply via email to