class MASKING_DLL_DECLSPEC ComboBox

The ComboBox widget.

Inheritance:

ComboBox - CompoundWidget - Dialog - Widget - Rect


Public Fields

[more]ComboEditBox editBox
The underlaying edit box widget
[more]ComboButton button
The underlaying button with the little arrow for showing the list
[more]ListBox list
The underlaying listbox object

Public Methods

[more]void HandleEvent(Widget& obj, int msg, int arg1=0, int arg2=0)
Handles events such as button clicks and list box clicks
[more]void Setup(int x, int y, int w, int h, int key, int flags, int i)
Shortcut for Widget::Setup() and listSelect(i)

Protected Methods

[more]void MsgInitSkin()
Initilizes the combo box with the default bitmaps, fonts and font colours as defined by the skin
[more]void UpdateSize()
Resizes and repositions all the child widgets when the combobox itself is resized
[more]void HideList()
Helper function for hiding the list in the combobox
[more]void ShowList()
Helper function for showing the list in the combobox


Documentation

The ComboBox widget. A ComboBox is a compound widget made out of an edit box, a button and a listbox. By default the listbox is hidden but if the button is pressed the listbox is shown. When a listbox item is double clicked the combobox sends a MSG_ACTIVATE message to the parent dialog with the index of the selected item as the first argument.
oComboEditBox editBox
The underlaying edit box widget

oComboButton button
The underlaying button with the little arrow for showing the list

oListBox list
The underlaying listbox object

ovoid MsgInitSkin()
Initilizes the combo box with the default bitmaps, fonts and font colours as defined by the skin

ovoid UpdateSize()
Resizes and repositions all the child widgets when the combobox itself is resized

ovoid HideList()
Helper function for hiding the list in the combobox

ovoid ShowList()
Helper function for showing the list in the combobox

ovoid HandleEvent(Widget& obj, int msg, int arg1=0, int arg2=0)
Handles events such as button clicks and list box clicks

ovoid Setup(int x, int y, int w, int h, int key, int flags, int i)
Shortcut for Widget::Setup() and listSelect(i)


This class has no child classes.

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++