⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simpledlg.rss

📁 Symbian OS 源码:一个标准对话框的S60手机的源码。适合于初学者
💻 RSS
字号:
/**
* 
* @brief Resource file for SimpleDlg application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME	DLG1 // 4 letter ID

//  INCLUDES

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

#include "simpledlg.hrh"
#include "simpledlg.loc"

//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="SimpleDlg"; }

RESOURCE EIK_APP_INFO
	{

	menubar=r_simpledlg_menubar; 
	}

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


//----------------------------------------------------
//   
//    r_simpledlg4_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_simpledlg_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = ESimpleDlgCmdNewGame;
			txt = NEW_GAME_TEXT;
			},
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = EXIT_TEXT;
			}
		};
	}


//----------------------------------------------------
//   
//		r_simpledlg_dialog
//		definition of the main application window dialog
//		N.B. The dialog is modeless, as it is the main 
//		application window.
//
//----------------------------------------------------
//
RESOURCE DIALOG r_simpledlg_dialog
	{
	flags=EEikDialogFlagNoDrag | 
		EEikDialogFlagNoTitleBar | 
		EEikDialogFlagFillAppClientRect | 
		EEikDialogFlagCbaButtons | 
		EEikDialogFlagModeless;
	buttons=R_AVKON_SOFTKEYS_OPTIONS_BACK; 
	items=
		{
		DLG_LINE
			{
			id=ESimpleDlgCIdGameName;
			type=EEikCtLabel;
			control= LABEL 
				{ 
				txt = GAME_NAME_TEXT; 
				};
			}
		};
	}

//----------------------------------------------------
//   
//		r_simpledlg_player_name_dialog
//		definition of the player name dialog
//
//----------------------------------------------------
//
RESOURCE DIALOG r_simpledlg_player_name_dialog
	{
	flags=EEikDialogFlagNoDrag | 
		EEikDialogFlagCbaButtons |
		EEikDialogFlagWait;
	buttons=R_AVKON_SOFTKEYS_OK_CANCEL; 
	items=
		{
		DLG_LINE
			{
			id=ESimpleDlgCIdPlayerName;
			type=EEikCtLabel;
			control= LABEL 
				{
				};
			},
		DLG_LINE
			{
			id=ESimpleDlgCIdPlayerNameEditor;
			type=EEikCtEdwin;
			control= EDWIN 
				{
				maxlength = KMaxPlayerNameLength;
				};
			}
		};	
	}

// ---------------------------------------------------------
//   
//    Strings used by the application
//
// ---------------------------------------------------------
//
RESOURCE TBUF R_ENTER_NAME_TEXT
	{	
	buf = ENTER_NAME_TEXT; 
	}





// End of File

⌨️ 快捷键说明

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