MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guida Utente Pagina 136

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 256
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 135
136 Use List-based Form Controls
1. With your Lessons project selected in the Navigator view, select File > New > MXML
Application and create an application file called ListControl.mxml.
2. Designate the ListControl.mxml file as the default file to be compiled by right-clicking
(Control-click on Macintosh) the file in the Navigator view and selecting Set As Default
Application from the context menu.
3. In the MXML editor’s Design mode, drag a Panel container into the layout from the
Layout category of the Components view, and then set the following Panel properties in
the Properties view:
Title: Rate Customer Service
Width: 350
Height: 200
X: 10
Y: 10
4. Add the following controls to the Panel container by dragging them from the Controls
category of the Components view (Window > Components):
ComboBox
Button
5. Select the ComboBox control in the layout and set the following ComboBox properties in
the Flex Properties view:
ID: cbxRating
X: 20
Y: 20
The ComboBox control doesnt list any items. You populate the list later.
6. Select the Button control and set the following Button properties in the Flex Properties
view:
Label: Send
X: 140
Y: 20
NOTE
For the purpose of these lessons, several application files are used in a single Flex
Builder project. However, it’s good practice to have only one MXML application file
per project.
Vedere la pagina 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 255 256

Commenti su questo manuale

Nessun commento