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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 87
CHAPTER 4: User-Interface Tools Automatic layout 88
et: EditText { characters:4, justify:’right’ } \
}");
w.show();
Each example shows the effects of setting particular layout properties in various ways. In each window, w.
text
is set so that the window title shows which property is being varied, and w.st.text is set to display
the particular property value being demonstrated.
Container orientation
The orientation property of a container specifies the organization of child elements within it. It can have
these values:
X row — Child elements are arranged next to each other, in a single row from left to right across the
container. The height of the container is based on the height of the tallest child element in the row,
and the width of the container is based on the combined widths of all the child elements.
X column — Child elements are arranged above and below each other, in a single column from top to
bottom across the container. The height of the container is based on the combined heights of all the
child elements, and the width of the container is based on the widest child element in the column.
X stack — Child elements are arranged overlapping one another, as in a stack of papers. The elements
overlie one another in the same region of the container. Only the top element is fully visible. The
height of the container is based on the height of the tallest child element in the stack, and the width of
the container is based on the widest child element in the stack.
The following figure shows the results of laying out the sample window with each of these orientations:
Aligning children
The alignment of child elements within a container is controlled by two properties: alignChildren in the
parent container, and
alignment in each child. The alignChildren value in the parent container controls
the alignment of all children within that container, unless it is overridden by the
alignment value set on an
individual child element.
These properties use the same values, which specify alignment along one axis, depending on the
orientation of the container. You can specify an array of two of these strings, to specify alignment along
both axes. The first string specifies the horizontal value, the second specifies the vertical value. The
property values are not case-sensitive; for example, the strings
FILL, Fill, and fill are all valid.
You can also set the value using the corresponding constants from the Alignment
property of the ScriptUI
class; for example:
myGroup.alignment = [ScriptUI.Alignment.LEFT,
ScriptUI.Alignment.TOP]
Vista de página 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 303 304

Comentários a estes Manuais

Sem comentários