Namespaces
Variants
Actions

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

Jump to: navigation, search
文章信息

文章
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 03:02.
74 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved