phoneuis/dialer/src/cdialerkeypadcontainer.cpp
branchRCL_3
changeset 31 ba54057fe027
parent 25 91c2fb4b78df
child 58 40a3f856b14d
equal deleted inserted replaced
25:91c2fb4b78df 31:ba54057fe027
   293         for ( TInt col = limits.FirstColumn() ; col <= limits.LastColumn() ; col++ )
   293         for ( TInt col = limits.FirstColumn() ; col <= limits.LastColumn() ; col++ )
   294             {
   294             {
   295             // Calculate corresponding index in iButtons array
   295             // Calculate corresponding index in iButtons array
   296             TInt idx = col + row * colCount;
   296             TInt idx = col + row * colCount;
   297             
   297             
   298             // Set mode and variety so that correct button internal layout will be used
   298             // Set mode and variety so that correct button internal layout will be used.
       
   299             // Always use ED mode, so that text labels are visible even when ED is off.
   299             iButtons[idx]->SetVariety( iVariety );
   300             iButtons[idx]->SetVariety( iVariety );
   300             iButtons[idx]->SetOperationMode( iOperatingMode );
   301             iButtons[idx]->SetOperationMode( EModeEasyDialing );
   301             
   302             
   302             // Layout button
   303             // Layout button
   303             TRect buttonRect = firstButtonRect;
   304             TRect buttonRect = firstButtonRect;
   304             buttonRect.Move( col * buttonRect.Width(), row * buttonRect.Height() );
   305             buttonRect.Move( col * buttonRect.Width(), row * buttonRect.Height() );
   305             buttonRect.Shrink( 1, 1 ); // to create small gap between buttons
   306             buttonRect.Shrink( 1, 1 ); // to create small gap between buttons