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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 71
CHAPTER 4: User-Interface Tools Types of controls 72
Displaying images
You can display icon images in Image or IconButton controls, or display images in place of strings or in
addition to strings as the selectable items in a
Listbox or DropdownList control. In each case, the image
is defined by setting the element’s
image property. You can set it to a ScriptUIImage object; a named icon
resource; a File object
; or the pathname of a file containing the iconic image, or of an alias or shortcut to
that file (see
Specifying paths” on page 39).
The image data for an icon can be in Portable Network Graphics (PNG) format, or in Joint Photographic
Experts Group (JPEG) format. See http://www.libpng.org
and http://www.jpeg.org/ for detailed
information on these formats.
You can set or reset the
image property at any time to change the image displayed in the element.
The scripting environment can define icon resources, which are available to scripts by name. To specify an
icon resource, set a control’s
image property to the resources JavaScript name, or refer to the resource by
name when creating the control. For example, to create a button with an application-defined icon
resource:
myWin.upBtn = myWin.add ("iconbutton", undefined, "SourceFolderIcon");
Photoshop CS5, for example, defines these icon resources:
Step1Icon
Step2Icon
Step3Icon
Step4Icon
SourceFolderIcon
DestinationFolderIcon
ListItem
Items added to or inserted into any type of list control are ListItem objects, with
properties that can be manipulated from a script.
ListItem elements can be of the
following types:
X item: the typical item in any type of list. It displays text or an image, and can be
selected. To display an image, set the item objects
image property; see
Displaying images” on page 72.
X separator: a separator is a nonselectable visual element in a drop-down list.
Although it has a
text property, the value is ignored, and the item is displayed as
a horizontal line.
X node: a displayable and selectable item in a TreeView control which can contain
other
ListItem objects, including other items of type node.
FlashPlayer
Runs a Flash movie within a ScriptUI window. Its control’s methods allow you to load a
movie from an SWF file and control the playback. See
FlashPlayer control functions
on page 145.
You can also use the control object to communicate with the Flash application, calling
ActionScript methods, and making JavaScript methods defined in your Adobe
application script available to the Flash ActionScript code. See
Calling ActionScript
functions from a ScriptUI script” on page 86.
The
title property provides an optional label; the titleLayout property places the
label with respect to the player.
Vista de página 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 303 304

Comentários a estes Manuais

Sem comentários