0

how can i divide the hbox or hlayout into two area

asked 2011-10-08 09:51:35 +0800

newflypig gravatar image newflypig
61 1

how can i divide the hbox or hlayout into two area,one's width is 80% and the other's width is 20%

the hbox's parent is a tabpanel

and i use the code like :

<tabpanel>
<hbox width="100%">
	<vbox width="80%" height="50px" style="border-style:solid;border-width:3px;border-color:green">
		
	</vbox>
		
	<vbox width="20%" height="50px" style="border-style:solid;border-width:3px;border-color:green">
		
	</vbox>
</hbox>
<tabpanel

but it doesn't worked

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-10-08 11:50:52 +0800

Bobzk gravatar image Bobzk
444 1 8

Have a look at borderlayout.

link publish delete flag offensive edit

answered 2011-10-09 04:07:20 +0800

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

updated 2011-10-09 04:07:47 +0800

you can use the 'cell' component.

<hbox width="100%">
	<cell width="80%" height="50px" style="border-style:solid;border-width:3px;border-color:green" >
		
	</cell>
		
	<cell width="20%" height="50px" style="border-style:solid;border-width:3px;border-color:green">
		
	</cell>
</hbox>

best
Stephan

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: 2011-10-08 09:51:35 +0800

Seen: 200 times

Last updated: Oct 09 '11

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