simplemenu.rss

来自「symbian下一个目录的例子,对新手有很大帮助」· RSS 代码 · 共 111 行

RSS
111
字号
/**
* 
* @brief Resource file for SimpleMenu application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME    MEN1 // 4 letter ID

//  INCLUDES

#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <eikon.rh>

#include "SimpleMenu.hrh"
#include "SimpleMenu.loc"

//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="SimpleMenu"; }

RESOURCE EIK_APP_INFO
	{
	menubar=r_simplemenu_menu_bar;
	cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
	}


//----------------------------------------------------
//   
//    r_simplemenu_menu_bar
//    options menu for the application
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_simplemenu_menu_bar
	{
	titles=
		{
		MENU_TITLE 
			{
			txt = ""; // the text is not used in Series 60
			menu_pane = r_simplemenu_menu_pane;
			}
		};
	}


//----------------------------------------------------
//   
//    r_simplemenu_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_simplemenu_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = ESimpleMenuCmdNewGame;
			txt = NEW_GAME_TEXT;
			cascade = r_simplemenu_game_submenu_menu_pane;
			},
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = EXIT_TEXT;
			}
		};
	}

//----------------------------------------------------
//   
//    r_simplemenu_game_submenu_menu_pane
//    new game submenu menu pane
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_simplemenu_game_submenu_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = ESimpleMenuCmdViaIR;
			txt = VIA_IR_TEXT;
			},
		MENU_ITEM
			{
			command = ESimpleMenuCmdViaBluetooth;
			txt = VIA_BLUETOOTH_TEXT;
			},
		MENU_ITEM
			{
			command = ESimpleMenuCmdViaSMS;
			txt = VIA_SMS_TEXT;
			}
		};
	}


// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?