0

How to disable window shadow globally?

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

dastultz gravatar image dastultz
797 9

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

9 Replies

Sort by ยป oldest newest

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

yayatip gravatar image yayatip
12

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

link publish delete flag offensive edit

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

dastultz gravatar image dastultz
797 9

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

link publish delete flag offensive edit

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

dastultz gravatar image dastultz
797 9

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

link publish delete flag offensive edit

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

dastultz gravatar image dastultz
797 9

I am using ZK 3.6.1.FL.

/Daryl

link publish delete flag offensive edit

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

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

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

/Jumper

link publish delete flag offensive edit

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

dastultz gravatar image dastultz
797 9

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>
	win1.setShadow(false);
	</zscript>

But this in Java won't compile:

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

How is that possible?

/Daryl

link publish delete flag offensive edit

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

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

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

/Jumper

link publish delete flag offensive edit

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

dastultz gravatar image dastultz
797 9

I tried this:

<component>
	<component-name>window</component-name>
	<extends>window</extends>
	<property>
		<property-name>shadow</property-name>
		<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

link publish delete flag offensive edit

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

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

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

/Jumper

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: 2009-04-29 19:43:36 +0800

Seen: 570 times

Last updated: Jun 26 '12

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