0

Move window without border

asked 2012-04-05 08:33:14 +0800

Neus gravatar image 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 flag offensive retag edit

4 Replies

Sort by » oldest newest

answered 2012-04-12 02:15:29 +0800

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

Hi,

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

ZKFiddle-Link

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

link publish delete flag offensive edit

answered 2012-04-12 06:49:55 +0800

Neus gravatar image Neus
1415 14

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

link publish delete flag offensive edit

answered 2012-04-12 15:17:10 +0800

twiegand gravatar image twiegand
1807 3

updated 2012-04-12 15:20:05 +0800

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

link publish delete flag offensive edit

answered 2012-04-13 08:17:47 +0800

Neus gravatar image 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!

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-04-05 08:33:14 +0800

Seen: 153 times

Last updated: Apr 13 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More