diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-4941C035-C359-4968-9BD5-31F44EE5F810.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-4941C035-C359-4968-9BD5-31F44EE5F810.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,145 @@ + + + + + +Commands +

The term command refers to events that are received when a device user +selects an option in the Options menu or presses a softkey (for more +information, see UI concepts). +The device user input results in the application framework returning a command +ID that corresponds to the softkey or Options menu selection. Command +IDs are mapped to the selection options in the CBA and Menu bar resource +definitions. You can use either custom command IDs, which must be defined +in your application hrh resource +file, or precompiled +values available from the Symbian platform in your resource definitions. +At runtime, the application framework catches the command ID values and passes +them to the application that has focus for handling. The following commands +have special requirements:

+ +

For more information on resource files, see Managing +resource files.

+

For an example of a resource file, see Resource +management example: HelloWorldBasic.

+Options menu +

Commands are passed to the object with which the menu is associated. +The object that receives the command should handle the command if it is specific +to the object. If the command is relevant to another object, then it should +be passed onto the other application object. The actual implementation depends +on the design of your application.

+

If the application above uses an Symbian +view architecture, then the command handling functions as follows.

+ +

To handle commands, you must override CEikAppUi::HandleCommandL() .

+

The options are as follows:

+ +
\ No newline at end of file