#include <UIListBoxes.h>
Inheritance diagram for CUIStringListBox:

Public Types | |
| enum | { KMaxStrings = 50 } |
Public Member Functions | |
| CUIStringListBox (const CUIRect &aRectangle, const char *aTitle=NULL, MUIWidgetEvents *aObserver=NULL) | |
| Constructs the CUIStringListBox object. | |
| virtual unsigned int | GetItemsNumber () |
| Returns the number of items in the ListBox. | |
| virtual unsigned int | GetItemHeight (unsigned int aItemIndex) |
| Returns the height of item with given index. | |
| virtual void | DrawItem (unsigned int aItemIndex, CUIRect &aRect) |
| Draws specified item in a given rectangle. | |
| bool | AddString (const char *aString) |
| Adds a new string the the CUIStringListBox. Returns true in case of success. | |
| const char * | GetString (unsigned int aIndex) |
| Retrieves the string with given index. | |
| void | Clear () |
| Deletes all strings from the object. | |
|
|
Adds a new string the the CUIStringListBox. Returns true in case of success. After the addition of a new string the CUIStringListBox will not be automatically redrawn |
|
|
Deletes all strings from the object. After the deletion of strings the CUIStringListBox will not be automatically redrawn Reimplemented from CUIWidgetGroup. |
|
|
Returns the height of item with given index. If KConstItemHeight is among the iOptions only GetItemHeight(0) is called by the CUIListBox. GetItemHeight( 0 ) is also called from the CalculateParameters() so the derived class must be ready to return a correct value even if the ListBox contains no items yet. Implements CUIListBox. |
1.3.5