EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 98

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 97
CHAPTER 4: User-Interface Tools Managing control titles 98
5. Determine the column, row, or stack dimensions, based on the dimensions of the children.
6. Using the desired alignment for each child element, adjust its trial location relative to the edges of its
container.
7. Set the
bounds property for each child element.
8. Set the container’s
preferredSize property, based on the margins and dimensions of the row or
column of child elements.
Automatic layout restrictions
The following restrictions apply to the automatic layout mechanism:
X The default layout manager does not attempt to lay out a container that has a defined bounds
property. The script programmer can override this behavior by defining a custom layout manager for
the container.
X The layout mechanism does not track changes to element sizes after the initial layout has occurred.
The script can initiate another layout by calling the layout managers
layout method, and can force
the manager to recalculate the sizes of all child containers by passing the optional argument as true.
Managing control titles
User interface elements often need a title or label to identify their purpose, with the title placed near the
element it identifies. As shown by examples in
Automatic layout” on page 86, you can use a statictext
element as a title or label, and use the automatic layout mechanism to control the placement of such a title
relative to the element it identifies.
The title-layout mechanism provides a simpler way to accomplish this task for many common cases. It
allows you to define an element's title and its spacial relationship with the graphic representation of the
object it identifies, without the need for additional
statictext and container elements. Title layout
operates on an element's optional title
and titleLayout properties. It treats this title and the element's
graphic representation as two separate objects whose relative positions are controlled according to layout
rules within a virtual container that encloses both objects. This is similar to the operation of the automatic
layout mechanism, but within a more limited scope.
Title layout is available for these types of UI elements:
X DropDownList
X FlashPlayer
X IconButton
X Image
X TabbedPanel
For most of these element types, the title typically appears outside the element itself, and the virtual
container is an imaginary line surrounding the title and the separate element. For the IconButton
, the title
appears inside the bounds of the button, and the virtual container is defined by the outer bounds of the
element. The same principles apply in both cases.
Seitenansicht 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare