vis
06-10-2003, 08:48 PM
Hello, Laszlo people !
Just find out, that this example does not work:
<canvas>
<view width="100" height="100" bgcolor="#FF0000">
<method event="oninit">
this.tmpview = new LzView(this, { bgcolor : "#00FF00", width : 50, height : 50});
</method>
</view>
</canvas>
It should show a small green box on top of the big red box. Right ? It shows the black box instead of green.
Of course, you can make something like:
<canvas>
<view width="100" height="100" bgcolor="#FF0000">
<method event="oninit">
this.tmpview = new white_box(this, { width : 50, height : 50});
</method>
</view>
<class name="white_box" extends="view" bgcolor="#00FF00">
</class>
</canvas>
But should the first example works ?
Just find out, that this example does not work:
<canvas>
<view width="100" height="100" bgcolor="#FF0000">
<method event="oninit">
this.tmpview = new LzView(this, { bgcolor : "#00FF00", width : 50, height : 50});
</method>
</view>
</canvas>
It should show a small green box on top of the big red box. Right ? It shows the black box instead of green.
Of course, you can make something like:
<canvas>
<view width="100" height="100" bgcolor="#FF0000">
<method event="oninit">
this.tmpview = new white_box(this, { width : 50, height : 50});
</method>
</view>
<class name="white_box" extends="view" bgcolor="#00FF00">
</class>
</canvas>
But should the first example works ?