CAMenuSelect Class Reference

A menu item for selecting a value out of a given value list (strings). More...

#include <camenuselect.h>

Inheritance diagram for CAMenuSelect:

CAMenuLabel CAMenuItem List of all members.

Public Member Functions

 CAMenuSelect (CAMenu *menu, int pos, const char *label, const char *valueList, int *result)
 Constructor for selections of more than two items.
 CAMenuSelect (CAMenu *menu, int pos, const char *label, const char *valueList, bool *result)
 Constructor for selections of two items.
 ~CAMenuSelect ()
 Destructor.
virtual int rtti ()
 Returns rtti of this menu item.
virtual void display (bool highlight)
 Displays the item.
virtual void handleKey (const CL_Key &key)
 Handles keys on this label.
int getSelectedItem ()
void setSelectedItem (int index)

Detailed Description

A menu item for selecting a value out of a given value list (strings).

That's kind of a combobox, isn't it?

Author:
Andrew Mustun


Constructor & Destructor Documentation

CAMenuSelect::CAMenuSelect ( CAMenu menu,
int  pos,
const char *  label,
const char *  valueList,
int *  result 
)

Constructor for selections of more than two items.

Parameters:
menu Pointer to menu
pos Position of the item in the menu (0=top position)
label Menu item label.
valueList List of possible values. Format: "value1~value2~value3~..."
result Pointer to store the index of the selected item (0=first item of list)

CAMenuSelect::CAMenuSelect ( CAMenu menu,
int  pos,
const char *  label,
const char *  valueList,
bool *  result 
)

Constructor for selections of two items.

Parameters:
menu Pointer to menu
pos Position of the item in the menu (0=top position)
label Menu item label.
valueList List of possible values. Format: "value1~value2"
result Pointer to store the index of the selected item (0=first item of list)


Member Function Documentation

virtual int CAMenuSelect::rtti (  )  [inline, virtual]

Returns rtti of this menu item.

CA_MI_MENUSELECT for menu selects.

Reimplemented from CAMenuLabel.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:29 2006 by  doxygen 1.5.0