ActionScript 2.0 Components Language Reference |
|
|
|
| ComboBox component > ComboBox.dropdownWidth | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
comboBoxInstance.dropdownWidth
Property; the width limit of the drop-down list, in pixels. The default value is the width of the ComboBox component (the TextInput instance plus the SimpleButton instance).
With a ComboBox component instance my_cb on the Stage, the following ActionScript sets the drop-down list width to accommodate the labels:
// Set the dropdown width to accommodate the label sizes.
my_cb.dropdownWidth = 200;
// Add Items to List.
my_cb.addItem("ComboBox");
my_cb.addItem({data:2, label:"This is a long label"});
my_cb.addItem({data:3, label:"This has an even longer label"});
|
|
|
|