javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtlistbase.cpp
branchRCL_3
changeset 60 6c158198356e
parent 34 71c436fe3ce0
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
  1423     CSwtListBoxLists::EnableFocusHighlight(iList->View()->ItemDrawer(),
  1423     CSwtListBoxLists::EnableFocusHighlight(iList->View()->ItemDrawer(),
  1424                                            aEnable);
  1424                                            aEnable);
  1425 }
  1425 }
  1426 #endif //RD_JAVA_S60_RELEASE_9_2
  1426 #endif //RD_JAVA_S60_RELEASE_9_2
  1427 
  1427 
       
  1428 TInt CSwtListBase::FocusBackgroundPolicy() const
       
  1429 {
       
  1430 #ifdef RD_JAVA_S60_RELEASE_9_2
       
  1431     return ENoFocusBackgroundInCaptionedControl;
       
  1432 #else
       
  1433     return EDefaultFocusBackground;
       
  1434 #endif // RD_JAVA_S60_RELEASE_9_2
       
  1435 }
       
  1436 
       
  1437 // ---------------------------------------------------------------------------
       
  1438 // CSwtListBase::PrepareForTraverse
       
  1439 // From MSwtControl
       
  1440 // ---------------------------------------------------------------------------
       
  1441 //
       
  1442 void CSwtListBase::PrepareForTraverse()
       
  1443 {
       
  1444     ASSERT(iList);
       
  1445     ASSERT(iList->View());
       
  1446 
       
  1447 #ifdef RD_JAVA_S60_RELEASE_9_2
       
  1448     // AvKon enables highlight only when key event is recieved.
       
  1449     // When traversing, no key event is sent to AvKon, so we
       
  1450     // have to enable highlight by ourselves.
       
  1451     CListItemDrawer* itemDrawer = iList->View()->ItemDrawer();
       
  1452     if (itemDrawer)
       
  1453     {
       
  1454         itemDrawer->ClearFlags(CListItemDrawer::ESingleClickDisabledHighlight);
       
  1455     }
       
  1456 #endif //RD_JAVA_S60_RELEASE_9_2
       
  1457 }
       
  1458 
  1428 // ---------------------------------------------------------------------------
  1459 // ---------------------------------------------------------------------------
  1429 // CSwtListBase::SbFrame
  1460 // CSwtListBase::SbFrame
  1430 // From ASwtScrollableBase
  1461 // From ASwtScrollableBase
  1431 // ---------------------------------------------------------------------------
  1462 // ---------------------------------------------------------------------------
  1432 //
  1463 //