Link against: avkon.lib
#include <aknchoicelist.h>
Inherits CAknControl.
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. |
|
|
|
Destructor. |
|
Add a text as a new item in the end of the choice list array.
|
|
From CCoeControl. Returns the control inside control with given index.
|
|
From CCoeControl. Returns number of controls inside the control.
|
|
From CCoeControl. Draws control to given area
|
|
Return choice list specific flags.
|
|
From MCoeControlObserver. Handles an event from an observed control. If this component has observer, then a EEventStateChanged is sent to it when a item is selected from choice list
|
|
From CCoeControl. Handles pointer events
|
|
From CCoeControl. Handles a change to the control's resources.
|
|
Hide choice list popup. Current selection is not selected. |
|
Insert new item to a certain index. The rest of the array will be reindexed. If given index is beyond current array then it's just appended to the end of the array.
|
|
From CCoeControl. Returns the Minimum size needed by the control.
|
|
Two-phased constructor. If the default flag is used then choice list shows an opening arrow and selected item on its left side. If flag EAknChoiceListUsesButton is and user has defined own button then choice list open with items in the given array. Selected item is not show when choice list is closed.
|
|
Two-phased constructor. If the default flag is used then choice list shows an opening arrow and selected item on its left side. If flag EAknChoiceListUsesButton is and user has defined own button then choice list open with items in the given array. Selected item is not show when choice list is closed.
|
|
From CCoeControl. Handles key events.
|
|
from CCoeControl Responds to changes in the position of a control. |
|
Removes an item from the choice list array with the given index.
|
|
Returns selected index from the choice list array.
|
|
Set the button that launches choice list opening.
|
|
Sets flags for choice list. Choice lists position can be changed in runtime with right flags.
|
|
Set certain array as the contents of the choice list. It's recommended to use CDesCArrayFlat. The ownership of the array is transferred to choice list.
|
|
Set certain array as the contents of the choice list. It's recommended to use CDesCArrayFlat.
|
|
Set certain index of the choice list array to selected.
|
|
Set the postion of tooltip.
|
|
Set text for tooltip.
|
|
Set the delays for tooltip.
|
|
Open choice list. Choicelist can be opened with this function. If the choicelist is already open nothing will happen.
|
|
From CCoeControl. Sets the size and position of the component. |