Posts with the tag '显示'

如何使Symbian程序一直全屏显示

一般而言有如下几种方法:

1,在Container的ConstructL中,调用SetExtentToWholeScreen ();

缺点是一按下“选项”,StatusPane和CBA又出来了。

2,在View的DoActivateL中,调用AppUi()->ApplicationRect()。

同样有如上的问题。

iMobile517MainContainer = CMobile517MainContainer::NewL(AppUi()->ApplicationRect(), NULL, this );

3,通过隐藏Status Pane和CBA,这种方法比较灵光(需要和2同时使用)!

在Container的ConstructL函数中调用:

 CEikStatusPane* statusp = iEikonEnv->AppUiFactory()->StatusPane();
 if(statusp) statusp->MakeVisible(EFalse);
iEikonEnv->AppUiFactory()->Cba()->MakeVisible(EFalse);

Popularity: 10% [?]

Add comment 11月 18th, 2007

如何在Symbian程序中显示中文资源

可以通过以下几步来实现:

1,复制一个xxx.rls字符串文件,改名为xxx31.rls。

2,然后把里面的英文都改成为中文,在头上加入:CHARACTER_SET UTF8

3,用记事本打开,然后另存为UTF-8格式。

4,用UltraEdit打开,在 高级-〉配置-〉常规中点掉“自动检测UTF-8格式文件”。手动删除头上的三个字符。

5,在rss文件头部加入:#ifdef LANGUAGE_01
#include “xxx.rls”
#elif defined LANGUAGE_31
#include “xxx31.rls”
#endif

6,加入到Symbian工程中,修改MMP文件,LANG 01 31,即可编译通过,并生成xxx.r31。

7,修改PKG文件,将原来的RSC后缀名改为R31,注意,_Reg的也要改!

“$(EPOCROOT)Epoc32\data\z\resource\apps\ClockSSConfig.R31″  -”!:\resource\apps\ClockSSConfig.rsc”

就这么简单,赫赫~

Popularity: 9% [?]

Add comment 09月 30th, 2007


标签

Calendar

08月 2008
« Jul    
 123
45678910
11121314151617
18192021222324
25262728293031

Posts by Month

Posts by Category