The lz tabsbar class for laying out tab items.
A tabsbar is a container that uses a default
x-axis simplelayout with a spacing of -15 to
lay out its tab children (which have extra spacing on each side) so they
overlap.
This it the default tab bar created by tabpane. This class is dependent on tabs (or any subclass of basetabs) and shouldn't be used by itself. The default layout for its subviews is "class: simplelayout; axis: x; spacing: -15". You can pass the name of this class in the 'barclass' attribute of tabpane, basetabpane, basetabs, and tabs. Tabs uses this class as its default 'barclass'.
<canvas width="400" height="100">
<include href="lz"/>
<simplelayout axis="x" spacing="10"/>
<view layout="class: simplelayout; axis: y; spacing: 5"
bgcolor="red">
<text>basetabs barclass=basetabsbar</text>
<basetabs y="10" tabclass="tab" barclass="basetabsbar">
<basetabpane text="one">
<text>one</text>
</basetabpane>
<basetabpane text="two">
<text>two</text>
</basetabpane>
<basetabpane text="three">
<text>three</text>
</basetabpane>
</basetabs>
</view>
<view layout="class: simplelayout; axis: y; spacing: 5"
bgcolor="yellow">
<text>basetabs barclass=tabsbar</text>
<basetabs y="10" tabclass="tab" barclass="tabsbar">
<basetabpane text="one">
<text>one</text>
</basetabpane>
<basetabpane text="two">
<text>two</text>
</basetabpane>
<basetabpane text="three">
<text>three</text>
</basetabpane>
</basetabs>
</view>
</canvas>
<tab>, <tabs> and <basetabsbar>
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| spacing | Tag & JS | number | Number | 0 | setter |
|
Spacing between tab items. Default is 0. |
|||||
|
|
|||||
doesenter, enabled, hasdefault, isdefault, style, styleable, text
changed, ignoreform, onchanged, onvalue, rollbackvalue, submit, submitname
dataoption, defaultselection, itemclassname, multiselect, toggleselected
class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes
aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset
doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault
applyData, commit, findForm, init, rollback, setChanged, setValue, toXML, updateData
addItem, clearSelection, getItem, getItemAt, getNumItems, getSelection, getText, getValue, moveSelection, removeItem, removeItemAt, select, selectItem, selectItemAt, selectNext, selectPrev, setHilite
animate, applyConstraint, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption
addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize
| Events |
onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony
Copyright © 2002-2005 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.