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

📄 irserial.rss

📁 最新官方例子,图形,描述副,基本控件,通讯协议,等等,
💻 RSS
字号:
/**
*
* @brief Resource file for IrSerial application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME	DILG // 4 letter ID

//  INCLUDES

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

#include "irserial.hrh"
#include "irserial.loc"

#define AKNEXFORM_EDWIN_WIDTH                  10
#define AKNEXFORM_EDWIN_LINES                  10

//  RESOURCE DEFINITIONS

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="IR Print Ex"; }

RESOURCE EIK_APP_INFO
	{

	menubar=r_irserial_menubar;
	}

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


//----------------------------------------------------
//
//    r_irserial4_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_irserial_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = EIrSerialCmdSendIr;
			txt = send_ir_menu_text;
			},
		MENU_ITEM
			{
			command = EIrSerialCmdEdit;
			txt = edit_menu_text;
			},
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = exit_text;
			}
		};
	}


//----------------------------------------------------
//
//		r_irserial_dialog
//		definition of the dialog
//		N.B. The dialog is modeless, as it is the main
//		application window.
//
//----------------------------------------------------
//
RESOURCE DIALOG r_irserial_dialog
	{
	flags=
		EEikDialogFlagNoDrag |
		EEikDialogFlagNoTitleBar |
		EEikDialogFlagFillAppClientRect |
		EEikDialogFlagCbaButtons |
		EEikDialogFlagModeless;
	buttons=R_AVKON_SOFTKEYS_OPTIONS_BACK;
	form = r_infrared_example2_form;
	}


RESOURCE FORM r_infrared_example2_form
    {
    items =
        {
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = ir_example2_form_prompt;
            id = EIrSerialFormText;
            itemflags=EEikDlgItemTakesEnterKey| EEikDlgItemOfferAllHotKeys;
            control = EDWIN
                {
                flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                width = AKNEXFORM_EDWIN_WIDTH;
                lines = AKNEXFORM_EDWIN_LINES;
                maxlength = EIrSerialFormEdwinMaxLength;
                // added to limit expanding in forms.
                // If you want full screen use 6 here
                max_view_height_in_lines = 6;
                // if you have the line above, you must have this.
                // It is calculable from LAF
                base_line_delta = 21;
                };
            }
        };
    }


// ---------------------------------------------------------
//
//    Strings used by the application
//
// ---------------------------------------------------------
//

RESOURCE TBUF r_test_ir_text { buf = TEST_IR_TEXT; }

RESOURCE TBUF r_ir_example2_ok { buf = ir_example2_ok; }
RESOURCE TBUF r_ir_example2_timeout { buf = ir_example2_timeout; }
RESOURCE TBUF r_ir_example2_in_use { buf = ir_example2_timeout; }
RESOURCE TBUF r_ir_example2_error { buf = ir_example2_error; }


// End of File

⌨️ 快捷键说明

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