# Move window without border

Neus
1415 14

Hi,
I created a window without border and without title. I want to move the window but without title panel it is not possible.
Does anybody knows a way to do it?
Thank you!

delete retag edit

## 4 Replies

benbai
2228 6
http://www.zkoss.org

Hi,

If the window has content, you can drag it.
For example,

index.zul
<zk>	<window id="win" draggable="true">		abc	</window>	<window droppable="true" hflex="1" vflex="1">		<attribute name="onDrop">			event.getDragged().setParent(box1);		</attribute>		<hbox id="box1">			You can drag abc here ->		</hbox> 	</window>	<window droppable="true" hflex="1" vflex="1">		<attribute name="onDrop">			event.getDragged().setParent(box2);		</attribute>		<hbox id="box2">			You can drag abc here ->		</hbox> 	</window></zk>

Regards,
Ben

Neus
1415 14

But I can't drag it wherever I want like a normal window, isn't it?

twiegand
1807 3

Neus,

At a minimum, try putting a border around the window.  You could also put a "blank" title.  Either combination will let you drag windows around.

To test this, update the first <window> tag (containing the text abc) in Ben's example above to look like this:

<window id="win" draggable="true" border="normal">


For a blank title, try this:

<window id="win" draggable="true" border="normal" title="&#160;">


Regards,

Todd

Neus
1415 14

I am using the blank title to move the window but I was waiting if some of you could tell me a solution to move it without title because it is a very small window and title panel is big.
However it is not posible I leave it with the blank title.

Thank you!

[hide preview]