#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 UNICODE *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 334 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 369 of file combobox.h. |
|
||||||||||||||||
|
Add single item with UNICODE* 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 359 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 349 of file combobox.h. |
|
||||||||||||
|
Add multiple items.
Definition at line 376 of file combobox.h. |
|
||||||||||||
|
Add items to combobox for unit selection. Item IDs will be equal to UnitIDs.
Definition at line 383 of file combobox.h. |
|
||||||||||||||||||||||||||||||||||||
|
Create form with Unicode label.
|
|
||||||||||||||||||||||||||||||||||||
|
Create form with label from resource lookup.
|
|
|
Delete all items from control.
Definition at line 413 of file combobox.h. |
|
|
Delete item from list given index.
Definition at line 417 of file combobox.h. |
|
|
Delete item from list given ID.
Definition at line 422 of file combobox.h. |
|
|
Get reference to CTRL_COMBOBOX in form.
Definition at line 431 of file combobox.h. |
|
|
Get reference to CTRL_COMBOBOX in form.
Definition at line 427 of file combobox.h. |
|
|
Retrieve number of items in the list.
Definition at line 435 of file combobox.h. |
|
|
Get index to item from ID.
Definition at line 440 of file combobox.h. |
|
|
Get ID associated with list item.
Definition at line 446 of file combobox.h. |
|
|
Get text string associated with list item.
Definition at line 452 of file combobox.h. |
|
|
Get label control if any. Usually the label control is only retrieved for alignment purposes. Definition at line 458 of file combobox.h. |
|
|
Get currently selected item.
Definition at line 463 of file combobox.h. |
|
|
Get ID of currently selected item.
Definition at line 468 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 474 of file combobox.h. |
|
|
Determine if specified item is selected.
Definition at line 481 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 494 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 501 of file combobox.h. |
|
|
Set whether items are to be sorted or not.
Definition at line 506 of file combobox.h. |
1.3.8-20040913