Inheritance diagram for Exponent::GUI::Controls::CComboBox:
Definition at line 41 of file CComboBox.hpp.
Exponent::GUI::Controls::CComboBox::CComboBox | ( | IControlRoot * | root, | |
const long | uniqueId, | |||
const CRect & | area, | |||
const CString & | text, | |||
CMenu * | menu, | |||
IActionListener * | listener | |||
) |
Construction
root | The root control that this control is being added to | |
uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
area | The area of this control relative to the root controls top left | |
text | The default text to display | |
menu | The menu to display on click | |
listener | The action listener |
virtual Exponent::GUI::Controls::CComboBox::~CComboBox | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CComboBox::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the control
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CTextLabel.
const CMenuItem* Exponent::GUI::Controls::CComboBox::getLastMenuItem | ( | ) | const [inline] |
Get the selected menu item
const | CMenuItem* The last menu item recieved, may be NULL |
Definition at line 144 of file CComboBox.hpp.
References m_selectedItem.
CMenu* Exponent::GUI::Controls::CComboBox::getMenu | ( | ) | [inline] |
Get the menu
CMenu* | The menu |
Definition at line 113 of file CComboBox.hpp.
References m_menu.
virtual CMenuItem* Exponent::GUI::Controls::CComboBox::getMenuItem | ( | const long | index | ) | [virtual] |
Get the menu item at an index
index | The index of the menu item required |
CMenuItem* | The item or null on error |
virtual CMenuWindow* Exponent::GUI::Controls::CComboBox::getMenuWindow | ( | ) | [inline, virtual] |
Get the menu window
CMenuWindow* | The menu window being used |
Definition at line 132 of file CComboBox.hpp.
References m_menuWindow.
virtual long Exponent::GUI::Controls::CComboBox::getSelectedIndex | ( | ) | const [inline, virtual] |
Get the selected index
long | The index the user has selected from the menu |
Definition at line 138 of file CComboBox.hpp.
References m_selectedIndex.
virtual void Exponent::GUI::Controls::CComboBox::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CComboBox::handleMenuClosing | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu closing
event | The event to handle |
virtual void Exponent::GUI::Controls::CComboBox::handleMenuOpening | ( | const CMenuEvent & | event | ) | [inline, virtual] |
Handle a menu opening
event | The event to handle |
Definition at line 87 of file CComboBox.hpp.
virtual void Exponent::GUI::Controls::CComboBox::handleMenuSelection | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu selection
event | The event to handle |
virtual void Exponent::GUI::Controls::CComboBox::setDownImage | ( | IImage * | downImage | ) | [virtual] |
Set the down image
downImage | The image to display when the menu is open |
virtual void Exponent::GUI::Controls::CComboBox::setFont | ( | CFont * | font | ) | [virtual] |
Set the text info
font | The font to display |
virtual void Exponent::GUI::Controls::CComboBox::setMenu | ( | CMenu * | menu | ) | [virtual] |
Set the menu
menu | The menu to display |
virtual void Exponent::GUI::Controls::CComboBox::setMenuColours | ( | const SMenuColours & | colours | ) | [virtual] |
Set the window colours
colours | The menu colours to use |
virtual void Exponent::GUI::Controls::CComboBox::setMenuWindowAttributes | ( | CWindowAttributes * | windowAttributes, | |
const bool | useIcons = true | |||
) | [virtual] |
Set menu window attributes
windowAttributes | The attributes for the menu window | |
useIcons | If true icons are displayed for menu items, if false they are not |
virtual void Exponent::GUI::Controls::CComboBox::setSelectedIndex | ( | const long | index | ) | [virtual] |
Set the selected index
index | The index of the text to display from themeu in the text area |
IImage* Exponent::GUI::Controls::CComboBox::m_downImage [protected] |
Image to use when down
Definition at line 187 of file CComboBox.hpp.
CMenu* Exponent::GUI::Controls::CComboBox::m_menu [protected] |
long Exponent::GUI::Controls::CComboBox::m_selectedIndex [protected] |
Selected index of the combo box
Definition at line 185 of file CComboBox.hpp.
Referenced by getSelectedIndex().
The currently selected menu item
Definition at line 188 of file CComboBox.hpp.
Referenced by getLastMenuItem().
bool Exponent::GUI::Controls::CComboBox::m_state [protected] |
Current state (true = down)
Definition at line 186 of file CComboBox.hpp.
bool Exponent::GUI::Controls::CComboBox::m_useIcons [protected] |
Should menu use icons
Definition at line 184 of file CComboBox.hpp.
CWindowAttributes* Exponent::GUI::Controls::CComboBox::m_windowAttributes [protected] |
Attributes of window
Definition at line 183 of file CComboBox.hpp.