textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp
branchRCL_3
changeset 22 bd83ceabce89
parent 21 ecbabf52600f
equal deleted inserted replaced
21:ecbabf52600f 22:bd83ceabce89
    57 EXPORT_C void CButtonBase::BaseConstructL()
    57 EXPORT_C void CButtonBase::BaseConstructL()
    58     {
    58     {
    59     CFepUiBaseCtrl::BaseConstructL();
    59     CFepUiBaseCtrl::BaseConstructL();
    60     
    60     
    61     //tap accuracy enhancement
    61     //tap accuracy enhancement
    62     if( FeatureManager::FeatureSupported( KFeatureIdFfCapacitiveDisplay ))
    62     if ( FeatureManager::FeatureSupported( KFeatureIdFfCapacitiveDisplay ) )
    63         {
    63         {
    64         EnableExtResponseArea( ETrue, TRect(TPoint(10,10),TSize(10,10)) );
    64         TMargins margins;
       
    65         UiLayout()->GetButtonExtResponseArea( margins );
       
    66         TPoint topLeftMargin( margins.iLeft, margins.iTop );
       
    67         TSize bottomRightMargin( margins.iRight, margins.iBottom );
       
    68         EnableExtResponseArea( ETrue, TRect( topLeftMargin,bottomRightMargin ) );
    65         }
    69         }
    66     }
    70     }
    67 
    71 
    68 // ---------------------------------------------------------------------------
    72 // ---------------------------------------------------------------------------
    69 // CButtonBase::CButtonBase
    73 // CButtonBase::CButtonBase