hbox.lzx

<library>
    <include href="utils/layouts/simplelayout.lzx"/>
    <class name="hbox">
        <attribute name="spacing" value="0"/>
        <attribute name="inset" value="0"/>
        <simplelayout spacing="${parent.spacing}" inset="${parent.inset}" axis="x"/>
        <doc>
          <tag name="shortdesc"><text>A horizontal box</text></tag>
          <text>
            <p>
            The <tagname>hbox</tagname> provides a convenient way to organize a simple horizontal layout.
            <example title="hbox">
            <canvas height="30" >
                <hbox spacing="10">
                    <handler name="onclick">
                        this.animate('spacing', this.spacing == 10 ? 0 : 10, 1000);
                    </handler>
                    <text>click</text>
                    <text>to</text>
                    <text>animate</text>
                    <text>spacing</text>
                </hbox>
            </canvas>
            </example>
            </p>
          </text>
        </doc>
    </class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2005-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@                                                         -->

Cross References

Includes

Classes