How to change text of CBA buttons?
来源:互联网 发布:淘宝网菱格链条包 编辑:程序博客网 时间:2024/05/16 18:06
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
- Symbian屏幕双缓冲&&DSA
- 需求文档写作要点
- 从一个中学的高考录取名单看中国高校的排名
- Symbian OS编码诀窍之设计诀窍
- 构建基于MVC+Observer模式的、艺术性的移动开发框架(KJAVA版)(二)
- How to change text of CBA buttons?
- 经验共享:如何做好系统测试!
- 关于hook设置函数如何支持多核CPU的一个说明
- Symbian OS编码诀窍之设计诀窍
- 构建基于MVC+Observer模式的、艺术性的移动开发框架(KJAVA版)(一)
- 什么是ODS?
- Symbian中所体现的软件编程艺术
- c++笔试题汇总
- 写给对前途迷茫的朋友:五句话定会改变你的人生