By default choice list shows currently selected item and a arrow for opening the the choice list. Choice list can be used also without showing current selection.
|
Public Types |
enum | TAknChoiceListFlags {
EAknChoiceListWithCurrentSelection = 0x01,
EAknChoiceListWithoutCurrentSelection = 0x02,
EAknChoiceListPositionLeft = 0x04,
EAknChoiceListPositionRight = 0x08,
EAknChoiceListPositionBottom = 0x10
} |
enum | TTooltipPosition { EPositionTop = 1,
EPositionBottom,
EPositionLeft,
EPositionRight
} |
Public Member Functions |
| ~CAknChoiceList () |
| Destructor.
|
IMPORT_C TInt | ShowChoiceListL () |
| Open choice list.
|
IMPORT_C void | SetSelectedIndex (const TInt aIndex) |
| Set certain index of the choice list array to selected.
|
IMPORT_C TInt | SelectedIndex () const |
| Returns selected index from the choice list array.
|
IMPORT_C void | SetItems (CDesCArray *aArray) |
| Set certain array as the contents of the choice list.
|
IMPORT_C void | SetItemsL (TInt aResourceId) |
| Set certain array as the contents of the choice list.
|
IMPORT_C TInt | AddItemL (const TDesC *aDesC) |
| Add a text as a new item in the end of the choice list array.
|
IMPORT_C void | RemoveItem (const TInt aIndex) |
| Removes an item from the choice list array with the given index.
|
IMPORT_C void | SetFlags (const TInt aFlags) |
| Sets flags for choice list.
|
IMPORT_C TInt | Flags () const |
| Return choice list specific flags.
|
IMPORT_C void | SetButtonL (CAknButton *aButton) |
| Set the button that launches choice list opening.
|
IMPORT_C void | HideChoiceList () |
| Hide choice list popup.
|
IMPORT_C void | SetTooltipTextL (const TDesC &aText) |
| Set text for tooltip.
|
IMPORT_C void | SetTooltipTimeouts (const TInt aBeforeTimeout, const TInt aInViewTimeout) |
| Set the delays for tooltip.
|
IMPORT_C void | SetTooltipPosition (const TTooltipPosition aPosition) |
| Set the postion of tooltip.
|
IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
| From CCoeControl.
|
IMPORT_C TInt | CountComponentControls () const |
| From CCoeControl.
|
IMPORT_C TSize | MinimumSize () |
| From CCoeControl.
|
IMPORT_C void | HandleResourceChange (TInt aType) |
| From CCoeControl.
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
| From CCoeControl.
|
IMPORT_C void | Draw (const TRect &aRect) const |
| From CCoeControl.
|
virtual IMPORT_C void | PositionChanged () |
| from CCoeControl
|
IMPORT_C void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
| From MCoeControlObserver.
|
IMPORT_C TInt | InsertItemL (const TInt aIndex, const TDesC &aText) |
| Insert new item to a certain index.
|
Static Public Member Functions |
static IMPORT_C CAknChoiceList * | NewL (CCoeControl *aParent, CDesCArray *aItemArray, TInt aFlags=EAknChoiceListWithCurrentSelection, CAknButton *aButton=NULL) |
| Two-phased constructor.
|
static IMPORT_C CAknChoiceList * | NewLC (CCoeControl *aParent, CDesCArray *aItemArray, TInt aFlags=EAknChoiceListWithCurrentSelection, CAknButton *aButton=NULL) |
| Two-phased constructor.
|
Protected Member Functions |
void | SizeChanged () |
| From CCoeControl.
|
void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
| From CCoeControl.
|