Tabbox with Toolbar: how do I give the Toolbar all available space?

asked 2013-06-11 21:05:24 +0800

FastModel gravatar image FastModel

I've got a tabbox with a fixed set of tabs, and I'd like to use the remaining space for a toolbar, with some of the controls appearing immediately after the tabs, rather than right-aligned.

In other words, I'd like to do something like this:

<tabbox hflex="1">
        <tab label="tab1"/>
        <tab label="tab2"/>
    <toolbar hflex="1" align="start">
        <hlayout hflex="1">
        more controls....

I've tried a number of variants, but no matter what I do, the toolbar gets only its minimal width, and the tabs get the rest of the space, even though there are only a few of them. The result is that the toolbar buttons are all lumped together on the right side.

Any suggestions?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-12 07:58:20 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6

updated 2013-06-12 07:59:09 +0800

Hi! i think that the fastest way to do that is not trying to change the default implementation of the Tabbox but is to workaround it:

    <window title="Tabbox" border="normal" width="400px">
            .mytab {
                background-color: lightyellow;
                border: 1px solid grey;
                padding: 3px;
            <div sclass="mytab" onClick="mytabs.setSelectedIndex(0)">one</div>
            <div sclass="mytab" onClick="mytabs.setSelectedIndex(1)">two</div>
            <toolbar hflex="1">
                <toolbarbutton label="a" />
                <toolbarbutton label="b" />
                <toolbarbutton label="c" />
                <toolbarbutton label="d" />
                <toolbarbutton label="e" />
        <tabbox id="mytabs">
            <tabs visible="false">
                    <label value="one" />
                    <label value="two" />


link publish delete flag offensive edit
Your answer
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

1 follower



Asked: 2013-06-11 21:05:24 +0800

Seen: 16 times

Last updated: Jun 12 '13

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