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

📄 simplegrid.rss

📁 Symbian S60 2nd Grid example
💻 RSS
字号:
/**
* 
* @brief Resource file for SimpleGrid application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME    GRI1 // 4 letter ID

//  INCLUDES

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

#include "SimpleGrid.hrh"
#include "SimpleGrid.loc"

//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="SimpleGrid"; }

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


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


//----------------------------------------------------
//   
//    r_simplegrid_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_simplegrid_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = EXIT_TEXT;
			}
		};
	}

// ---------------------------------------------------------
//	r_simplegrid_games_grid
//	The games grid
//
// ---------------------------------------------------------
//
RESOURCE GRID R_SIMPLEGRID_GAMES_GRID
	{
	array_id = r_simplegrid_games_grid_items;
	flags = EAknListBoxSelectionGrid;
	style=r_simplegrid_games_grid_style;
	}

// ---------------------------------------------------------
//		r_simplegrid_games_grid_items
//		The games grid items
//
// ---------------------------------------------------------
//
RESOURCE ARRAY r_simplegrid_games_grid_items
	{
	items =
		{
		LBUF
			{
			txt = GAMES_GRID_ITEM1_TEXT;
			},
		LBUF
			{
			txt = GAMES_GRID_ITEM2_TEXT;
			},
		LBUF
			{
			txt = GAMES_GRID_ITEM3_TEXT;
			},
		LBUF
			{
			txt = GAMES_GRID_ITEM4_TEXT;
			},
		LBUF
			{
			txt = GAMES_GRID_ITEM5_TEXT;
			},
		LBUF
			{
			txt = GAMES_GRID_ITEM6_TEXT;
			},
		LBUF
			{
			txt = GAMES_GRID_ITEM7_TEXT;
			}

		};	  
	}



RESOURCE GRID_STYLE r_simplegrid_games_grid_style
	{
	layoutflags=EAknGridHorizontalOrientation| EAknGridLeftToRight | EAknGridTopToBottom;
	primaryscroll= EAknGridFollowsItemsAndLoops; // horizontal scroll
	secondaryscroll=EAknGridFollowsItemsAndLoops; // vertical scroll
	itemsinprimaryorient=3; // number of items horizontally per screen
	itemsinsecondaryorient=2; // number of items vertically per screen
	gapwidth=5;
	gapheight=5;
	height = 68;
	width = 50; 

	}



// ---------------------------------------------------------
//   
//    Strings used by the application
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_icon_file_name
	{ 
	buf = ICON_FILE_NAME; 
	}



// End of File

⌨️ 快捷键说明

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