uifw/AvKon/src/AknPopupField.cpp
branchRCL_3
changeset 50 a1caeb42b3a3
parent 16 71dd06cfe933
child 51 fcdfafb36fe7
equal deleted inserted replaced
38:c52421ed5f07 50:a1caeb42b3a3
   217     }
   217     }
   218 
   218 
   219 void CAknPopupField::SetScrollBarSelectionL()
   219 void CAknPopupField::SetScrollBarSelectionL()
   220     {
   220     {
   221     TInt selection = iValue->CurrentValueIndex();
   221     TInt selection = iValue->CurrentValueIndex();
       
   222     //iOldItemIndex should be saved as original value.
       
   223     if ( iExtension )
       
   224         {
       
   225         iExtension->iOldItemIndex = selection;
       
   226         }
   222     if (IsInvalid()) selection = 0;
   227     if (IsInvalid()) selection = 0;
   223     __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
   228     __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
   224     iSelectionList->SetCurrentItemIndex(selection);
   229     iSelectionList->SetCurrentItemIndex(selection);
   225     iSelectionList->View()->SelectItemL(selection);
   230     iSelectionList->View()->SelectItemL(selection);
   226 
       
   227     if ( iExtension )
       
   228         {
       
   229         iExtension->iOldItemIndex = iSelectionList->CurrentItemIndex();
       
   230         }
       
   231     }
   231     }
   232 
   232 
   233 
   233 
   234 void CAknPopupField::InitialiseRadioButtonBitmapsL()
   234 void CAknPopupField::InitialiseRadioButtonBitmapsL()
   235     {
   235     {