
CHAPTER 4: User-Interface Tools Control objects 137
image
Object A ScriptUIImage object, or the name of an icon resource, or the
pathname or File object
for a file that contains a platform-specific
image in PNG or JPEG format, or for a shortcut or alias to such a file.
X For an IconButton, the icon appears as the content of the button.
X For an Image, the image is the entire content of the image
element.
X For a ListItem, the image is displayed to the left of the text.
If the parent is a multi-column ListBox
, this is the display image
for the label in the first column, and labels for further columns are
specified in the subitems
array. See “Creating multi-column lists”
on page 73.
indent
Number A number of pixels by which to indent the element during automatic
layout. Applies for
column orientation and left alignment, or row
orientation and
top alignment.
index
Number For ListItem objects only. The index of this item in the items
collection of its parent list control. Read only.
items
Array of
Object
For a list object (ListBox, DropDownList or TreeView list), a collection
of ListItem
objects for the items in the list. Access by 0-based index. To
obtain the number of items in the list, use
items.length. Read only.
itemSize
Dimension For a list object (ListBox, DropDownList or TreeView list), a Dimension
object describing the width and height in pixels of each item in the
list. Used by auto-layout to determine the
preferredSize of the list,
if not otherwise specified.
If not set explicitly, the size of each item is set to match the largest
height and width among all items in the list
jumpdelta
Number The amount to increment or decrement a Scrollbar indicator’s
position when the user clicks ahead or behind the moveable element.
Default is 20% of the range between the
maxvalue and minvalue
property values.
justify
String The justification of text in static text and edit text controls. One of:
left (default)
center
right
NOTE: Justification only works if the value is set on creation, using a
resource specification or creation parameters.
Komentarze do niniejszej Instrukcji