EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificaciones Pagina 124

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 304
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 123
CHAPTER 4: User-Interface Tools Control objects 124
Control types and creation parameters
The following keywords can be used in string literals as the type specifier for the add method, available on
Window and container (Panel and Group) objects. The class names can be used in resource specifications
to define controls within a container element (
Window, Panel, or Group).
All types of controls, including containers, have an optional creation parameter
name that allows you to
give the object a unique name.
Type keyword Class name Description
button Button
A pushbutton containing a mouse-sensitive text string. Calls the
onClick
callback if the control is clicked or if its notify() method is
called.
To add to a window
w:
w.add (“button” [, bounds, text, creation_properties}]);
bounds
: Optional. The control’s position and size.
text: Optional. The text displayed in the control.
creation_properties: Optional. An object that contains any of
the following properties:
name: A unique name for the control. For a modal dialog, the
special name ok” makes this defaultElement
, and the
special name cancel” makes this the cancelElement
of the
parent dialog.
checkbox Checkbox
A dual-state control showing a box with a checkmark when value is
true, empty when
value is false. Calls the onClick callback if the
control is clicked or if its notify()
method is called.
To add to a window
w:
w.add (“checkbox” [, bounds, text,
{creation_properties}]);
bounds
: Optional. The control’s position and size.
text: Optional. The text displayed in the control.
creation_properties: Optional. An object that contains any of
the following properties:
name: A unique name for the control.
Vista de pagina 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 303 304

Comentarios a estos manuales

Sin comentarios