Name

hbox — A horizontal box

Synopsis

LZX: hbox
JavaScript: hbox
Type: Class
Access: public
Topic: Components.Base Components
Declared in: lps/components/base/hbox.lzx

Description

The hbox provides a convenient way to organize a simple horizontal layout.

Example 31. 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>
            


Superclass Chain

node (LzNode) » view (LzView) » hbox

Known Subclasses

Details

Properties (2)

inset
<attribute name="inset" value="0" />
public var inset;
spacing
<attribute name="spacing" value="0" />
public var spacing;

LZX Synopsis

<class name="hbox" extends=" LzView ">
  <attribute name=" inset " value="0" />
  <attribute name=" spacing " value="0" />
</class>

JavaScript Synopsis

public hbox extends  LzView  {
  public var inset ;
  public var spacing ;
}