uifw/AvKon/src/akngrid.cpp
branchRCL_3
changeset 17 a1caeb42b3a3
parent 9 0aa5fbdfbc30
child 18 fcdfafb36fe7
equal deleted inserted replaced
15:c52421ed5f07 17:a1caeb42b3a3
  1344     }
  1344     }
  1345 
  1345 
  1346 EXPORT_C void CAknGrid::HandleResourceChange(TInt aType)
  1346 EXPORT_C void CAknGrid::HandleResourceChange(TInt aType)
  1347     {
  1347     {
  1348     _AKNTRACE_FUNC_ENTER;
  1348     _AKNTRACE_FUNC_ENTER;
  1349     // Need to do this to set up the scroll bar model
  1349     if ( aType != KEikMessageWindowsFadeChange && 
  1350     TRAP_IGNORE( UpdateScrollBarsL() );
  1350     	 aType != KEikMessageUnfadeWindows && 
       
  1351     	 aType != KEikMessageFadeAllWindows && 
       
  1352     	 aType != KEikMessageColorSchemeChange && 
       
  1353     	 aType != KAknsMessageSkinChange )
       
  1354     	{
       
  1355         // Need to do this to set up the scroll bar model
       
  1356         TRAP_IGNORE( UpdateScrollBarsL() );
       
  1357     	}
       
  1358     
  1351     
  1359     
  1352     if (aType==KEikDynamicLayoutVariantSwitch)
  1360     if (aType==KEikDynamicLayoutVariantSwitch)
  1353         {
  1361         {
  1354         CAknGridView* gridView = GridView();
  1362         CAknGridView* gridView = GridView();
  1355         
  1363         
  1399     CEikListBox::HandleResourceChange(aType);
  1407     CEikListBox::HandleResourceChange(aType);
  1400     
  1408     
  1401     TRAP_IGNORE( ItemDrawer()->FormattedCellData()->SetupSkinContextL());
  1409     TRAP_IGNORE( ItemDrawer()->FormattedCellData()->SetupSkinContextL());
  1402     // Data extension has animations which will change when skin changes.
  1410     // Data extension has animations which will change when skin changes.
  1403     ItemDrawer()->FormattedCellData()->HandleResourceChange( aType );
  1411     ItemDrawer()->FormattedCellData()->HandleResourceChange( aType );
  1404 
  1412     
  1405     // Need to do this to set up the scroll bar model
  1413     if ( aType != KEikMessageWindowsFadeChange && 
  1406     TRAP_IGNORE( UpdateScrollBarsL() );
  1414     	 aType != KEikMessageUnfadeWindows && 
       
  1415     	 aType != KEikMessageFadeAllWindows && 
       
  1416     	 aType != KEikMessageColorSchemeChange && 
       
  1417     	 aType != KAknsMessageSkinChange )
       
  1418         {
       
  1419         // Need to do this to set up the scroll bar model
       
  1420         TRAP_IGNORE( UpdateScrollBarsL() );
       
  1421         }
       
  1422     
  1407     _AKNTRACE_FUNC_EXIT;
  1423     _AKNTRACE_FUNC_EXIT;
  1408     }
  1424     }
  1409 
  1425 
  1410 
  1426 
  1411 EXPORT_C void CAknGrid::FocusChanged( TDrawNow aDrawNow )
  1427 EXPORT_C void CAknGrid::FocusChanged( TDrawNow aDrawNow )