uifw/AvKon/src/akninfrm.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
   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         TRAP_IGNORE
   356         iInputContext = CAknsFrameBackgroundControlContext::NewL(
   357             ( 
   357             KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse );
   358             iInputContext = CAknsFrameBackgroundControlContext::NewL(
   358         iFlags = iFlags | EOwnsInputContext;
   359                     KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse);
   359         // also need to provide skin for the editor in this case
   360         
   360         static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );
   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             );
       
   368         }
   361         }
   369 
   362 
   370     if ( iInputContext )
   363     if ( iInputContext )
   371         {
   364         {
   372         // this layout is actually from form!
   365         // this layout is actually from form!
   514     CCoeControl::HandleResourceChange( aType );
   507     CCoeControl::HandleResourceChange( aType );
   515     switch ( aType )
   508     switch ( aType )
   516         {
   509         {
   517         case KAknsMessageSkinChange:
   510         case KAknsMessageSkinChange:
   518         case KEikDynamicLayoutVariantSwitch:
   511         case KEikDynamicLayoutVariantSwitch:
   519             TRAP_IGNORE(CreateIconL());
   512             CreateIconL();
   520             break;
   513             break;
   521             
   514             
   522         default:
   515         default:
   523             break;
   516             break;
   524         }
   517         }