meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrmulticalenfield.cpp
branchRCL_3
changeset 34 cd2816114bd1
parent 33 da5135c61bad
child 24 b5fbb9b25d57
equal deleted inserted replaced
33:da5135c61bad 34:cd2816114bd1
   150         	isUsed = ETrue;
   150         	isUsed = ETrue;
   151 			}
   151 			}
   152         		    	
   152         		    	
   153 		else if( iTypeChangeEnabled )
   153 		else if( iTypeChangeEnabled )
   154             {
   154             {
       
   155 			HandleTactileFeedbackL();
       
   156 		
   155 		    ExecuteTypeQueryL();
   157 		    ExecuteTypeQueryL();
   156             isUsed = ETrue;
   158             isUsed = ETrue;
   157             
       
   158     		HandleTactileFeedbackL();
       
   159             }
   159             }
   160         }
   160         }
   161 
   161 
   162     return isUsed;
   162     return isUsed;
   163     }
   163     }
   353     TRect viewerRect( viewerLayoutText.TextRect() );    
   353     TRect viewerRect( viewerLayoutText.TextRect() );    
   354     iCalenName->SetRect( viewerRect );
   354     iCalenName->SetRect( viewerRect );
   355     
   355     
   356     // Move focus rect so that it's relative to field's position.
   356     // Move focus rect so that it's relative to field's position.
   357     viewerRect.Move( -Position() );
   357     viewerRect.Move( -Position() );
   358     SetFocusRect( viewerRect );
   358     
       
   359     TAknLayoutRect bgLayoutRect = 
       
   360         NMRLayoutManager::GetLayoutRect( 
       
   361                 rect, NMRLayoutManager::EMRLayoutTextEditorBg );
       
   362     TRect bgRect( bgLayoutRect.Rect() );
       
   363     
       
   364     // Adjust background rect according to viewerRect 
       
   365     bgRect.SetWidth( viewerRect.Width() );
       
   366     
       
   367     // Move focus rect so that it's relative to field's position.
       
   368     bgRect.Move( -Position() );
       
   369         
       
   370     SetFocusRect( bgRect );
   359     }
   371     }
   360 
   372 
   361 // ---------------------------------------------------------------------------
   373 // ---------------------------------------------------------------------------
   362 // CMRMultiCalenField::SetContainerWindowL
   374 // CMRMultiCalenField::SetContainerWindowL
   363 // ---------------------------------------------------------------------------
   375 // ---------------------------------------------------------------------------