Hi
I see the same thing as you do, with your code below.
I also see the problem if I use the image in the tab
datapath. However, if I add a resource to the canvas,
and then pint to the resource in the view, the context
menu item gets added. Does anyone know if this is a
bug or expected behaviour?
Bill Powell
--- taocore <[EMAIL PROTECTED]> wrote:

> 
> 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
> 



       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

Reply via email to