0

Borderlayout Button Manipulation CSS

asked 2010-07-12 14:00:02 +0800

farmacia gravatar image farmacia
105

Hi @all
Does someone know how I can manipulate the Buttons in the Borderlayout N,E,S,W with CSS
(I mean the buttons in the Splitbar). There are not documented in the Styleguide for the Borderlayout.

I use ZK 5.0.3 at the moment......

Thanks

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-07-13 17:28:46 +0800

farmacia gravatar image farmacia
105

BTW.

the Button CSS (Except of the Background-Color) doesn't work at all :-( I tried really everything. I want my own corners and stuff but it won't let me change the "Corner-Graphs" !

link publish delete flag offensive edit

answered 2010-07-13 20:24:43 +0800

SimonPai gravatar image SimonPai
1696 1

Hi farmacia,

This is definitely a part missing in the style guide.
The original CSS for splitter button images in Borderlayout is given by src/archive/web/js/zul/layout/css/borderlayout.css.dsp from zul.jar:

.z-west-splt-btn {
	background-image: url(${c:encodeURL('~./zul/img/splt/colps-l.png')});
}
.z-east-splt-btn {
	background-image: url(${c:encodeURL('~./zul/img/splt/colps-r.png')});
}
.z-north-splt-btn {
	background-image: url(${c:encodeURL('~./zul/img/splt/colps-t.png')});
}
.z-south-splt-btn {
	background-image: url(${c:encodeURL('~./zul/img/splt/colps-b.png')});
}

There is a way to figure this out without documentation. If you work with Firefox, you can use the inspect element function of Firebug to see the DOM structure and the CSS classes of elements. Or if you work with Chrome, it also comes with an Inspector.

For the Button problem, do you use the button in Trendy mold or in OS mold? The latter mold uses browser's native button, which cannot be customized.

Regards,
Simon

link publish delete flag offensive edit

answered 2010-07-14 08:40:43 +0800

farmacia gravatar image farmacia
105

Hi Simon,

thank you so much, I will try it and post the result later.

I use the "default" Mold for the Buttons which I assume is the "OS" one.

Again, THANK YOU SO MUCH !!!!

link publish delete flag offensive edit

answered 2010-07-14 18:52:34 +0800

farmacia gravatar image farmacia
105

updated 2010-07-14 18:52:55 +0800

Thanks to Simon I changed my Splitbar-Buttons and it is working like a charm.

.z-west-splt-btn
{
background-image: url('borderlayout-left-button.png');
}

Thats it.....Thanks a lot again.....and now, if someone knows something about the Button it would be the perfect day ;-)

THANKS

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: 2010-07-12 14:00:02 +0800

Seen: 688 times

Last updated: Jul 14 '10

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