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

📄 simpleex.rss

📁 Developing.Software.for.Symbian.OS 书籍配套源码
💻 RSS
字号:


NAME SIMP
#include <eikon.rsg>
#include <eikon.rh>

#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;
//    }

RESOURCE EIK_APP_INFO
	{
	cba=r_simpleEx_cba;
	menubar = r_SimpleEx_menubar;
	}


RESOURCE CBA r_simpleEx_cba
    {
    breadth=80;
    buttons=
        {
        CBA_BUTTON
            {
            id=ESimpleExCommand;
            txt="Start";
            bmpfile="";
            bmpid=0xffff;
            },
			
        CBA_BUTTON
            {
            id=ESimpleExDialog;
            txt="Settings";
            bmpfile="";
            bmpid=0xffff;
            },
        CBA_BUTTON
            {
            txt="";
            bmpfile="";
            bmpid=0xffff;
            },
        CBA_BUTTON
            {
            id=EEikCmdExit;
            txt="Close";
            bmpfile="";
            bmpid=0xffff;
            }
        };
    }

// ---------------------------------------------------------
//   
//   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"; }
		};
}
RESOURCE TBUF r_simple_string {buf="Some String";} 

⌨️ 快捷键说明

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