home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / template.zip / MAIN.RC < prev    next >
Text File  |  1998-04-20  |  5KB  |  124 lines

  1. /**************************************************************************
  2.  *  File name  :  main.rc
  3.  *
  4.  *  Description:  This resource file contains the menu and string
  5.  *                table definitions.
  6.  *
  7.  *  Concepts   :  resource script
  8.  *
  9.  *  API's      :  [none]
  10.  *
  11.  *  Required
  12.  *    Files    :  OS2.H, MAIN.H, DLG.H
  13.  *
  14.  *  Copyright (C) 1991, 1993 IBM Corporation
  15.  *
  16.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  17.  *      sample code created by IBM Corporation. This sample code is not
  18.  *      part of any standard or IBM product and is provided to you solely
  19.  *      for  the purpose of assisting you in the development of your
  20.  *      applications.  The code is provided "AS IS", without
  21.  *      warranty of any kind.  IBM shall not be liable for any damages
  22.  *      arising out of your use of the sample code, even if they have been
  23.  *      advised of the possibility of such damages.                                                    *
  24.  *************************************************************************/
  25. #include <os2.h>
  26. #include "main.h"
  27. #include "dlg.h"
  28.  
  29. ICON IDR_MAIN "main.ico"
  30.  
  31. MENU IDR_MAIN
  32. {
  33.     SUBMENU     "~File", IDM_FILE, MIS_TEXT
  34.     {
  35.         MENUITEM    "~New",             IDM_FILENEW,        MIS_TEXT
  36.         MENUITEM    "~Open...",         IDM_FILEOPEN,       MIS_TEXT
  37.         MENUITEM SEPARATOR
  38.         MENUITEM    "~Save",            IDM_FILESAVE,       MIS_TEXT
  39.         MENUITEM    "Save ~as...",      IDM_FILESAVEAS,     MIS_TEXT
  40.     }
  41.  
  42.     SUBMENU     "~Edit", IDM_EDIT, MIS_TEXT
  43.     {
  44.         MENUITEM    "~Undo\tAlt+Backspace",    IDM_EDITUNDO,   MIS_TEXT
  45.         MENUITEM SEPARATOR
  46.         MENUITEM    "Cu~t\tShift+Delete",      IDM_EDITCUT,    MIS_TEXT
  47.         MENUITEM    "~Copy\tCtrl+Insert",      IDM_EDITCOPY,   MIS_TEXT
  48.         MENUITEM    "~Paste\tShift+Insert",    IDM_EDITPASTE,  MIS_TEXT
  49.         MENUITEM SEPARATOR
  50.         MENUITEM    "Cl~ear\tDelete",          IDM_EDITCLEAR,  MIS_TEXT
  51.     }
  52.  
  53. /*
  54.  * Application specific menus go here.
  55.  */
  56.  
  57.     SUBMENU     "~Help",    IDM_HELP,   MIS_TEXT
  58.     {
  59.         MENUITEM    "Help ~index",       IDM_HELPINDEX,      MIS_TEXT
  60.         MENUITEM    "~General help",     IDM_HELPGENERAL,    MIS_TEXT
  61.         MENUITEM    "~Using help",       IDM_HELPUSINGHELP,  MIS_TEXT
  62.         MENUITEM    "~Tutorial",         IDM_HELPTUTORIAL,   MIS_TEXT
  63.         MENUITEM SEPARATOR
  64.         MENUITEM    "~Product information",  IDM_HELPPRODUCTINFO, MIS_TEXT
  65.     }
  66.  
  67. }
  68.  
  69. ACCELTABLE IDR_MAIN
  70. {
  71.     VK_BACKSPACE,   IDM_EDITUNDO,       VIRTUALKEY,    ALT
  72.     VK_DELETE,      IDM_EDITCUT,        VIRTUALKEY,    SHIFT
  73.     VK_INSERT,      IDM_EDITCOPY,       VIRTUALKEY,    CONTROL
  74.     VK_INSERT,      IDM_EDITPASTE,      VIRTUALKEY,    SHIFT
  75.     VK_DELETE,      IDM_EDITCLEAR,      VIRTUALKEY
  76. }
  77.  
  78. STRINGTABLE
  79. {
  80.     IDS_APPNAME                 "Template Sample Program"
  81.     IDS_FILEOPENEXT             "*.TXT"
  82.     IDS_HELPLIBRARYNAME         "TEMPLATE.HLP"
  83.     IDS_OPEN                    "Open"
  84.     IDS_HELPWINDOWTITLE         "Template Help"
  85.     IDS_SAVE                    "Save"
  86.     IDS_UNTITLED                "Untitled"
  87.     IDS_TITLEBARSEPARATOR       " - "
  88.     IDS_OBJECTCLASS             "Object Class"
  89. }
  90.  
  91. MESSAGETABLE
  92. {
  93.     IDMSG_INITFAILED            "Initialization failed."
  94.     IDMSG_MAINWINCREATEFAILED   "Failed to create main window."
  95.     IDMSG_CANNOTOPENINPUTFILE   "Cannot open input file."
  96.     IDMSG_CANNOTOPENOUTPUTFILE  "Cannot open output file."
  97.     IDMSG_CANNOTRUNCOLOR        "Cannot run Color dialog."
  98.     IDMSG_CANNOTGETHPS          "Cannot get HPS for window."
  99.     IDMSG_HELPLOADERROR         "Failed to load help manager."
  100.     IDMSG_CANNOTLOADSTRING      "Failed to load string."
  101.     IDMSG_CANNOTOPENPRINTER     "Failed to open printer."
  102.     IDMSG_HELPDISPLAYERROR      "Failed to display help panel."
  103.     IDMSG_CANNOTLOADEXITLIST    "Cannot load Exit List processor."
  104.     IDMSG_PRINTINITFAILED       "Printer initialization failed."
  105.     IDMSG_OVERWRITEFILE         "The file exists.  Do you want to overwrite it?"
  106.     IDMSG_PRINTERROR            "Error while printing.  Printing aborted."
  107.     IDMSG_UNDOFAILED            "Failed to Undo."
  108.     IDMSG_CANNOTGETFILEINFO     "Error getting file information."
  109.     IDMSG_CANNOTALLOCATEMEMORY  "Not enough memory."
  110.     IDMSG_CANNOTREADFILE        "Error reading file."
  111.     IDMSG_CANNOTWRITETOFILE     "Error writing file."
  112.     IDMSG_CANNOTLOADFONTS       "Cannot load fonts."
  113.     IDMSG_CANNOTGETPAGEINFO     "Error obtaining printer page information."
  114.     IDMSG_YOURTUTORIAL          "Your tutorial can replace this message."
  115. }
  116.  
  117. BITMAP IDR_BITMAP prodinfo.bmp
  118.  
  119. /* include dialog templates created by dialog editor */
  120.  
  121. rcinclude template.dlg
  122. rcinclude help.rc
  123. /***************************  End of main.rc ****************************/
  124.