Name

basetabsbar — A non-visual container for basetab components.

Synopsis

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

Description

A basetabsbar is a non-visual container class that uses a default x-axis simplelayout to lay out its basetab children. basetabsbar is contained in a basetabs component.

Example 28. custom basetabsbar

            <canvas width="150" height="75">
              <include href="base"/>
            
              <class name="aquatab" extends="basetab" 
                        width="40" height="20" bgcolor="aqua">
                <text>tab</text>
              </class>
            
              <class name="spacetabsbar" extends="basetabsbar" bgcolor="black" 
                     layout="class: simplelayout; axis: x; spacing: 4">
              </class>
            
              <basetabs x="10" y="10" tabclass="aquatab" barclass="spacetabsbar">
                <basetabpane>
                  <text>one</text>
                </basetabpane>
                <basetabpane>
                  <text>two</text>
                </basetabpane>
                <basetabpane>
                  <text>three</text>
                </basetabpane>
              </basetabs>
            </canvas>
            

This class is a container for basetab items. It must be a child of basetabs. The default layout for its subviews is "class: simplelayout; axis: x; spacing: 0". You can pass the name of this class in the 'barclass' attribute of tabpane, basetabpane, basetabs, and tabs. Basetabs uses this class as its default 'barclass'.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baseformitem » baselist » basetabsbar

Known Subclasses

Known Direct Subclasses: tabsbar

Details

LZX Synopsis

<class name="basetabsbar" extends=" baselist ">
</class>

JavaScript Synopsis

public basetabsbar extends  baselist  {
}