首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian >> 用户界面 >> 正文
N93翻转屏幕时动态更新的CBA在多视图程序中无法显示的问题
作者:hoolee    文章来源:诺基亚论坛    更新时间:2007-11-24 17:05:15
设备, 软件 版本: S60 3rd Edition

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

Code:
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;
}
相关文章:
Series60中如何动态改变按钮或关闭它们?
在程序中改变cba的值
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号