textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbubblectrl.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 7 6defe5d1bd39
child 12 5e18d8c489d6
equal deleted inserted replaced
8:4eb1ae11334f 9:e6a39382bb9c
   232     //gc->Clear(rect);
   232     //gc->Clear(rect);
   233     		
   233     		
   234 	// Draw background
   234 	// Draw background
   235 	if ( iBgSkinId.iMajor )
   235 	if ( iBgSkinId.iMajor )
   236 	    {
   236 	    {
   237     	AknsDrawUtils::DrawFrame( AknsUtils::SkinInstance(), 
   237 	
       
   238     	AknsDrawUtils::DrawFrame( UiLayout()->SkinInstance(), //UiLayout()->SkinInstace()
   238                          *gc,
   239                          *gc,
   239                          rect,
   240                          rect,
   240                          innerRect,
   241                          innerRect,
   241                          iBgSkinId,
   242                          iBgSkinId,
   242                          KAknsIIDDefault ); 	        
   243                          KAknsIIDDefault ); 	        
   243 	    }
   244 	    }
   244 	else if( iFirstBmpId.iMajor && iMiddleBmpId.iMajor && iLastBmpId.iMajor )
   245 	else if( iFirstBmpId.iMajor && iMiddleBmpId.iMajor && iLastBmpId.iMajor )
   245 		{
   246 		{
   246 		AknPenInputDrawUtils::Draw3PiecesFrame( AknsUtils::SkinInstance(),
   247 		AknPenInputDrawUtils::Draw3PiecesFrame( UiLayout()->SkinInstance(),
   247 						 *gc,
   248 						 *gc,
   248 						 rect,
   249 						 rect,
   249 						 innerRect,
   250 						 innerRect,
   250 						 iFirstBmpId,
   251 						 iFirstBmpId,
   251 						 iMiddleBmpId,
   252 						 iMiddleBmpId,
   299         TAknLayoutText textLayout;
   300         TAknLayoutText textLayout;
   300         textLayout.LayoutText(Rect(), iTextFormat);
   301         textLayout.LayoutText(Rect(), iTextFormat);
   301         TRgb color( KRgbBlack );  // sane default for nonskinned case
   302         TRgb color( KRgbBlack );  // sane default for nonskinned case
   302 	    if ( AknsUtils::AvkonSkinEnabled() )
   303 	    if ( AknsUtils::AvkonSkinEnabled() )
   303 	        {
   304 	        {
   304 	        AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   305 	        AknsUtils::GetCachedColor( UiLayout()->SkinInstance(),
   305 	                               color, KAknsIIDQsnTextColors, iTextColorIndex );
   306 	                               color, KAknsIIDQsnTextColors, iTextColorIndex );
   306 	        }
   307 	        }
   307 	     textLayout.DrawText(*gc, *iText, ETrue, color);
   308 	     textLayout.DrawText(*gc, *iText, ETrue, color);
   308         }
   309         }
   309     }
   310     }