uifw/AvKon/src/AknListBoxSettingPage.cpp
branchRCL_3
changeset 7 08e69e956a8c
parent 0 2f259fa3e83a
child 18 fcdfafb36fe7
equal deleted inserted replaced
6:9f56a4e1b8ab 7:08e69e956a8c
   166 TBool CAknListBoxSettingPage::FocusToFirstItem()
   166 TBool CAknListBoxSettingPage::FocusToFirstItem()
   167 	{
   167 	{
   168 	return EFalse; 
   168 	return EFalse; 
   169 	}
   169 	}
   170 
   170 
       
   171 //---------------------------------------------------------------------------------------
       
   172 // CAknListBoxSettingPage::EnableSingleClickHighlightL()
       
   173 // Enables highlight to listbox control in single click mode if needed
       
   174 //---------------------------------------------------------------------------------------
       
   175 //
       
   176 TBool CAknListBoxSettingPage::EnableSingleClickHighlight( TInt aCommandId )
       
   177     {
       
   178     TBool highLightEnabled = EFalse;
       
   179    
       
   180     if ( aCommandId == EAknSoftkeySelect &&
       
   181             ListBoxControl()->ItemDrawer()->Flags() 
       
   182                 & CListItemDrawer::ESingleClickDisabledHighlight )
       
   183         {   
       
   184         TKeyEvent event;
       
   185         event.iCode = EKeyOK;      
       
   186         // restore highlight with simulated key event
       
   187         TKeyResponse response = 
       
   188             ListBoxControl()->OfferKeyEventL( event, EEventKey );        
       
   189         
       
   190         if ( response == EKeyWasConsumed )
       
   191             {
       
   192             highLightEnabled = ETrue;
       
   193             }
       
   194         }    
       
   195     return highLightEnabled;
       
   196     }
       
   197 
   171 void CAknListBoxSettingPage::CreateIconAndAddToArrayL(
   198 void CAknListBoxSettingPage::CreateIconAndAddToArrayL(
   172     CArrayPtr<CGulIcon>*& aIconArray,
   199     CArrayPtr<CGulIcon>*& aIconArray,
   173     const TAknsItemID& aId,
   200     const TAknsItemID& aId,
   174     const TInt aColorIndex,
   201     const TInt aColorIndex,
   175     const TDesC& aBmpFile,
   202     const TDesC& aBmpFile,