diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-F2397B5A-0700-46D5-8E07-CBB9F769DA01.dita --- a/Symbian3/PDK/Source/GUID-F2397B5A-0700-46D5-8E07-CBB9F769DA01.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-F2397B5A-0700-46D5-8E07-CBB9F769DA01.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,46 +1,46 @@ - - - - - -Getting -user selection from the choice list -

Every time the choice list's status changes, e.g. when the user opens or -closed the list or selects an item from the list, the client application is -informed through the MCoeControlObserver interface.

-

Notifications are received by the HandleControlEventL callback -function in the class MCoeControlObserver. The event is EEventStateChanged.

-

After receiving the event, the client application can use the choice list's SelectedIndex method -to request if the selection has changed.

-void CMyAppContainer::HandleControlEventL( CCoeControl* aControl, - TCoeEvent aEventType ) - { - - if ( aControl == iChoiceList ) - { - switch ( aEventType ) - { - case EEventStateChanged: - { - TInt newSelection = iChoiceList->SelectedIndex(); - if ( iSelection != newSelection ) - { - // selected item changed - iSelection = newSelection; - } - } - break; - - default: - break; - } - } - } - + + + + + +Getting +user selection from the choice list +

Every time the choice list's status changes, e.g. when the user opens or +closed the list or selects an item from the list, the client application is +informed through the MCoeControlObserver interface.

+

Notifications are received by the HandleControlEventL callback +function in the class MCoeControlObserver. The event is EEventStateChanged.

+

After receiving the event, the client application can use the choice list's SelectedIndex method +to request if the selection has changed.

+void CMyAppContainer::HandleControlEventL( CCoeControl* aControl, + TCoeEvent aEventType ) + { + + if ( aControl == iChoiceList ) + { + switch ( aEventType ) + { + case EEventStateChanged: + { + TInt newSelection = iChoiceList->SelectedIndex(); + if ( iSelection != newSelection ) + { + // selected item changed + iSelection = newSelection; + } + } + break; + + default: + break; + } + } + } +
\ No newline at end of file