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

📄 slidlg.rss

📁 Symbian系统
💻 RSS
字号:
NAME HELL

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

#include "SLIDlg.hrh"


// ---------------------------------------------------------
//   
//    Define the resource file signature 
//    This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE 
	{ 
	}

// ---------------------------------------------------------
//   
//    Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_default_document_name 
	{ 
	buf=""; 
	}

// ---------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    menubar = r_slidlg_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// ---------------------------------------------------------
//   
//   r_slidlg_menubar
//   Menubar for slidlg example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_slidlg_menubar
    {
    titles =
        {
        MENU_TITLE 
			{
			menu_pane = r_slidlg_menu;
			}
        };
    }


// ---------------------------------------------------------
//   
//   r_slidlg_menu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_slidlg_menu
    {
    items = 
        {
        // added the new Options menu command here
        MENU_ITEM 
		    {
			command = SettingsItemListCmd;  
			txt = "Settings Item List";
			},
        MENU_ITEM 
		    {
			command = EAknSoftkeyExit;   
			txt = "Exit";
			}
        };
    }


// ---------------------------------------------------------
//   
//    Article Code from here onward - generic code is above
//
// ---------------------------------------------------------
//
	
RESOURCE DIALOG r_settingitemlist_dialog
{
	flags   = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | 
			  EEikDialogFlagWait | EEikDialogFlagCbaButtons | EEikDialogFlagNoTitleBar;
	
	// **** Buttons are Select and Cancel, not Ok and Cancel **** 
	buttons = R_AVKON_SOFTKEYS_SELECT_CANCEL;

	items =
	{
		DLG_LINE
		{
			// **** This is the control type - its our own special custom control ****
			type 	= 	EAknCtLastControlId;
			
			// **** This is the dialog id - any value can be used as there are no 
			//		other controls on the dialog ****
			id 		= 	ESLIList;
			
			// **** NB NB the control data is a setting item list ****
			control = AVKON_SETTING_ITEM_LIST 
			{ 
				flags = EAknSettingItemNumberedStyle;
				title = "Setting Item List Sample";

				// **** These are the two settings we want to edit ****
				items = 
				{
					// **** The first item is a text box with a text editor ****
					AVKON_SETTING_ITEM
					{
						identifier = ESLIText1;
						name = "Setting 1";
						compulsory_ind_string = "*";
						
						// **** Note that this points to a resource page ****
						setting_page_resource = r_slidlg_item1;
					},
					
					// **** The second iem is a text box with an editor ****
					AVKON_SETTING_ITEM
					{
						identifier = ESLIText2;
						name = "Setting 2";

						// **** Note that this points to a resource page ****						
						setting_page_resource = r_slidlg_item2;
					}
				};
			};
		}
	};	
}

RESOURCE AVKON_SETTING_PAGE r_slidlg_item1
{
	number = 1;
	
	// **** The hint text to appear in the top bar ****
	hint_text = "Item 1 hint";
	
	// **** The label for the item ****
	label = "Item 1";
	
	// **** Note the type of control in the page ****
	type = EEikCtEdwin;
	
	// **** Note the control data is not an id but a reference to the control resource data ****
	editor_resource_id = r_slidlg_item1_editor;
}

RESOURCE EDWIN r_slidlg_item1_editor
{
	width = 32;
	lines = 1;
	maxlength = 32;
}

RESOURCE AVKON_SETTING_PAGE r_slidlg_item2
{
	number = 2;
	hint_text = "Item 2 hint";
	label = "Item 2";
	type = EEikCtEdwin;
	editor_resource_id = r_slidlg_item2_editor;
}

RESOURCE EDWIN r_slidlg_item2_editor
{
	width = 32;
	lines = 1;
	maxlength = 32;
}

⌨️ 快捷键说明

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