MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuel d'utilisateur Page 64

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 148
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 147 148

Commentaires sur ces manuels

Pas de commentaire