How to change text of CBA buttons?
来源:互联网 发布:seo视频课程 编辑:程序博客网 时间:2024/04/29 22:26
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"; }
};
}
{
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,
// ...
};
{
// ...
id=EYourAppCmdOpenApp,
id=EYourAppCmdStopApp,
// ...
};
In your application's AppUi class:
void CYourAppUi::SetCommandSetL(TInt aResourceId)
{
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->SetCommandSetL( aResourceId );
}
{
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->SetCommandSetL( aResourceId );
}
Now you can call:
SetCommandSetL( R_YOURAPP_SOFTKEYS_OPTIONS_OPEN );
OR
SetCommandSetL( R_YOURAPP_SOFTKEYS_OPTIONS_STOP );
where ever you want.
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1557046
- 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
- __FILE__和__LINE__ 使用
- SOCkET编程 难点及要点
- C语言编程常见问题分析
- 多核编程中的锁竞争难题
- 多核系统中三种典型锁竞争的加速比分析
- How to change text of CBA buttons?
- Netbeans一个巨奇怪的问题
- 关于栈的弹出函数设计是否应该有两个返回值,一个表示数据,一个表示是否栈为空
- 大型稀疏矩阵求解器GSS 2.0发布
- Java疑惑点解析(二)
- C/C++代码检视要点
- C语言编程常见问题分析
- 软件工程、项目管理类 重点图书——Be Flying工作室翻译作品展示
- 测试的核心技术是什么?