<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog336280.html" frameborder="0" width="336" scrolling="no" height="280"></iframe>
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.
分享到:
相关推荐
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 application shows how to create non rectangular buttons.
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 ...
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 ...
Adding social bookmarking buttons to your theme 52 Getting ready 52 How to do it 52 How it works 53 There's more... 53 Using CSS to style the social bookmarking widget 53 Adding Del.icio.us live...
Demonstrates how to use the new toolbar styles to add dropdown arrows to toolbar buttons (28KB)
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, ...
This example demonstrates how to create realistic Option Buttons in Visual Basic.
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
<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 ...
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 ...
Learn how to make interactive sprites and buttons for the keyboard, mouse and touch. Create and manage game scenes, and learn how to make particle explosions and screen shake effects. Manage ...
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, ...
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 ...
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, ...
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.
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 ...
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 ...
In Lesson 1 you learn how to organize columns and rows of data into a range so that you can effectively sort, filter, subtotal, and outline the data. Then you learn how to protect the data from ...