#include <w32dlib/combobox.h>
Inheritance diagram for W32DLib::ComboBox:

Public Member Functions | |
| ComboBox (Dialog *parent, int resource_id, DataX *datax) | |
| Constructor. | |
| virtual | ~ComboBox () |
| Destructor. | |
| void | OnSelection (Window *owner, W32DLibCallback callback) |
| Sets a callback for when selection changes. | |
| void | OnDoubleClick (Window *owner, W32DLibCallback callback) |
| Sets a callback for when a list entry is double clicked. | |
| void | OnTextChanged (Window *owner, W32DLibCallback callback) |
| Sets a callback for when the text is altered. | |
| void | Reset () |
| Resets the items in a combo box. | |
| void | MaxLen (int count) |
| Sets the maximum length the user can enter. | |
| int | Count () |
| The number of strings in the combo box. | |
| int | AddString (const char *text) |
| Adds a string to the combo box. | |
| int | AddString (const std::string &text) |
| Adds a string to the combo box. | |
| int | AddString (const char *text, int index) |
| Adds a string to the combo box. | |
| int | AddString (const std::string &text, int index) |
| Adds a string to the combo box. | |
| int | RemoveString (int index) |
| Removes a string from the combo box. | |
| std::string | GetString (int index) |
| Gets a string from the combo box. | |
| int | TopRowIndex () |
| Gets the index of the item at the top of the list. | |
| void | TopRowIndex (int index) |
| Sets the index of the item at the top of the list. | |
| int | SelectedIndex () |
| Gets the index of the current selection. | |
| void | SelectedIndex (int index) |
| Sets the index of the current selection. | |
| virtual void | DoDataExchange (bool set) |
| Performs data exchange. | |
|
||||||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
Adds a string to the combo box.
|
|
||||||||||||
|
Adds a string to the combo box.
|
|
|
Adds a string to the combo box.
|
|
|
Adds a string to the combo box.
|
|
|
The number of strings in the combo box.
|
|
|
Performs data exchange. Support types: eString -- see Control::DoDataExchange() eInt -- same as SelectedIndex()
Reimplemented from W32DLib::Control. |
|
|
Gets a string from the combo box.
|
|
|
Sets the maximum length the user can enter.
|
|
||||||||||||
|
Sets a callback for when a list entry is double clicked. Note this only works of the list has a CBS_SIMPLE style.
|
|
||||||||||||
|
Sets a callback for when selection changes.
|
|
||||||||||||
|
Sets a callback for when the text is altered. Note this will not work if the list has a CBS_DROPDOWNLIST style.
|
|
|
Removes a string from the combo box.
|
|
|
Resets the items in a combo box.
|
|
|
Sets the index of the current selection.
|
|
|
Gets the index of the current selection.
|
|
|
Sets the index of the item at the top of the list.
|
|
|
Gets the index of the item at the top of the list.
|
1.4.1