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

📄 biaofeng.rss

📁 一个可以加载图片作为下拉菜单的symbian手机示例
💻 RSS
字号:
/*
============================================================================
 Name		: Biaofeng.rss
 Author	  : 
 Copyright   : Your copyright notice
 Description : This file contains all the resources for the Biaofeng.
============================================================================
*/
//  RESOURCE IDENTIFIER
NAME BIAO	// 4 letter ID


//  INCLUDES
#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <appinfo.rh>
#include "Biaofeng.hrh"
#include "Biaofeng.rls"

CHARACTER_SET UTF8
/*
// NAME COSM
        // Include definitions of resource STRUCTS used by this
        // resource script 
#include <eikon.rh>

        // Include the standard resource ids 
#include <eikon.rsg>

        // Include the symbol definitions used by C++ code and
        // this resource script.
#include <eikon.hrh>

#include "custom.hrh"
#include "custom.rh"

*/

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

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

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


// -----------------------------------------------------------------------------
//
//   r_menubar
//   Main menubar
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_menu; }
		};
	}


// -----------------------------------------------------------------------------
//
//   r_menu
//   Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_menu
	{
	items =
		{
		// added the new Options menu command here
		MENU_ITEM
				{
				command = ECommand1;
				txt = qtn_command1;
				},
		MENU_ITEM
				{
				command = ECommand2;
				txt = qtn_command2;
				},
		MENU_ITEM
				{
				command = EHelp;
				txt = qtn_help;
				},
		MENU_ITEM
				{
				command = EAbout;
				txt = qtn_about;
				},
		MENU_ITEM
				{
				command = EAknSoftkeyExit;
				txt = qtn_exit;
				}
		};
	}

// -----------------------------------------------------------------------------
//
// About dialog resource.
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_about_query_dialog
	{
	flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
	items=
		{
		DLG_LINE 
			{
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING
				{
				};
			},
		DLG_LINE
			{
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY
				{
				};
			}
		};
	}


// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
RESOURCE TBUF r_command1_text { buf=qtn_command1_text; }


// ---------------------------------------------------------------------------- 
//
// r_localisable_app_info
//
// ---------------------------------------------------------------------------- 
//
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
	{
	short_caption = qtn_caption_string;
	caption_and_icon = 
	CAPTION_AND_ICON_INFO
		{
		caption = qtn_caption_string;

		number_of_icons = 1;
		icon_file = "\\resource\\apps\\Biaofeng_0xE4A1DB93.mif";
		};
	}


//##################################################################


RESOURCE RSS_SIGNATURE
    {
    }
    
RESOURCE TBUF { buf=""; } // default document name


RESOURCE EIK_APP_INFO
    {   
    hotkeys=r_example_hotkeys; 
    menubar=r_example_main_menubar; 
    }


//////////////////////////////////////////////////////////////////////////////
//
// Dialog containing smileys
//
//////////////////////////////////////////////////////////////////////////////

/*
RESOURCE DIALOG r_smiley_dialog
    {
    title="Smileys";
    buttons=R_EIK_BUTTONS_CANCEL_OK;
    items=
        {
        DLG_LINE
            {
            type=ESmileyControl;
            id=ESmileyControlIdData;
            control=SMILEYCONTROL
                {
                mood=EHappy;
                width=200;
                };
            }
        };
    }

*/

//////////////////////////////////////////////////////////////////////////////
//
// Short cut keys
//
//////////////////////////////////////////////////////////////////////////////
RESOURCE HOTKEYS r_example_hotkeys
  {
    control=
            {
            HOTKEY {command=EEikCmdExit;                 key='e';},
            HOTKEY {command=ECreateSmileyDialog;        key='d';}
            };
  }

//////////////////////////////////////////////////////////////////////////////
//
// The menu bar
//
//////////////////////////////////////////////////////////////////////////////
RESOURCE MENU_BAR r_example_main_menubar
    {
    titles=
        {
        MENU_TITLE { menu_pane=r_example_file_menu;   txt="File"; }
        };
    }

//////////////////////////////////////////////////////////////////////////////
//
// The "file" menu pane hung directly from the menu bar
//
//////////////////////////////////////////////////////////////////////////////
RESOURCE MENU_PANE r_example_file_menu
    {
    items=
        {
        MENU_ITEM
            {
            command=ECreateSmileyDialog;
            txt="Create Smiley Dialog";
            },
        MENU_ITEM 
            { 
            command=EEikCmdExit; 
            txt="Exit";
            }
        };
    }

//////////////////////////////////////////////////////////////////////////////
//
// Text resources for info messages
//
//////////////////////////////////////////////////////////////////////////////

RESOURCE TBUF r_example_text_validate             { buf="They can't both be miserable!";}

#define sex_select_item1_text	"男"
#define sex_select_item2_text	"女"

#define area_select_item1_text		"彩铃"
#define area_select_item2_text		"音乐"
#define area_select_item3_text		"视频"
#define area_select_item4_text		"软件"
#define area_select_item5_text		"小说"
#define area_select_item6_text		"游戏"
#define area_select_item7_text		"图片"

RESOURCE ARRAY r_area_select_items
	{
	items =
		{
		LBUF
			{
			txt = area_select_item1_text;//"北京"
			},
		LBUF
			{
			txt = area_select_item2_text;
			},
		LBUF
			{
			txt = area_select_item3_text;
			},
		LBUF
			{
			txt = area_select_item4_text;
			},
		LBUF
			{
			txt = area_select_item5_text;
			},
		LBUF
			{
			txt = area_select_item6_text;
			},
		LBUF
			{
			txt = area_select_item7_text;
			}
		};	  
	}

#define qtn_my_registerview_label6	"地区:"

RESOURCE TBUF32 r_my_registerview_label6
    {
    buf = qtn_my_registerview_label6;
    }
// End of File

⌨️ 快捷键说明

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