controlpanelapplication.rss

来自「symbian os c++ 界面控制及显示」· RSS 代码 · 共 97 行

RSS
97
字号
//
// ControlPanelApplication.RSS
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#include <eikon.rh>

#include "ControlPanelApplication.hrh"
#include "ControlPanelApplication.rls"


NAME CTRA

RESOURCE RSS_SIGNATURE { }

// This defines the buttons for the dialog
RESOURCE DLG_BUTTONS r_ctrlpanel_dialog_buttons
	{
	buttons =
		{
		DLG_BUTTON
			{
			id=ERemoveButton; // Id of the button, defined in the .hrh file
			flags = 0;
			button=CMBUT // Defines a command button
				{
				txt="Remove"; // Text shown on the button
				};
			},
		DLG_BUTTON
			{
			id = EEikBidOk; // Predefined id for an "OK" type button
			button = CMBUT // Defines a command button
				{
				txt = "Done";
				};
			hotkey = EEikBidOk;
			flags = EEikLabeledButtonIsDefault; // sets this button as default
			}
		};
	}

// This defines the applications list page
RESOURCE ARRAY r_appslist_page 
	{
	items =
		{
		DLG_LINE
			{
			type = EEikCtColListBox; // Column list box
			id = EAppsListBox;
			control = LISTBOX
				{
				width = 10; // width in characters
				};
			}
		};
	}

// This defines the ini files list page
RESOURCE ARRAY r_inislist_page
	{
	items =
		{
		DLG_LINE
			{
			type = EEikCtListBox; // Standard list box
			id = EInisListBox;
			control = LISTBOX
				{
				width = 10;
				};
			}
		};
	}


// This defines what pages are to be in the dialog
RESOURCE ARRAY r_ctrlpanel_pages // define the pages for the dialog
	{
	items = 
		{
		PAGE {text=STRING_r_appslist_page; lines=r_appslist_page; id=EAppsListPage;},
		PAGE {text=STRING_r_inislist_page; lines=r_inislist_page; id=EInisListPage;}
		};
	}

// This defines the main dialog
RESOURCE DIALOG r_ctrlpanel_dialog
	{
	title = STRING_r_ctrlpanel_dialog;
	buttons = r_ctrlpanel_dialog_buttons;
	flags = EEikDialogFlagWait;
	pages = r_ctrlpanel_pages;
	}

⌨️ 快捷键说明

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