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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 70
CHAPTER 4: User-Interface Tools Types of controls 71
Scrollbar
Like a slider, the scrollbar is a bar with a draggable indicator. It also has “stepper”
buttons at each end, that you can click to jump the indicator by the amount in the
stepdelta property. If you click a point on the bar outside the indicator, the indicator
jumps by the amount in the
jumpdelta property.
You can create scrollbars with horizontal or vertical orientation; if
width is greater
than
height, it is horizontal, otherwise it is vertical. Arguments to the add method
that creates the scrollbar define values for the
value, minvalue and maxvalue
properties.
Scrollbars are often created with an associated
EditText field to display the current
value of the scrollbar, and to allow setting the scrollbar’s position to a specific value.
This example creates a scrollbar with associated
StaticText and EditText elements
within a panel:
dlg.sizePnl = dlg.add(‘panel’, undefined, ‘Dimensions’);
dlg.sizePnl.widthSt = dlg.sizePnl.add(‘statictext’, undefined,
‘Width:’);
dlg.sizePnl.widthScrl = dlg.sizePnl.add(‘scrollbar’, undefined,
300, 300, 800);
dlg.sizePnl.widthEt = dlg.sizePnl.add(‘edittext’);
ListBox
DropDownList
TreeView
These controls display lists of items, which are represented by ListItem objects in
the
items property. You can access the items in this array using a 0-based index.
X A ListBox control displays a list of choices. When you create the object, you
specify whether it allows the user to select only one or multiple items. If a list
contains more items than can be displayed in the available area, a scrollbar may
appear that allows the user to scroll through all the list items. A list box can
display items in multiple columns; see
Creating multi-column lists” on page 73.
X A DropDownList control displays a single visible item. When you click the control,
a list drops down and allows you to select one of the other items in the list.
Drop-down lists can have nonselectable separator items for visually separating
groups of related items, as in a menu.
X A TreeView control is similar to a ListBox, except that the items can have child
items. Items with children can be expanded or collapsed to show or hide the child
items. Child items can in turn contain children.
X The title property provides an optional label; the titleLayout property places
the label with respect to the list.
You can specify the choice items on creation of the list object, or afterward using the
list objects
add() method. You can remove items programmatically with the list
objects
remove() and removeAll() methods.
Vista de página 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 303 304

Comentários a estes Manuais

Sem comentários