MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuale Utente Pagina 64

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 148
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 63
Figure 4-8 shows the result of Example 4-8.
Figure 4-8. A complex layout using various types of layout
mechanisms
The Panel Container
The Panel
container consists of a title bar, a caption, a status
message, a border, and a content area for its children. You can
use Panel containers to wrap self-contained application mod-
ules. You can control the display layout by using the layout
property set to vertical (the default), horizontal, or abso
lute. Each child must have its x and y positions set when using
an absolute layout, or they must use anchors for a constraint-
based layout.
Example 4-9 shows a sample Panel layout.
Example 4-9. Photo2.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
48 | Chapter 4:Flex Controls and Layout
Vedere la pagina 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 147 148

Commenti su questo manuale

Nessun commento