0

Help by Toolbar design

asked 2010-05-04 08:25:56 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-05-04 08:26:55 +0800

Hi all,

i'm struggling with the toolbar. (zk 5.0.1)

The toolbar component have no regions. I need a Toolbar with three Regions for the buttons --> start - center - end
At time i play with 3 toolbars for this, but have problems with the background-color (in chrome), because i'm not able to spread the three toolbars to 100% of the place.
So between the middle and last toolbar are white space.

Here is a picture how it looks in chrome: pic

	<div sclass="z-toolbar" style="padding:0">
			<toolbar align="start" style="float:left">
				<button id="btnHelp" label="Help"
					tooltiptext="${c:l('btnHelp.tooltiptext')}" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
			</toolbar>

			<toolbar align="center" style="float:left">
				<button id="btn2" height="20" label="search" />
				<button id="btn3" height="20" label="print" />
			</toolbar>

			<toolbar align="end" style="float:right">
				<button id="btnNew" height="20" label="New" />
				<button id="btnEdit" height="20" label="Edit" />
				<button id="btnDelete" height="20" label="Delete" />
				<button id="btnSave" height="20" label="Save" />
				<button id="btnClose" height="20" label="Close" />
			</toolbar>
		</div>

thanks for any help

Stephan

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-05-04 09:28:40 +0800

myzkdemo gravatar image myzkdemo
154 3

Hi Stephan,

maybe this can help.
The style change of td.z-hbox-sep is necessary to remove white strips between the toolbars. Maybe you create a own selektorclass for the hbox: .myclass td.z-hbox-sep {width: 0;}

<zk>
<style>
td.z-hbox-sep  {
width: 0;
 }

</style>
   <hbox pack="stretch"  style="padding:0" width="100%">
			<toolbar align="start" style="float:left" width="100%">
				<button id="btnHelp" label="Help" height="20"
					tooltiptext="${c:l('btnHelp.tooltiptext')}" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
				<separator orient="vertical" />
			</toolbar>

			<toolbar align="center" style="float:left" width="100%">
				<button id="btn2" height="20" label="search" />
				<button id="btn3" height="20" label="print" />
			</toolbar>

			<toolbar align="end" style="float:right" width="100%">
				<button id="btnNew" height="20" label="New" />
				<button id="btnEdit" height="20" label="Edit" />
				<button id="btnDelete" height="20" label="Delete" />
				<button id="btnSave" height="20" label="Save" />
				<button id="btnClose" height="20" label="Close" />
			</toolbar>
		</hbox>
   
</zk>

regards,
Gunter

link publish delete flag offensive edit

answered 2010-05-04 09:58:46 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-05-04 10:17:54 +0800

FANTASTIC !!!

It works.

Many thanks Gunter

works now in the following way:

		<style>
			body { padding: 0 0; /* 0 padding on top and bottom and 0
			padding on right and left */ }
			<!--  remove white strips between the toolbars	-->
			.hboxRemoveWhiteStrips td.z-hbox-sep {width: 0; padding:0;}
		</style>


		<div sclass="z-toolbar" style="padding:0">
			<hbox pack="stretch" sclass="hboxRemoveWhiteStrips" width="100%">
				<toolbar align="start" style="float:left">
					<button id="btnHelp" label="Help"
						tooltiptext="${c:l('btnHelp.tooltiptext')}" />
					<separator orient="vertical" />
					<separator orient="vertical" />
					<separator orient="vertical" />
					<separator orient="vertical" />
					<separator orient="vertical" />
					<separator orient="vertical" />
				</toolbar>

				<toolbar align="center" style="float:left">
					<button id="btn2" height="20" label="search" />
					<button id="btn3" height="20" label="print" />
				</toolbar>

				<toolbar align="end" style="float:right">
					<button id="btnNew" height="20" label="New" />
					<button id="btnEdit" height="20" label="Edit" />
					<button id="btnDelete" height="20" label="Delete" />
					<button id="btnSave" height="20" label="Save" />
					<button id="btnClose" height="20" label="Close" />
				</toolbar>
			</hbox>
		</div>

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-05-04 08:25:56 +0800

Seen: 627 times

Last updated: May 04 '10

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