Choice class derives from Area class and creates widgets that allow the user to select an entry from a predefined list of items. Only the selected item is visible until the user pulls down the menu of choices.
When you declare a choice widget, you can use the <item>
tag to fill the choice widget with items. Here is an example XML excerpt for
creating a choice widget with three entries:
<choice id="printer"> <item>HP Deskjet</item> <item>NEC P6</item> <item>Okimate 20</item> </choice> |
Alternatively, you can also create an empty choice widget and fill it with entries later by using the Choice.Insert method. Here is how to create an empty choice widget:
<choice/> |