Bounds
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].
Properties
Property | Type | Access | Description |
---|---|---|---|
bottom | Number | r/w | The vertical coordinate, a pixel offset from the origin of the element's coordinate space. |
height | Number | r/w | The height in pixels. |
left | Number | r/w | The horizontal coordinate, a pixel offset from the origin of the element's coordinate space. |
length | Number | readonly | The array length. (default: 4) |
right | Number | r/w | The width in pixels. |
top | Number | r/w | The height in pixels. |
width | Number | r/w | The width in pixels. |
x | Number | r/w | The horizontal coordinate, a pixel offset from the origin of the element's coordinate space. |
y | Number | r/w | The vertical coordinate, a pixel offset from the origin of the element's coordinate space. |
Element of
Button.bounds
Button.windowBounds
Checkbox.bounds
Checkbox.windowBounds
DropDownList.bounds
DropDownList.windowBounds
EditText.bounds
EditText.windowBounds
FlashPlayer.bounds
FlashPlayer.windowBounds
Group.bounds
Group.windowBounds
IconButton.bounds
IconButton.windowBounds
ListBox.bounds
ListBox.windowBounds
Panel.bounds
Panel.windowBounds
Progressbar.bounds
Progressbar.windowBounds
RadioButton.bounds
RadioButton.windowBounds
Scrollbar.bounds
Scrollbar.windowBounds
Slider.bounds
Slider.windowBounds
StaticText.bounds
StaticText.windowBounds
TreeView.bounds
TreeView.windowBounds
Window.bounds
Window.frameBounds
Window.windowBounds
Used in:
Object Group.add (type: String[, bounds: Bounds][, text: String][, properties: Object])
Object Panel.add (type: String[, bounds: Bounds][, text: String][, properties: Object])
void Window.Window (type: String[, title: String][, bounds: Bounds][, properties: Object])
Object Window.add (type: String[, bounds: Bounds][, text: String][, properties: Object])
Jongware, 25-Nov-2012 v3.0.3i | Contents :: Index |