home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / devnews / vol2 / sample3 / sty_main.rc < prev    next >
Encoding:
Text File  |  1994-03-05  |  8.4 KB  |  211 lines

  1. /*************************************************************************
  2. *
  3. *  File Name   : STY_MAIN.RC
  4. *
  5. *  Description : This module contains resources used in the Style Sample
  6. *
  7. *  Copyright (C) 1992 IBM Corporation
  8. *
  9. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  10. *      sample code created by IBM Corporation. This sample code is not
  11. *      part of any standard or IBM product and is provided to you solely
  12. *      for  the purpose of assisting you in the development of your
  13. *      applications.  The code is provided "AS IS", without
  14. *      warranty of any kind.  IBM shall not be liable for any damages
  15. *      arising out of your use of the sample code, even if they have been
  16. *      advised of the possibility of such damages.                                                    *
  17. *
  18. *************************************************************************/
  19. #include <os2.h>
  20. #include "sty_main.h"
  21. #include "sty_dlg.h"
  22.  
  23. ICON IDR_MAIN sty_main.ico
  24. ICON IDR_ICON1 sty_ico1.ico
  25. ICON IDR_ICON2 sty_ico2.ico
  26. ICON IDR_ICON3 sty_ico3.ico
  27. ICON IDR_ICON4 sty_ico4.ico
  28.  
  29. BITMAP IDR_BITMAP prodinfo.bmp
  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.    SUBMENU     "~Options", IDM_OPTIONS, MIS_TEXT
  54.    {
  55.       SUBMENU     "~Foreground color",  IDM_OPTIONSFORECOLOR, MIS_TEXT
  56.       {
  57.          MENUITEM    "~Black",   IDM_OPTIONSFORECOLORBLACK,  MIS_TEXT
  58.          MENUITEM    "B~lue",    IDM_OPTIONSFORECOLORBLUE,   MIS_TEXT
  59.          MENUITEM    "~Red",     IDM_OPTIONSFORECOLORRED,    MIS_TEXT
  60.          MENUITEM    "~Default", IDM_OPTIONSFORECOLORDEFAULT,MIS_TEXT
  61.       }
  62.  
  63.       SUBMENU     "~Background color",  IDM_OPTIONSBACKCOLOR, MIS_TEXT
  64.       {
  65.          MENUITEM    "~Yellow",  IDM_OPTIONSBACKCOLORYELLOW, MIS_TEXT
  66.          MENUITEM    "~Pink",    IDM_OPTIONSBACKCOLORPINK,   MIS_TEXT
  67.          MENUITEM    "~Cyan",    IDM_OPTIONSBACKCOLORCYAN,   MIS_TEXT
  68.          MENUITEM    "~Default", IDM_OPTIONSBACKCOLORDEFAULT,MIS_TEXT
  69.       }
  70.  
  71.       MENUITEM SEPARATOR
  72.       MENUITEM    "F~ont...\tCtrl+F",      IDM_OPTIONSFONT,     MIS_TEXT
  73.    }
  74.  
  75.   SUBMENU     "~Message",    IDM_DEMO, MIS_TEXT
  76.   {
  77.      MENUITEM     "~Send",     IDM_DEMODLG,    MIS_TEXT
  78.      MENUITEM    "~Broadcast ",IDM_DEMOBROADCASTDLG,    MIS_TEXT
  79.   }
  80.  
  81.   SUBMENU     "~Help",    IDM_HELP,   MIS_TEXT
  82.   {
  83.      MENUITEM    "Help ~index",          IDM_HELPINDEX,      MIS_TEXT
  84.      MENUITEM    "~General help",        IDM_HELPGENERAL,    MIS_TEXT
  85.      MENUITEM    "~Keys help",           IDM_HELPKEYS,       MIS_TEXT
  86.      MENUITEM    "~Using help",          IDM_HELPUSINGHELP,  MIS_TEXT
  87.      MENUITEM SEPARATOR
  88.      MENUITEM    "~Product information", IDM_HELPPRODINFO,   MIS_TEXT
  89.   }
  90. }
  91.  
  92. MENU    IDD_CONTAINERMENU
  93. {
  94.    SUBMENU  "~Views", IDM_VIEWS
  95.    {
  96.       MENUITEM "ICON",      IDM_ICON,      MIS_TEXT
  97.       MENUITEM "NAME",      IDM_NAME,      MIS_TEXT
  98.       MENUITEM "TEXT",      IDM_TEXT,      MIS_TEXT
  99.       MENUITEM "DETAIL",    IDM_DETAIL,    MIS_TEXT
  100.     }
  101. }
  102.  
  103. ACCELTABLE IDR_MAIN
  104. {
  105.    VK_F3,          IDM_EXIT,           VIRTUALKEY
  106.    VK_BACKSPACE,   IDM_EDITUNDO,       VIRTUALKEY,    ALT
  107.    VK_DELETE,      IDM_EDITCUT,        VIRTUALKEY,    SHIFT
  108.    VK_INSERT,      IDM_EDITCOPY,       VIRTUALKEY,    CONTROL
  109.    VK_INSERT,      IDM_EDITPASTE,      VIRTUALKEY,    SHIFT
  110.    VK_DELETE,      IDM_EDITCLEAR,      VIRTUALKEY
  111.    "c",    IDM_OPTIONSFORECOLOR,    CHAR,  CONTROL
  112.    "f",    IDM_OPTIONSFONT,         CHAR,  CONTROL
  113. }
  114.  
  115. STRINGTABLE
  116. {
  117.    IDS_APPNAME                 "Style"
  118.    IDS_FILEOPENEXT             "*.TXT"
  119.    IDS_HELPLIBRARYNAME         "STYLE.HLP"
  120.    IDS_OPENDLGTITLE            "Open"
  121.    IDS_OPENDLGBUTTON           "~Open"
  122.    IDS_HELPWINDOWTITLE         "Style Help"
  123.    IDS_SAVEDLGTITLE            "Save"
  124.    IDS_SAVEDLGBUTTON           "Save"
  125.    IDS_UNTITLED                "Untitled"
  126.    IDS_TITLEBARSEPARATOR       " - "
  127.    IDS_FONTDLGTITLE            "Font"
  128.    IDS_PPFONTPOINT             "8."
  129.    IDS_DEMOMSGBOXOK            "Ok button"
  130.    IDS_DEMOMSGBOXOKCANCEL      "Ok and Cancel buttons"
  131.    IDS_DEMOMSGBOXYESNO         "Yes and No buttons"
  132.    IDS_DEMOMSGBOXYESNOCANCEL   "Yes, No, and Cancel buttons"
  133.    IDS_DEMOMSGBOXRETRYCANCEL   "Retry and Cancel buttons"
  134.    IDS_DEMOMSGBOXABORT         "Abort, Retry, and Ignore buttons"
  135.    IDS_DEMOMSGBOXENTER         "Enter button"
  136.    IDS_DEMOMSGBOXENTERCANCEL   "Enter and Cancel buttons"
  137.    IDS_DEMOMSGBOXQUERY         "Query icon"
  138.    IDS_DEMOMSGBOXWARNING       "Warning icon"
  139.    IDS_DEMOMSGBOXINFO          "Information icon"
  140.    IDS_DEMOMSGBOXCRITICAL      "Action icon"
  141.    IDS_DEMOMSGBOXAPP           "Application modal message box"
  142.    IDS_DEMOMSGBOXSYS           "System modal message box"
  143.    IDS_DEMOMSGBOXHELP          "Help button"
  144.  
  145.    IDS_LISTBOX1                "Test Text 1"
  146.    IDS_LISTBOX2                "Test Text 2"
  147.    IDS_LISTBOX3                "Test Text 3"
  148.    IDS_LISTBOX4                "Test Text 4"
  149.    IDS_LISTBOX5                "Test Text 5"
  150.    IDS_LISTBOX6                "Test Text 6"
  151.    IDS_LISTBOX7                "Test Text 7"
  152.    IDS_LISTBOX8                "Test Text 8"
  153.    IDS_LISTBOX9                "Test Text 9"
  154.    IDS_LISTBOX10               "Test Text 10"
  155.  
  156.    IDS_BLUE                    "Blue"
  157.    IDS_RED                     "Red"
  158.    IDS_PINK                    "Pink"
  159.    IDS_GREEN                   "Green"
  160.    IDS_CYAN                    "Cyan"
  161.    IDS_YELLOW                  "Yellow"
  162.    IDS_DARKGRAY                "Dark Gray"
  163.    IDS_DARKBLUE                "Dark Blue"
  164.    IDS_DARKRED                 "Dark Red"
  165.    IDS_DARKPINK                "Dark Pink"
  166.    IDS_DARKGREEN               "Dark Green"
  167.    IDS_DARKCYAN                "Dark Cyan"
  168.    IDS_BROWN                   "Brown"
  169.    IDS_PALEGRAY                "Pale Gray"
  170.    IDS_DEFAULT                 "Default"
  171.    IDS_WARNING                 "Warning"
  172. }
  173.  
  174. MESSAGETABLE
  175. {
  176.    IDMSG_INITFAILED            "Initalization failed."
  177.    IDMSG_MAINWINCREATEFAILED   "Failed to create main window."
  178.    IDMSG_CANNOTOPENINPUTFILE   "Cannot open input file."
  179.    IDMSG_CANNOTOPENOUTPUTFILE  "Cannot open output file."
  180.    IDMSG_CANNOTRUNCOLOR        "Cannot run Color dialog."
  181.    IDMSG_CANNOTGETHPS          "Cannot get HPS for window."
  182.    IDMSG_HELPLOADERROR         "Failed to load help manager."
  183.    IDMSG_CANNOTLOADSTRING      "Failed to load string."
  184.    IDMSG_CANNOTOPENPRINTER     "Failed to open printer."
  185.    IDMSG_HELPDISPLAYERROR      "Failed to display help panel."
  186.    IDMSG_CANNOTLOADEXITLIST    "Cannot load Exit List processor."
  187.    IDMSG_OVERWRITEFILE         "The file exists.  Do you want to overwrite it?"
  188.    IDMSG_FILECHANGED           "The file has changed.  Do you want to save it?"
  189.    IDMSG_UNDOFAILED            "Failed to Undo."
  190.    IDMSG_CANNOTGETFILEINFO     "Error getting file information."
  191.    IDMSG_CANNOTALLOCATEMEMORY  "Not enough memory."
  192.    IDMSG_CANNOTREADFILE        "Error reading file."
  193.    IDMSG_CANNOTWRITETOFILE     "Error writing file."
  194.    IDMSG_CANNOTLOADFONTS       "Cannot load fonts."
  195.    IDMSG_CANNOTSETPP           "Error setting presentation parameters."
  196.    IDMSG_ISOFAILED             "The font selected is not compliant with the"
  197.                                " ISO 9241 standard on the IBM 9515, 9517, or"
  198.                                " 9518 displays."
  199.    IDMSG_ISONOTTESTED          "The font selected is not tested for compliance"
  200.                                " with the ISO 9241 standard."
  201.  
  202.    IDMSG_VIRTDDNOTLOADED       "The virtual device driver is not loaded. Please load and reboot."
  203.    IDMSG_UNABLETOSEND          "Currently unable to send message."
  204.  
  205. }
  206.  
  207. /* include dialog templates created by dialog box editor */
  208.  
  209. rcinclude sty_help.rc
  210. rcinclude sty_main.dlg
  211.