meetingrequest/mrgui/src/cmrfieldcontainer.cpp
branchRCL_3
changeset 80 726fba06891a
parent 64 3533d4323edc
equal deleted inserted replaced
73:c8382f7b54ef 80:726fba06891a
   359     if ( visibleField )
   359     if ( visibleField )
   360         {
   360         {
   361         // Remove existing focus
   361         // Remove existing focus
   362         focusedField->SetOutlineFocusL( EFalse );
   362         focusedField->SetOutlineFocusL( EFalse );
   363         focusedField->SetFocus( EFalse );
   363         focusedField->SetFocus( EFalse );
       
   364         focusedField->MoveToScreen( EFalse );
   364 
   365 
   365         // Set focus to new field
   366         // Set focus to new field
       
   367         visibleField->MoveToScreen( ETrue );
   366         visibleField->SetOutlineFocusL( ETrue );
   368         visibleField->SetOutlineFocusL( ETrue );
   367         visibleField->SetFocus( ETrue );
   369         visibleField->SetFocus( ETrue );
   368 
   370 
   369         response = EKeyWasConsumed;
   371         response = EKeyWasConsumed;
   370 
   372 
   552                 // Scroll this field completely visible, if required.
   554                 // Scroll this field completely visible, if required.
   553                 // This updates also scrollbar and physics if scrolling
   555                 // This updates also scrollbar and physics if scrolling
   554                 // is done.
   556                 // is done.
   555                 ScrollControlVisible( iFocusedFieldIndex );
   557                 ScrollControlVisible( iFocusedFieldIndex );
   556                 }
   558                 }
   557 
   559             SizeChanged();
   558             DrawDeferred();
   560             DrawDeferred();
   559             }
   561             }
   560         }
   562         }
   561     }
   563     }
   562 
   564 
   918         {
   920         {
   919         CESMRField* field = iFactory.Field( i );
   921         CESMRField* field = iFactory.Field( i );
   920 
   922 
   921         if ( field->IsVisible() )
   923         if ( field->IsVisible() )
   922             {
   924             {
   923             field->SetPosition( aTl );
   925 			TPoint pos( field->Position() );
   924 
   926 			pos.iY = aTl.iY;
   925             aTl.iY += field->Size().iHeight;
   927 			field->SetPosition( pos );
       
   928 	
       
   929 			aTl.iY += field->Size().iHeight;
   926             }
   930             }
   927         }
   931         }
   928     }
   932     }
   929 
   933 
   930 // ---------------------------------------------------------------------------
   934 // ---------------------------------------------------------------------------
  1062     // Otherwise move it to screen.
  1066     // Otherwise move it to screen.
  1063     CESMRField* field = iFactory.Field( iFocusedFieldIndex );
  1067     CESMRField* field = iFactory.Field( iFocusedFieldIndex );
  1064     field->MoveToScreen( !iScrolling );
  1068     field->MoveToScreen( !iScrolling );
  1065     }
  1069     }
  1066 
  1070 
       
  1071 // ---------------------------------------------------------------------------
       
  1072 // CMRFieldContainer::RedrawField
       
  1073 // ---------------------------------------------------------------------------
       
  1074 //
       
  1075 void CMRFieldContainer::RedrawField( CESMRField& aField )
       
  1076     {
       
  1077     FUNC_LOG;
       
  1078 
       
  1079     // Record and redraw field only if it is not on screen
       
  1080     if ( !aField.HasOutlineFocus() )
       
  1081         {
       
  1082         aField.RecordField();
       
  1083         TRect rect( aField.Rect() );
       
  1084         rect.Move( iPosition.iX - rect.iTl.iX, 0 );
       
  1085         aField.DrawNow( rect );
       
  1086         }
       
  1087     }
  1067 
  1088 
  1068 // ---------------------------------------------------------------------------
  1089 // ---------------------------------------------------------------------------
  1069 // CMRFieldContainer::Draw
  1090 // CMRFieldContainer::Draw
  1070 // ---------------------------------------------------------------------------
  1091 // ---------------------------------------------------------------------------
  1071 //
  1092 //