Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

width Property

Developers.QuiXwidth History

Hide minor edits - Show changes to output

June 08, 2006, at 03:31 PM by Tassos Koutsovassilis -
Added lines 1-23:
(:title width Property:)

Gets or sets the widget's width. For the new width to be applied, you need to redraw the widget by calling its "[[(Developers.QuiX)redraw]]" method.

!!Syntax

||cellspacing=1 cellpadding=4 border=1 bgcolor=#ededed
||!`QuiX XML||[@
<qx:rect xmlns:qx="http://www.innoscript.org/quix" width="120">
</qx:rect>
@]||
||!`JavaScript||widget.'''width''' = 120; ||

!! Possible values

The ''width'' property can be of the following types:

||cellspacing=1 cellpadding=4 border=1 bgcolor=#ededed
|| ''length'' ||Integer that specifies the widget's width in pixels.||
|| ''percentage'' ||An integer followed by the "%" sign. The value is a percentage of the width of the parent widget.||
|| ''calculated'' ||A string expression that once evaluated, returns the widget's width.[[<<]]For instance, a value of [@"this.parent.getWidth()"@] is the same as "100%".||

Page last modified on June 08, 2006, at 03:31 PM