PDA

View Full Version : Creating a movable window


Anusha
03-29-2004, 01:49 AM
Hi All
Can I create a movable window using the 'new' operator..i tried doing it but unable to create it only for the buttons alone i'm able to do it..is there any way to create windows in such way...any ideas or solution in this topic..

regards

Anush

antun
03-29-2004, 11:27 AM
The reason it didn't work is because the lz components library wasn't included in your app at compile-time (since there wasn't an instance of the window class there). You can manually include it as follows:


<canvas debug="true">
<include href="lz/" />
<button>
<method event="onclick">
var n = new window(canvas, {height:200, width:200} );
</method>
</button>
</canvas>


-Antun