Dimension (SUI)

Defines the size of a window or UI element. Contains a 2-element array.

Specifies the height and width of an element in pixels. A Dimension object is created when you set an element’s size property. You can set the property using a JavaScript object with named properties {width: wd, height: ht}, or an array with 2 values in the order [wd, ht].

Objects:

Number

Property Listing

Property

Type

Access

Description

height

Number

read/write

The height in pixels.

length

Number

readonly

The array length.

width

Number

read/write

The width in pixels.

Object of

StaticText (SUI).maximumSize

EditText (SUI).maximumSize

ListBox (SUI).maximumSize

DropDownList (SUI).maximumSize

Checkbox (SUI).maximumSize

Scrollbar (SUI).maximumSize

RadioButton (SUI).maximumSize

Slider (SUI).maximumSize

Progressbar (SUI).maximumSize

TreeView (SUI).maximumSize

FlashPlayer (SUI).maximumSize

Group (SUI).maximumSize

Panel (SUI).maximumSize

Button (SUI).minimumSize

EditText (SUI).minimumSize

ListBox (SUI).minimumSize

DropDownList (SUI).minimumSize

Checkbox (SUI).minimumSize

Scrollbar (SUI).minimumSize

RadioButton (SUI).minimumSize

Slider (SUI).minimumSize

Progressbar (SUI).minimumSize

TreeView (SUI).minimumSize

FlashPlayer (SUI).minimumSize

Group (SUI).minimumSize

Panel (SUI).minimumSize

StaticText (SUI).size

Button (SUI).size

IconButton (SUI).size

EditText (SUI).size

ListBox (SUI).size

DropDownList (SUI).size

Checkbox (SUI).size

FlashPlayer (SUI).size

Group (SUI).size

Panel (SUI).size

Scrollbar (SUI).size

RadioButton (SUI).size

Slider (SUI).size

Progressbar (SUI).size

TreeView (SUI).size

Window (SUI).size

ScriptUIImage (SUI).size

Window (SUI).maximumSize

Button (SUI).maximumSize

IconButton (SUI).maximumSize

StaticText (SUI).minimumSize

IconButton (SUI).minimumSize

Window (SUI).preferredSize

RadioButton (SUI).preferredSize

StaticText (SUI).preferredSize

Button (SUI).preferredSize

IconButton (SUI).preferredSize

EditText (SUI).preferredSize

ListBox (SUI).preferredSize

DropDownList (SUI).preferredSize

Checkbox (SUI).preferredSize

Scrollbar (SUI).preferredSize

Slider (SUI).preferredSize

Progressbar (SUI).preferredSize

TreeView (SUI).preferredSize

FlashPlayer (SUI).preferredSize

Group (SUI).preferredSize

Panel (SUI).preferredSize

Window (SUI).frameSize

Window (SUI).minimumSize

ListBox (SUI).itemSize

DropDownList (SUI).itemSize

TreeView (SUI).itemSize

Return

ScriptUIGraphics (SUI).measureString()