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 |
|
187 // restore highlight with simulated key event |
|
188 TRAP_IGNORE |
|
189 ( |
|
190 TKeyResponse response = ListBoxControl()->OfferKeyEventL( event, EEventKey ); |
|
191 if ( response == EKeyWasConsumed ) |
|
192 { |
|
193 highLightEnabled = ETrue; |
|
194 } |
|
195 ); |
|
196 } |
|
197 return highLightEnabled; |
|
198 } |
|
199 |
|
200 void CAknListBoxSettingPage::CreateIconAndAddToArrayL( |
171 void CAknListBoxSettingPage::CreateIconAndAddToArrayL( |
201 CArrayPtr<CGulIcon>*& aIconArray, |
172 CArrayPtr<CGulIcon>*& aIconArray, |
202 const TAknsItemID& aId, |
173 const TAknsItemID& aId, |
203 const TInt aColorIndex, |
174 const TInt aColorIndex, |
204 const TDesC& aBmpFile, |
175 const TDesC& aBmpFile, |