uifw/AvKon/src/AknPopupField.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 9 aabf2c525e0f
child 16 71dd06cfe933
equal deleted inserted replaced
10:9f56a4e1b8ab 15:08e69e956a8c
   206     }
   206     }
   207 
   207 
   208 
   208 
   209 void CAknPopupField::SetUpScrollBarL()
   209 void CAknPopupField::SetUpScrollBarL()
   210     {
   210     {
   211     if ( !iExtension || !iExtension->iSingleClickEnabled )
   211     __ASSERT_DEBUG( iCba, Panic( EAknPanicPopupFieldCBADoesntExist ) );
   212         {
       
   213         __ASSERT_DEBUG( iCba, Panic( EAknPanicPopupFieldCBADoesntExist ) );
       
   214         }
       
   215     __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
   212     __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist));
   216     iSelectionList->SetMopParent(this); // to get remote scb
   213     iSelectionList->SetMopParent(this); // to get remote scb
   217     iSelectionList->CreateScrollBarFrameL(ETrue, ETrue);
   214     iSelectionList->CreateScrollBarFrameL(ETrue, ETrue);
   218     iSelectionList->SetMopParent(NULL);
   215     iSelectionList->SetMopParent(NULL);
   219     iSelectionList->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff,CEikScrollBarFrame::EAuto);
   216     iSelectionList->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff,CEikScrollBarFrame::EAuto);
   830     return keyResponse;
   827     return keyResponse;
   831     }
   828     }
   832 
   829 
   833 void CAknPopupField::CreatePopoutL()
   830 void CAknPopupField::CreatePopoutL()
   834     {
   831     {
   835     if ( !iExtension || !iExtension->iSingleClickEnabled )
   832     CreateCbaL();
   836         {
       
   837         CreateCbaL();
       
   838         }
       
   839     ConstructSelectionListL();
   833     ConstructSelectionListL();
   840     ChangeMode(EAknPopupFieldSelectionListMode);
   834     ChangeMode(EAknPopupFieldSelectionListMode);
   841     SetUpScrollBarL();
   835     SetUpScrollBarL();
   842     // need to initialize the selection so that the list box is drawn in the correct place
   836     // need to initialize the selection so that the list box is drawn in the correct place
   843     SetScrollBarSelectionL();
   837     SetScrollBarSelectionL();