Bounds (SUI)

Defines the boundaries of a window within the screen’s coordinate space, or of a UI element within the container’s coordinate space.

A Bounds object is created when you set an element’s bounds property. You can set the property using a JavaScript object with properties named left, top, right, bottom or x, y, width, height, or an array with 4 values in the order [x, y, wd, ht].

Objects:

Number

Property Listing

Property

Type

Access

Description

bottom

Number

read/write

The vertical coordinate, a pixel offset from the origin of the element's coordinate space.

height

Number

read/write

The height in pixels.

left

Number

read/write

The horizontal coordinate, a pixel offset from the origin of the element's coordinate space.

length

Number

readonly

The array length.

right

Number

read/write

The width in pixels.

top

Number

read/write

The height in pixels.

width

Number

read/write

The width in pixels.

x

Number

read/write

The horizontal coordinate, a pixel offset from the origin of the element's coordinate space.

y

Number

read/write

The vertical coordinate, a pixel offset from the origin of the element's coordinate space.

Object of

StaticText (SUI).bounds

Button (SUI).bounds

IconButton (SUI).bounds

EditText (SUI).bounds

ListBox (SUI).bounds

DropDownList (SUI).bounds

Checkbox (SUI).bounds

Scrollbar (SUI).bounds

RadioButton (SUI).bounds

Slider (SUI).bounds

Progressbar (SUI).bounds

TreeView (SUI).bounds

FlashPlayer (SUI).bounds

Group (SUI).bounds

Panel (SUI).bounds

Window (SUI).frameBounds

Window (SUI).bounds

StaticText (SUI).windowBounds

Button (SUI).windowBounds

IconButton (SUI).windowBounds

EditText (SUI).windowBounds

ListBox (SUI).windowBounds

DropDownList (SUI).windowBounds

Checkbox (SUI).windowBounds

Scrollbar (SUI).windowBounds

RadioButton (SUI).windowBounds

Slider (SUI).windowBounds

Progressbar (SUI).windowBounds

TreeView (SUI).windowBounds

FlashPlayer (SUI).windowBounds

Group (SUI).windowBounds

Panel (SUI).windowBounds

Window (SUI).windowBounds