本文整理汇总了C++中CEikButtonGroupContainer::DrawNow方法的典型用法代码示例。如果您正苦于以下问题:C++ CEikButtonGroupContainer::DrawNow方法的具体用法?C++ CEikButtonGroupContainer::DrawNow怎么用?C++ CEikButtonGroupContainer::DrawNow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEikButtonGroupContainer
的用法示例。
在下文中一共展示了CEikButtonGroupContainer::DrawNow方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
// ---------------------------------------------------------
// CAppSoftkeysObserver::UpdateSoftkeyL
// ---------------------------------------------------------
//
void
CAppSoftkeysObserver::UpdateSoftkeyL(TBrCtlKeySoftkey /*aKeySoftkey*/,
const TDesC& /*aLabel*/,
TUint32 /*aCommandId*/,
TBrCtlSoftkeyChangeReason /*aBrCtlSoftkeyChangeReason*/)
{
CBrCtlInterface* brCtl = iAppView->BrCtlInterface();
TBrCtlDefs::TBrCtlElementType type = brCtl->FocusedElementType();
CEikButtonGroupContainer* current = CEikButtonGroupContainer::Current();
switch (type)
{
case TBrCtlDefs::EElementActivatedObjectBox:
case TBrCtlDefs::EElementActivatedInputBox:
current->SetCommandSetL( R_AVKON_SOFTKEYS_CANCEL );
break;
default:
current->SetCommandSetL( R_AVKON_SOFTKEYS_OPTIONS_BACK );
break;
}
current->DrawNow();
}
示例2: UseOptionsBackCbaL
void CZXingBarcodeReaderAppUi::UseOptionsBackCbaL()
{
CEikButtonGroupContainer* cba = Cba();
if (cba)
{
cba->SetCommandSetL(R_AVKON_SOFTKEYS_OPTIONS_BACK);
cba->DrawNow();
}
}
示例3: switch
// ---------------------------------------------------------
// CBrCtlSampleAppSoftkeysObserver::UpdateSoftkeyL
// ---------------------------------------------------------
//
void
CBrCtlSampleAppSoftkeysObserver::UpdateSoftkeyL(TBrCtlKeySoftkey /*aKeySoftkey*/,
const TDesC& /*aLabel*/,
TUint32 /*aCommandId*/,
TBrCtlSoftkeyChangeReason /*aBrCtlSoftkeyChangeReason*/)
{
CBrCtlInterface* brCtl = iContainer->BrCtlInterface();
TBrCtlDefs::TBrCtlElementType type = brCtl->FocusedElementType();
CEikButtonGroupContainer* current = CEikButtonGroupContainer::Current();
switch (type)
{
case TBrCtlDefs::EElementInputBox:
// current->SetCommandSetL( R_INPUT_ELEMENT_BUTTONS );
break;
default:
// current->SetCommandSetL( R_BROWSER_DEFAULT_BUTTONS );
break;
}
current->DrawNow();
}