MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guia do Utilizador Página 136

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 256
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 255 256

Comentários a estes Manuais

Sem comentários