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.

Revision as of 10:00, 15 December 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

如何隐藏status和control panes

From Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 04 Jul 2007 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 设备, 软件 版本:

S60 1st Edition S60 2nd Edition and FP1, FP2, FP3 S60 3rd Edition and FP1


  • 详细描述:

描述

我们可以通过隐藏status和control panes来生成一个全屏效果的应用程序。


解决方案

将程序切换为全屏最简单的方法,就是:

SetExtentToWholeScreen();

在(CCoeControl-derived)window-owning控件中,这个方法可以将窗口尺寸调整到整个屏幕大小,程序绘制时即可覆盖status和control panes了。

我们也可准确指名对panes的隐藏的操作。


如何隐藏status pane:

    CEikStatusPane* statusPane = 
 
CEikonEnv::Static()->AppUiFactory()->StatusPane();
 
statusPane->MakeVisible(EFalse);


还有一种可选的方法是在程序资源文件中将status pane设置为empty layout.

    RESOURCE EIK_APP_INFO 
 
{
 
...
 
status_pane = R_AVKON_STATUS_PANE_LAYOUT_EMPTY;
 
...
 
}


如何隐藏control pane:

    CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
 
cba->MakeVisible( EFalse );
This page was last modified on 15 December 2011, at 10:00.
46 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.

×