
CHAPTER 4: User-Interface Tools Control objects 140
subitems
Array For ListItem objects only. When the parent is a multi-column ListBox,
the
ListItem.text and ListItem.image values describe the label in
the first column, and this specifies additional labels for that row in the
remaining columns.
This contains an array of JavaScript objects, whose length is one less
than the number of columns. Each member specifies a label in the
corresponding column, with the first member (
subitems[0])
describing the label in the second column.
Each object has two properties, of which one or both can be supplied:
text — A localizable display string for this label.
image — An Image object for this label.
text
String The title, label, or displayed text. Ignored for containers of type group.
For controls, the meaning depends on the control type. Buttons use
the
text as a label, for example, while edit fields use the text to
access the content.
For ListItem
objects, this is the display string for the list choice. If the
parent is a multi-column list box, this is the display string 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.
This is a localizable string: see “
Localization in ScriptUI objects” on
page 103.
textselection
String The currently selected text in a control that displays text, or the empty
string if there is no text selected.
Setting the value replaces the current text selection and modifies the
value of the
text property. If there is no current selection, inserts the
new value into the
text string at the current insertion point. The
textselection value is reset to an empty string after it modifies the
text value.
N
OTE: Setting the textselection property before the edittext
control’s parent
Window exists is an undefined operation.
title
String For a DropDownList, FlashPlayer, IconButton, Image, or TabbedPanel
only, a text label for the element. The title can appear to the left or
right of the element, or above or below it, or you can superimpose the
title over the center of the element. The placement is controlled by
the titleLayout
value.
Comentarios a estos manuales