0

hbox in hbox align problem [closed]

asked 2014-03-11 10:35:16 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

Hi all,

<zk>
  <window border="normal" title="hello">
    <hbox width ="100%">    
        <hbox align="center" pack="start">      
        <button label="Click Me" />
        </hbox>
        <hbox align="center" pack="end">    
            <button label="Click Me" />
        </hbox>
    </hbox>
  </window>
</zk>

Simple code, to be found on fiddle, that looks to have one button left and one right.
Unfortually that doesn't do the trick.
Someone else have an idea of getting one button left and one button right? (this is simplified problem, I must have 2 menubars in it)

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by chillworld
close date 2014-03-11 21:42:10

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-03-11 11:00:16 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

Oke sorry but already found it.

<zk>  
  <window border="normal" title="hello">
     <hbox width ="100%">
            <hbox align="center" pack="start">
              <button label="Click Me" />
        </hbox>
        <hbox align="center" pack="end" hflex="1">
                <button label="Click Me" />
        </hbox>
    </hbox>
  </window>
</zk>
link publish delete flag offensive edit
1

answered 2014-03-11 15:32:25 +0800

IngoB gravatar image IngoB flag of Germany
256 6
<zk>
  <window border="normal" title="hello" apply="pkg$.TestComposer">
    <hbox hflex="true" vflex="true">    
        <hbox hflex="true" vflex="true" align="center" pack="start">    
        <button label="Click Me" />
      </hbox>
            <hbox hflex="true" vflex="true" align="center" pack="end">      
        <button label="Click Me" />
      </hbox>
    </hbox>
  </window>
</zk>
link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2014-03-11 10:35:16 +0800

Seen: 41 times

Last updated: Mar 11 '14

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