uifw/AvKon/src/aknmessagequerycontrol.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 59 978afdc0236f
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
   206     /** The edwin rect is set totally from layout list_popup_info_pane. But
   206     /** The edwin rect is set totally from layout list_popup_info_pane. But
   207       * AknLayoutUtils::LayoutEdwin() is still used for setting its text color and font. 
   207       * AknLayoutUtils::LayoutEdwin() is still used for setting its text color and font. 
   208      **/ 
   208      **/ 
   209     AknLayoutUtils::LayoutEdwin( iEdwin, listPopupInfoPane.Rect(),
   209     AknLayoutUtils::LayoutEdwin( iEdwin, listPopupInfoPane.Rect(),
   210         TAknTextComponentLayout::Multiline(textComponentLayoutArray), EAknsCIQsnTextColorsCG19 );
   210         TAknTextComponentLayout::Multiline(textComponentLayoutArray), EAknsCIQsnTextColorsCG19 );
       
   211     iEdwin->SetSuppressFormatting(ETrue);
   211     iEdwin->SetRect( listPopupInfoPane.Rect() );
   212     iEdwin->SetRect( listPopupInfoPane.Rect() );
       
   213     iEdwin->SetSuppressFormatting(EFalse);
   212     textComponentLayoutArray.Close();
   214     textComponentLayoutArray.Close();
   213     }    
   215     }    
   214 
   216 
   215 TKeyResponse CAknMessageQueryControl::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode /*aModifiers*/ )
   217 TKeyResponse CAknMessageQueryControl::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode /*aModifiers*/ )
   216     {
   218     {
   894       * AknLayoutUtils::LayoutEdwin() is still used for setting its text color and font. 
   896       * AknLayoutUtils::LayoutEdwin() is still used for setting its text color and font. 
   895      **/ 
   897      **/ 
   896     TAknMultiLineTextLayout multilineLayout = TAknTextComponentLayout::Multiline(textComponentLayoutArray);
   898     TAknMultiLineTextLayout multilineLayout = TAknTextComponentLayout::Multiline(textComponentLayoutArray);
   897     AknLayoutUtils::LayoutEdwin( iEdwin, listPopupInfoPane.Rect(),
   899     AknLayoutUtils::LayoutEdwin( iEdwin, listPopupInfoPane.Rect(),
   898         multilineLayout, EAknsCIQsnTextColorsCG19 );
   900         multilineLayout, EAknsCIQsnTextColorsCG19 );
   899     // Use list_popup_info_pane as editor's rect
   901     //iEdwin->SetRect( listPopupInfoPane.Rect() );
   900     iEdwin->SetRect( listPopupInfoPane.Rect() );
       
   901     textComponentLayoutArray.Close();
   902     textComponentLayoutArray.Close();
   902     
   903     
   903     iEdwin->SetBorder( TGulBorder::ENone );
   904     iEdwin->SetBorder( TGulBorder::ENone );
   904     iEdwin->SetFocus( EFalse );
   905     iEdwin->SetFocus( EFalse );
   905     AknsUtils::RegisterControlPosition( iEdwin );
   906     AknsUtils::RegisterControlPosition( iEdwin );