15.1 Overview

Combobox class derives from Area class and creates a widget which is a combination of a list and a text widget. The user may either choose an entry from a predefined list of entries or he may enter individual data into the text widget.

When creating a combobox object, you can use the <item> tag to fill it with entries. Here is an example:

 
<combobox>
   <item>The</item>
   <item>quick</item>
   <item>brown</item>
   <item>fox</item>
   <item>jumps</item>
   <item>over</item>
   <item>the</item>
   <item>lazy</item>
   <item>dog</item>
</combobox>

You can also create an empty combobox and fill it with entries later by using the Combobox.Insert method. Here is how to create an empty combobox:

 
<combobox/>


Show TOC