`
totoxian
  • 浏览: 1074015 次
  • 性别: Icon_minigender_2
  • 来自: 西安
文章分类
社区版块
存档分类
最新评论

How to change text of CBA buttons?

阅读更多

Origine:http://forum.newlc.com/index.php/topic,12882.0.html

In theRSS 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 );
OR
SetCommandSetL( R_YOURAPP_SOFTKEYS_OPTIONS_STOP );

where ever you want.

分享到:
评论

相关推荐

    Android代码-屏蔽home按键

    How to disable Home and other system buttons in Android? This library provide a easy way to do this job. NOTICE This library doesn't support devices with VIRTUAL HOME KEY, such as Galaxy Nexus Nexus...

    This demonstrates how to add radio buttons to your menus

    "This demonstrates how to add radio buttons to your menus"这个主题聚焦于如何在菜单中集成单选按钮(Radio Buttons),这是一个常见的图形用户界面(GUI)控件,用于让用户在一组互斥选项中进行选择。...

    This application shows how to create non rectangular buttons

    标题 "This application shows how to create non rectangular buttons" 提示我们,这个程序主要涉及的是创建非矩形形状的按钮,这是用户界面设计中的一个重要概念。在传统的图形用户界面中,按钮通常呈现为矩形,但...

    jqGrid 离线帮助手册

    How to Install How it Works My First Grid Basic Grid Conventions Options colModel Options Data manipulation Events Methods HOWTO Navigating Pager Navigator Custom Buttons HOWTO Formatter ...

    jqGrid 离线帮助手册 来源官方wiki

    How to Install How it Works My First Grid Basic Grid Conventions Options colModel Options Data manipulation Events Methods HOWTO Navigating Pager Navigator Custom Buttons HOWTO Formatter ...

    ncurses howto中文

    **ncurses Howto 中文版概述** `ncurses`(New Curses)是一个库,用于在文本终端上创建彩色、动态的用户界面。这个库在Linux、Unix以及其他类Unix系统中广泛使用,允许程序员创建类似GUI的应用程序,即使在没有...

    Mastering_Perl_Tk_1st_ed_2002.pdf

    Methods for disabling buttons temporarily or permanently are covered, including how to change the visual appearance of disabled buttons. **4.11 Text Manipulation** Techniques for manipulating the ...

    Selenium WebDriver Recipes in C#(Apress,2ed,2015)

    How to locate web elements and test functions for hyperlinks, buttons, TextFields and TextAreas, radio buttons, CheckBoxes, and more How to use Selenium WebDriver for select lists, navigation, ...

    Android代码-Fancybuttons

    Fancybuttons Icons, Borders, Radius ......Added ability to use android:text, android:textSize, android:testAllCaps attributes Fixed preview issues with android:* attrs Added opportunity to use a

    VB编程资源大全(英文源码 API)

    <END><br>56,Edge.zip In my program i have used few API functions to set 3D,Sunken,etched effects to the images of your image control.Another example shows how to change your label control to a 3D ...

    WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4

    The chapters provide examples of how to create and apply styles, and use triggers to dynamically change control appearances. #### Event Triggers and Animation (Chapter 14 & Appendix O) Chapters 14 ...

    Python 2.6 Graphics Cookbook.pdf

    explanations of how to overcome some of the difficulties a new python programmer might encounter when trying to use Python in Windows. What you need for this book To run the code in this book, the ...

    How to XBMC

    Appealing to a broad range of users, XBMC is an open source media center which was originally created for Xbox. Its graphical user interface (GUI) allows the user to easily browse and view videos, ...

    VB编程资源大全(英文源码 表单)

    dos-menu.zip This example shows how to change your applications menu apperance as in color and font.<END><br>5 , dos-iface.zip This is an example of how to use skins in your program, and also ...

    Beginning iPhone Development with Swift 2(Apress,2015)

    From there, you’ll learn how to integrate all the interface elements iOS users have come to know and love, such as buttons, switches, pickers, toolbars, and sliders. You’ll master a variety of ...

    VB编程资源大全(英文源码 其它)

    sprite1.zip This is an Excellent example on how to use sprites in your program.<END><br>18 , charcreate.zip This is an example of how to assign "characters" to differant pictureboxes. This ...

    Learning Robotics using Python(PACKT,2015)

    Learning about robotics will become an ...By the end of this tutorial, you'll have a clear idea of how to integrate and assemble all things into a robot and how to bundle the software package.

Global site tag (gtag.js) - Google Analytics