One of the community members proposed a nice class library which will do that. His class library was called something like this:
<canvas width="100%" height="80%" >
<include href="">
<debug/>
<contextmenuholder id="yellowmenu" > <contextmenuitemholder text="yellow" select');"/>
</contextmenuholder>
<contextmenuholder id="canvasmenu" > <contextmenuitemholder text="canvas" select');"/>
</contextmenuholder>
<contextmenuholder id="mymenu" > <contextmenuitemholder text="test1" select');"/>
<contextmenuitemholder text="test2" select');"/>
<contextmenuitemholder text="test3" select');"/>
<contextmenuitemholder text="test4" select');"/>
</contextmenuholder>
<view height="130" bgcolor="yellow" width="130" id="yellowview">
<wrappinglayout axis="y" spacing="10"/>
<view id="greenview" bgcolor="green" width="50" height="50" > <view id="grayview" bgcolor="gray" width="50" height="50" > <view id="redview" bgcolor="red" width="50" height="50" > <view id="blueview" bgcolor="blue" width="50" height="50" >
<method event="oninit">
yellowmenu.attach(this);
</method>
</view>
<method event="oninit">
canvasmenu.attach(this);
</method>
</canvas>
So the LzContextMenu and LzContextMenuItem classes wouldn't be used directly in LZX code, but another simple library can be made which uses them internally and is "LZX-friendly".
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
