equal
deleted
inserted
replaced
876 return EDefaultFocusBackground; |
876 return EDefaultFocusBackground; |
877 #endif // RD_JAVA_S60_RELEASE_9_2 |
877 #endif // RD_JAVA_S60_RELEASE_9_2 |
878 } |
878 } |
879 |
879 |
880 // --------------------------------------------------------------------------- |
880 // --------------------------------------------------------------------------- |
881 // CSwtListBox::PrepareForTraverse |
|
882 // From MSwtControl |
|
883 // --------------------------------------------------------------------------- |
|
884 // |
|
885 void CSwtListBox::PrepareForTraverse() |
|
886 { |
|
887 ASSERT(iList); |
|
888 ASSERT(iList->View()); |
|
889 |
|
890 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
891 // AvKon enables highlight only when key event is recieved. |
|
892 // When traversing, no key event is sent to AvKon, so we |
|
893 // have to enable highlight by ourselves. |
|
894 CListItemDrawer* itemDrawer = iList->View()->ItemDrawer(); |
|
895 if (itemDrawer) |
|
896 { |
|
897 itemDrawer->ClearFlags(CListItemDrawer::ESingleClickDisabledHighlight); |
|
898 } |
|
899 #endif //RD_JAVA_S60_RELEASE_9_2 |
|
900 } |
|
901 |
|
902 // --------------------------------------------------------------------------- |
|
903 // CSwtListBox::Scrollable |
881 // CSwtListBox::Scrollable |
904 // From MSwtListBox |
882 // From MSwtListBox |
905 // --------------------------------------------------------------------------- |
883 // --------------------------------------------------------------------------- |
906 // |
884 // |
907 MSwtScrollable* CSwtListBox::Scrollable() |
885 MSwtScrollable* CSwtListBox::Scrollable() |
969 |
947 |
970 // Selected item array |
948 // Selected item array |
971 iPrevSelItems = new(ELeave) CArrayFixFlat<TInt>(KInitSelArrLength); |
949 iPrevSelItems = new(ELeave) CArrayFixFlat<TInt>(KInitSelArrLength); |
972 |
950 |
973 // Get item cells |
951 // Get item cells |
974 CSwtListBoxLists::CellsL(iProps.iListType, iCells); |
952 CSwtListBoxLists::Cells(iProps.iListType, iCells); |
975 |
953 |
976 // This is needed for the case where the theme has animated highlights. |
954 // This is needed for the case where the theme has animated highlights. |
977 iList->SetFocus(ETrue, ENoDrawNow); |
955 iList->SetFocus(ETrue, ENoDrawNow); |
978 |
956 |
979 #ifdef RD_JAVA_S60_RELEASE_9_2 |
957 #ifdef RD_JAVA_S60_RELEASE_9_2 |