uifw/AvKon/src/AknCheckBoxSettingPage.cpp
branchRCL_3
changeset 23 3d340a0166ff
parent 15 08e69e956a8c
child 25 941195f2d488
equal deleted inserted replaced
18:0aa5fbdfbc30 23:3d340a0166ff
   144     BaseConstructL();
   144     BaseConstructL();
   145     iExtension = new(ELeave) CAknCheckBoxSettingPageExtension;
   145     iExtension = new(ELeave) CAknCheckBoxSettingPageExtension;
   146 
   146 
   147     CreateCheckBoxBitmapsL();
   147     CreateCheckBoxBitmapsL();
   148 
   148 
       
   149     // Only a reference to the CBase object; not owned
       
   150     CAknSetStyleListBox* listBox = ListBoxControl();
       
   151 
       
   152 	//
       
   153 	// SelectItemL make the view item drawn by default, SetDisableRedraw can remove flick
       
   154 	//
       
   155 	TBool bRedrawDisabled = listBox->View()->RedrawDisabled();
       
   156 	listBox->View()->SetDisableRedraw( ETrue );
   149     GenerateInternalArrayAndGiveToListBoxL();
   157     GenerateInternalArrayAndGiveToListBoxL();
       
   158 	listBox->View()->SetDisableRedraw( bRedrawDisabled );
   150 
   159 
   151     // This updates the CBA
   160     // This updates the CBA
   152     CheckAndSetDataValidity();
   161     CheckAndSetDataValidity();
   153     UpdateCbaL();
   162     UpdateCbaL();
   154 
       
   155     // Only a reference to the CBase object; not owned
       
   156     CAknSetStyleListBox* listBox = ListBoxControl();
       
   157 
   163 
   158     listBox->SetListBoxObserver(this);
   164     listBox->SetListBoxObserver(this);
   159 
   165 
   160     // Set the scroller indication to appear when needed
   166     // Set the scroller indication to appear when needed
   161     listBox->CreateScrollBarFrameL(ETrue, ETrue);
   167     listBox->CreateScrollBarFrameL(ETrue, ETrue);