EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 128

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 127
CHAPTER 4: User-Interface Tools Control objects 128
image Image
Displays an icon or image.
To add to a window
w:
w.add (“image” [, bounds, icon, {creation_properties}]);
bounds
: Optional. The control’s position and size.
icon: Optional. The named resource for the icon or family of
icons displayed in the image control, or a pathname or File
object for an image file. Images must be in PNG format.
creation_properties: Optional. An object that contains the
following property:
name: A unique name for the control.
item Array of
ListItem
The choice items in a list box or drop-down list. The objects are
created when items are specified on creation of the parent list
object, or afterward using the list control’s add()
method.
Items in a drop-down list can be of type
separator, in which case
they cannot be selected, and are shown as a horizontal line.
Item objects have these properties which are not found in other
controls:
checked
expanded
image
index
selected
listbox ListBox
A list box with zero or more items. Calls the onChange callback if the
item selection is changed by a script or the user, or if the objects
notify()
method is called. A double click on an item selects that item
and calls the onDoubleClick
callback.
To add to a window
w:
w.add ("listbox", bounds [, items, {creation_properties}]);
bounds: Optional. The control’s position and size.
items: Optional. An array of strings for the text of each list item.
A
ListItem object is created for each item. Supply this
argument, or the
items property in creation_properties, not
both.
Type keyword Class name Description
Vista de página 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 303 304

Comentários a estes Manuais

Sem comentários