PDA

View Full Version : hjow can i set draggable state false in window


thriputapriya
09-23-2004, 10:11 PM
Hi,

In laszlo we can dragg lzx window,this function set default true.How can i set this draggable state false,so window should be fixed position and immovable state.

spoco2
08-09-2005, 04:51 PM
I too would like to know how to do this... or how to use the components to make an object that looks just like a window but acts like a view, as visually it could be very nice for an application.

antun
08-10-2005, 02:49 PM
I don't think there's a variable for this, but youcould try overwriting the setX and setY methods of window.

-Antun

jimhsu
08-31-2005, 02:59 PM
Thanks Antun... your tip worked. Here's is an example:

<?xml version="1.0" encoding="UTF-8" ?>
<canvas>
<!-- Custom Window Class -->
<class name="mywindow" extends="window">
<!-- Don't allow dragging movements -->
<method name="setX"/>
<method name="setY"/>
</class>

<mywindow width="200" height="200"/>
</canvas>