#include <mgui/combobox.h>
Inheritance diagram for MGUI::FORM_COMBOBOX:

Public Member Functions | |
| int | AddItem (ID id, const char *string, bool resize=true) |
| int | AddItem (ID id, const MIUNICODE *string, bool resize=true) |
| int | AddItem (ID id, const MISTRING &string, bool resize=true) |
| void | AddItems (const MGUI::LISTITEMDEF *items, bool resize=true) |
| void | AddUnitItems (int UnitType, int DftUnitID=0) |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, const MGUI::LISTITEMDEF *items=0, int listheight=7, int width=0, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, MGUI::CTRL_COMBOBOX::STYLE style=MGUI::CTRL_COMBOBOX::STYLE_Default, MGUI::CTRL_LABEL::STYLE labelstyle=MGUI::CTRL_LABEL::STYLE_LeftNoWrap) |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const char *label, const MGUI::LISTITEMDEF *items=0, int listheight=7, int width=0, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, MGUI::CTRL_COMBOBOX::STYLE style=MGUI::CTRL_COMBOBOX::STYLE_Default, MGUI::CTRL_LABEL::STYLE labelstyle=MGUI::CTRL_LABEL::STYLE_LeftNoWrap) |
| void | DeleteAllItems () |
| void | DeleteItem (int index) |
| void | DeleteItemID (ID id) |
| FORM_COMBOBOX () | |
| const CTRL_COMBOBOX & | GetComboBox () const |
| CTRL_COMBOBOX & | GetComboBox () |
| int | GetCount () const |
| int | GetIndexFromID (ID id) const |
| ID | GetItemID (int index) const |
| MISTRING | GetItemString (int index) const |
| MGUI::CTRL_LABEL & | GetLabel () |
| int | GetSelectedItem () const |
| ID | GetSelectedItemID () const |
| int | InsertItem (int index, ID id, const MISTRING &string) |
| bool | IsItemSelected (int index) const |
| virtual void | SetEnabled (bool enabled=true) |
| void | SetSelectedItem (int index) |
| void | SetSelectedItemID (ID id) |
| void | SetSorted (bool sorted=true) |
| virtual | ~FORM_COMBOBOX () |
Protected Member Functions | |
| virtual void | OnSelection () |
Definition at line 337 of file combobox.h.
|
|
Default constructor.
|
|
|
Destructor.
|
|
||||||||||||||||
|
Add single item with string from resource lookup. If control was created with STYLE_Sorted then the list will be resorted after the item is added, otherwise the item will be added to the end of the list.
Definition at line 372 of file combobox.h. |
|
||||||||||||||||
|
Add single item with MIUNICODE* string. If control was created with STYLE_Sorted then the combo will be resorted after the item is added, otherwise the item will be added to the end of the list.
Definition at line 362 of file combobox.h. |
|
||||||||||||||||
|
Add single item with MISTRING or TEXTID. If control was created with STYLE_Sorted then the combo will be resorted after the item is added, otherwise the item will be added to the end of the list.
Definition at line 352 of file combobox.h. |
|
||||||||||||
|
Add multiple items.
Definition at line 379 of file combobox.h. |
|
||||||||||||
|
Add items to combobox for unit selection. Item IDs will be equal to UnitIDs.
Definition at line 386 of file combobox.h. |
|
||||||||||||||||||||||||||||||||||||
|
Create form with Unicode label.
|
|
||||||||||||||||||||||||||||||||||||
|
Create form with label from resource lookup.
|
|
|
Delete all items from control.
Definition at line 416 of file combobox.h. |
|
|
Delete item from list given index.
Definition at line 420 of file combobox.h. |
|
|
Delete item from list given ID.
Definition at line 425 of file combobox.h. |
|
|
Get reference to CTRL_COMBOBOX in form.
Definition at line 434 of file combobox.h. |
|
|
Get reference to CTRL_COMBOBOX in form.
Definition at line 430 of file combobox.h. |
|
|
Retrieve number of items in the list.
Definition at line 438 of file combobox.h. |
|
|
Get index to item from ID.
Definition at line 443 of file combobox.h. |
|
|
Get ID associated with list item.
Definition at line 449 of file combobox.h. |
|
|
Get text string associated with list item.
Definition at line 455 of file combobox.h. |
|
|
Get label control if any. Usually the label control is only retrieved for alignment purposes. Definition at line 461 of file combobox.h. |
|
|
Get currently selected item.
Definition at line 466 of file combobox.h. |
|
|
Get ID of currently selected item.
Definition at line 471 of file combobox.h. |
|
||||||||||||||||
|
Insert item at specified position. Unlike the AddItem method this does not cause the list to be resorted.
Definition at line 477 of file combobox.h. |
|
|
Determine if specified item is selected.
Definition at line 484 of file combobox.h. |
|
|
Called when user makes selection. Derived class must call corresponding base class method BEFORE performing its own processing. |
|
|
Set whether control is enabled.
Reimplemented from MGUI::FORM_COMPOSITE. |
|
|
Select item using zero-based index. If item is not visible the list will be scrolled to make it visible.
Definition at line 497 of file combobox.h. |
|
|
Select item using item ID. If item does not exist then no item will be selected. If item is not visible the list will be scrolled to make it visible.
Definition at line 504 of file combobox.h. |
|
|
Set whether items are to be sorted or not.
Definition at line 509 of file combobox.h. |
1.3.8-20040913