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

📄 sms3rd.rss

📁 symbian s60 3rd sms handle code
💻 RSS
字号:
/*
============================================================================
 Name        : SMS3rd.rss
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application resource file
============================================================================
*/

//  RESOURCE IDENTIFIER
NAME HEWB    // 4 letter ID


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

#define AKNEXQUERY_EDWIN_WIDTH 5
#define AKNEXQUERY_EDWIN_LINES 1
#define AKNEXQUERY_EDWIN_MAXLENGTH 20


//  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="HEWB";
    }

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


// -----------------------------------------------------------------------------
//
//    Localizable application information
//
// -----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_sms3rd_localisable_app_info
    {
    short_caption = qtn_hewb_short_caption_string;
    caption_and_icon = 
    CAPTION_AND_ICON_INFO
        {
        caption = qtn_hewb_caption_string;

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

// -----------------------------------------------------------------------------
//
//   r_sms3rd_menubar
//   Menubar for SMS3rd example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_sms3rd_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_sms3rd_menu; }
        };
    }

// -----------------------------------------------------------------------------
//
//   r_sms3rd_menu
//   Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_sms3rd_menu
    {
    items =
        {
        // added the new Options menu command here
        MENU_ITEM
                {
                command = ESMS3rdCommand1;
                txt = qtn_hewb_command1;
                },
        MENU_ITEM
                {
                command = EAknSoftkeyExit;
                txt = qtn_hewb_exit;
                }
        };
    }

// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_hewb_command1_text { buf=qtn_hewb_command1_text; }


//Added to get Scratch card number -Kiran 9-3-07
RESOURCE DIALOG r_phone_number_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control = AVKON_DATA_QUERY
                {
                layout = EPhoneLayout;
                label = qtn_phone_query;
                control = EDWIN
                    {
                    flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                    maxlength = 15;
                    };
                };
            }
        };
    }


//Following dialog is added to get SMS Text -Kiran
RESOURCE DIALOG r_sms_text_query
    {
    flags = EGeneralQueryFlags;
//      flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagCbaButtons;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control = AVKON_DATA_QUERY
                {
                layout = EDataLayout;
                label = qtn_sms_text_query;
                control = EDWIN
                    {
                    flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                    width = AKNEXQUERY_EDWIN_WIDTH;
                    // lines = AKNEXQUERY_EDWIN_LINES;
                    maxlength = AKNEXQUERY_EDWIN_MAXLENGTH;
                    // added to limit expanding in forms. 
                    // If you want full screen use 6 here
                    max_view_height_in_lines = AKNEXQUERY_EDWIN_LINES; 
                    // if you have the line above, you must have this. 
                    // It's calculable from LAF
                    base_line_delta = 20; 
                    };
                };
            }
        };
    }

⌨️ 快捷键说明

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