simpleex.rss
来自「Developing.Software.for.Symbian.OS 书籍配套源」· RSS 代码 · 共 132 行
RSS
132 行
/* Copyright (c) 2003, Nokia. All rights reserved */
NAME SIMP
#include <eikon.rsg>
#include <eikon.rh>
//#include <avkon.rh>
//#include <avkon.rsg>
#include "SimpleEx.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_SimpleEx_menubar;
}
// ---------------------------------------------------------
//
// r_SimpleEx_menubar
// Menubar for SimpleEx example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_SimpleEx_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_SimpleEx_menu; txt="Simple Menu";
}
};
}
// ---------------------------------------------------------
//
// r_SimpleEx_menu
// Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_SimpleEx_menu
{
items =
{
MENU_ITEM
{
command = ESimpleExCommand;
txt = "Start";
},
MENU_ITEM
{
command = ESimpleExDialog;
txt = "Settings";
}
};
}
RESOURCE DIALOG r_SimpleEx_dialog
{
title="SimpleEx Settings";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtEdwin;
prompt="Text";
id=ESimpleExText;
control=EDWIN {width=25; maxlength=256;};
},
DLG_LINE
{
type=EEikCtChoiceList; // Identifies, to the control factory, the type
// of control to construct.
prompt="Text Color";
id=ESimpleExColor;
control=CHOICELIST // Struct for further initialisation of control.
{
array_id=r_color_list;
}; // End of control.
}
};
}
RESOURCE ARRAY r_color_list
{
items=
{
LBUF { txt="Black"; },
LBUF { txt="Red"; },
LBUF { txt="Green"; },
LBUF { txt="Blue"; }
};
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?