Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

当N93翻转屏幕时动态更新的CBA在多视图程序中无法显示的问题

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台:
Symbian

文章
huwell 在 30 Jun 2007 创建
最后由 hamishwillee 在 08 May 2013 编辑
  • 设备, 软件 版本:

S60 3rd Edition


  • 描述:

肖像模式->View1->风景模式(设备翻转)->切换到View->肖像模式(设备翻转)->View2中的CBA动态更新。但无法显示

TKeyResponse Ctest1Container2::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if(aKeyEvent.iCode == EKeyOK)
{
if(iCba == R_AVKON_SOFTKEYS_OPTIONS_BACK)
{
 
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
 
cba->SetCommandSetL(R_AVKON_SOFTKEYS_CANCEL);
 
cba->MakeVisible(EFalse); //Add this line to the source code
 
cba->DrawNow();
 
cba->MakeVisible(ETrue); //Add this line to the source code
 
//CEikonEnv::Static()->InfoWinL(_L("info"), _L("hi"));
 
 
 
iCba = R_AVKON_SOFTKEYS_CANCEL;
 
}
else
{
 
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
 
cba->SetCommandSetL(R_AVKON_SOFTKEYS_OPTIONS_BACK);
 
cba->MakeVisible(EFalse); //Add this line to the source code
 
cba->DrawNow();
 
cba->MakeVisible(ETrue); //Add this line to the source code
 
//CEikonEnv::Static()->InfoWinL(_L("info"), _L("hi"));
 
 
 
iCba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
 
}
return EKeyWasConsumed;
}
return EKeyWasNotConsumed;
}
This page was last modified on 8 May 2013, at 00:02.
25 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×