uifw/AvKon/src/akninfrm.cpp
branchRCL_3
changeset 18 fcdfafb36fe7
parent 7 08e69e956a8c
child 19 aecbbf00d063
equal deleted inserted replaced
17:a1caeb42b3a3 18:fcdfafb36fe7
   351     if ( !iInputContext )
   351     if ( !iInputContext )
   352         {
   352         {
   353         // we need to provide own context if one does not exist
   353         // we need to provide own context if one does not exist
   354         // because old style drawing did kind of work even
   354         // because old style drawing did kind of work even
   355         // without calling SetInputContext( ... )
   355         // without calling SetInputContext( ... )
   356         iInputContext = CAknsFrameBackgroundControlContext::NewL(
   356         TRAP_IGNORE
   357             KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse );
   357             ( 
   358         iFlags = iFlags | EOwnsInputContext;
   358             iInputContext = CAknsFrameBackgroundControlContext::NewL(
   359         // also need to provide skin for the editor in this case
   359                     KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse);
   360         static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );
   360         
       
   361             if (iInputContext)
       
   362                 {
       
   363                 iFlags = iFlags | EOwnsInputContext;
       
   364                 // also need to provide skin for the editor in this case
       
   365                 static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );  
       
   366                 }
       
   367             );
   361         }
   368         }
   362 
   369 
   363     if ( iInputContext )
   370     if ( iInputContext )
   364         {
   371         {
   365         // this layout is actually from form!
   372         // this layout is actually from form!
   507     CCoeControl::HandleResourceChange( aType );
   514     CCoeControl::HandleResourceChange( aType );
   508     switch ( aType )
   515     switch ( aType )
   509         {
   516         {
   510         case KAknsMessageSkinChange:
   517         case KAknsMessageSkinChange:
   511         case KEikDynamicLayoutVariantSwitch:
   518         case KEikDynamicLayoutVariantSwitch:
   512             CreateIconL();
   519             TRAP_IGNORE(CreateIconL());
   513             break;
   520             break;
   514             
   521             
   515         default:
   522         default:
   516             break;
   523             break;
   517         }
   524         }