How to change text of CBA buttons?
来源:互联网 发布:北京知金教育怎么样 编辑:程序博客网 时间:2024/05/17 04:22
Origine: http://forum.newlc.com/index.php/topic,12882.0.html
In the RSS file:
RESOURCE CBA r_yourapp_softkeys_options_open{buttons = {CBA_BUTTON { id=EAknSoftkeyOptions; txt = "Options"; },CBA_BUTTON { id=EYourAppCmdOpenApp; txt = "Open"; }};}RESOURCE CBA r_yourapp_softkeys_options_stop{buttons = {CBA_BUTTON { id=EAknSoftkeyOptions; txt = "Options"; },CBA_BUTTON { id=EYourAppCmdStopApp; txt = "Stop"; }};}
In the HRH file:
enum TYourAppCommandIds {// ...id=EYourAppCmdOpenApp,id=EYourAppCmdStopApp,// ...};
In your application's AppUi class:
void CYourAppUi::SetCommandSetL(TInt aResourceId){CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();cba->SetCommandSetL( aResourceId );}
Now you can call:SetCommandSetL( R_YOURAPP_SOFTKEYS_OPTIONS_OPEN );ORSetCommandSetL( R_YOURAPP_SOFTKEYS_OPTIONS_STOP );where ever you want.
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- How to change text of CBA buttons?
- how to change text color of CEikEdwin
- How to Change the Text in the Tabs of a CPropertySheet
- How to change the Text color of Menu item in Android?
- How to change the text color of the selected property sheet tab in Visual C++
- How to change instance_number of RAC
- how to change the port of tomcat
- How to change password of Thunderbird
- 第一个 Erlang 程序: Ftp 下载客户端
- 克服心中的残疾,让我们走向胜利!
- 显示屏幕分辨率与大小详解
- C#代码与javaScript函数的相互调用
- 预算不变的情况下如何为用户提供更有价值的IT软件系统支撑
- How to change text of CBA buttons?
- 扩展的SOA行业框架及解决方案简化SOA部署
- 如何隐藏命令按钮(CBA)
- 惊叹语音朗读技术做的这么好了
- 将最小特权原则应用到Windows XP用户帐户
- 初始化列表的作用域
- SOA对业务、技术及个人的影响力
- python入门 - 获取命令行输入
- ZBC400_04_TEST3