How to disable window shadow globally?

asked 2009-04-29 19:43:36 +0800

dastultz
797 8

I've run in to a problem with datebox and the shadow from the calendar sticking around. I'll detail that later. I've also found another problem with moving windows that involves the shadow. Is there a way to turn off window shadows globally as a temporary workaround to the problems I'm seeing?

/Daryl

delete retag edit

9 Replies

Sort by » oldest newest

answered 2009-04-30 04:38:14 +0800

jumperchen
3909 2 8
http://jumperchen.blogspo...

Hi,
you can use a lang-addon.xml to specify the window with disabled shadow.

/Jumper

answered 2009-04-30 12:47:16 +0800

dastultz
797 8

I tried this:

<component>
<component-name>window</component-name>
<extends>window</extends>
<property>
<property-value>false</property-value>
</property>
</component>


but it had no effect.

This works:

<window shadow="false">...</window>

but there doesn't seem to be any property "shadow" of org.zkoss.zul.Window. How do I disable the shadow of a Window from Java?

/Daryl

answered 2009-04-30 12:52:56 +0800

jumperchen
3909 2 8
http://jumperchen.blogspo...

Have you specified the lang-addon.xml into zk.xml too?
From Java code, you can use the method "setShadow()" of Window.

/Jumper

answered 2009-04-30 13:16:33 +0800

dastultz
797 8

Yes, I edited an existing lang-addon.xml for which other components are working fine. There is no such method "setShadow()" of Window.

This works:

	<window visible="false" closable="true" id="win1" border="normal">
<caption label="Test" />
<label>...</label>
</window>
<zscript>
</zscript>


But this in Java won't compile:

Window win = new Window("Stuff", "normal", true);
win.setPage(page);


How is that possible?

/Daryl

answered 2009-04-30 13:25:15 +0800

jumperchen
3909 2 8
http://jumperchen.blogspo...

Which zk version did you use?
The setShadow method was ready since ZK 3.6.0.

/Jumper

answered 2009-04-30 13:54:01 +0800

dastultz
797 8

I am using ZK 3.6.1.FL.

/Daryl

answered 2009-04-30 14:23:29 +0800

dastultz
797 8

It looks like a build path problem. It seems I got my links mixed up. Sorry about that. I can't seem to find the FL downloads. I'm pretty sure I downloaded a FL after 3/23 (4/23) but the 3/23FL is the only zip file I can find on my local system. I tried to download the latest FL from the web site but I just see some jspTags stuff. Where's the Freshly download page?

/Daryl

answered 2009-04-30 14:35:51 +0800

dastultz
797 8

Ok, setShadow() works from Java but the lang-addon above does not. Is it because I'm using Java and not ZUL? I'm using xul/html as the language-name. Is there something else I should be using? Ultimately I'm looking for a workaround to bug #2779599 which you don't seem to want to fix. I need a way to disable shadows on all windows so I can drag them around in Mac/FF.

/Daryl

answered 2012-06-26 21:36:30 +0800

yayatip
12

I am also looking solution for this? Anyone has a workaround to disable shadows in the application?

[hide preview]

Stats

Asked: 2009-04-29 19:43:36 +0800

Seen: 568 times

Last updated: Jun 26 '12

Related questions

Support Options
• Email Support
• Training
• Consulting
• Outsourcing