javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtlistboxlists.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 17 0fd27995241b
child 24 6c158198356e
equal deleted inserted replaced
18:9ac0a0a7da70 19:71c436fe3ce0
   503         // Other list types are not supported
   503         // Other list types are not supported
   504         break;
   504         break;
   505     }
   505     }
   506 }
   506 }
   507 
   507 
       
   508 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   509 // ---------------------------------------------------------------------------
       
   510 // CSwtListBoxLists::EnableFocusHighlight
       
   511 // ---------------------------------------------------------------------------
       
   512 //
       
   513 void CSwtListBoxLists::EnableFocusHighlight(CListItemDrawer* aItemDrawer,
       
   514         TBool aEnable)
       
   515 {
       
   516     if (aItemDrawer)
       
   517     {
       
   518         TInt disabledHighlight =
       
   519             aItemDrawer->Flags() & CListItemDrawer::EDisableHighlight;
       
   520 
       
   521         if (aEnable && disabledHighlight)
       
   522         {
       
   523             aItemDrawer->ClearFlags(CListItemDrawer::EDisableHighlight);
       
   524         }
       
   525         else if (!aEnable && !disabledHighlight)
       
   526         {
       
   527             aItemDrawer->SetFlags(CListItemDrawer::EDisableHighlight);
       
   528         }
       
   529     }
       
   530 }
       
   531 #endif //RD_JAVA_S60_RELEASE_9_2
       
   532 
   508 // The compiler does not automatically instantiate templates defined in other
   533 // The compiler does not automatically instantiate templates defined in other
   509 // files. Because of this, code written will often produce undefined symbol
   534 // files. Because of this, code written will often produce undefined symbol
   510 // errors when compiled with the compiler. You need to tell the compiler which
   535 // errors when compiled with the compiler. You need to tell the compiler which
   511 // template instances you want, by explicitly instantiating them in the file
   536 // template instances you want, by explicitly instantiating them in the file
   512 // where they are defined.
   537 // where they are defined.