home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / PM / GRAPHICS / GRAPHIC.RC < prev    next >
Text File  |  1994-11-17  |  4KB  |  108 lines

  1. /************ GRAPHIC C Sample Program Resource File (.RC) ******************
  2.  *  Copyright (C) 1991, 1993 IBM Corporation
  3.  *
  4.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  5.  *      sample code created by IBM Corporation. This sample code is not
  6.  *      part of any standard or IBM product and is provided to you solely
  7.  *      for  the purpose of assisting you in the development of your
  8.  *      applications.  The code is provided "AS IS", without
  9.  *      warranty of any kind.  IBM shall not be liable for any damages
  10.  *      arising out of your use of the sample code, even if they have been
  11.  *      advised of the possibility of such damages.                                                    *
  12.  ******************************************************************************/
  13. #include "os2.h"
  14. #include "graphic.h"
  15.  
  16. /* application menu bar */
  17.  
  18. MENU ID_GRAPHIC
  19. BEGIN
  20.     SUBMENU     "~File",   IDM_FILE, MIS_TEXT
  21.     BEGIN
  22.         MENUITEM   "~Open MetaFile",       IDM_F_METAFILE_LOAD, MIS_TEXT
  23.         MENUITEM SEPARATOR
  24.         MENUITEM   "~Print",               IDM_F_PRINT, MIS_TEXT
  25.     END
  26.  
  27.     SUBMENU     "~Help",                   IDM_H_HELP
  28.     BEGIN
  29.         MENUITEM   "Help ~index",       IDM_H_HELPINDEX, MIS_TEXT
  30.         MENUITEM   "~General help",     IDM_H_HELPGEN,   MIS_TEXT
  31.         MENUITEM   "~Using help",       IDM_H_HELPUSING, MIS_TEXT
  32.         MENUITEM   "~Keys help",        IDM_H_HELPKEYS,  MIS_TEXT
  33.         MENUITEM   "",                  -1,              MIS_SEPARATOR
  34.         MENUITEM   "~Product information",IDM_H_ABOUT,   MIS_TEXT
  35.     END
  36. END
  37.  
  38.  
  39. ICON ID_GRAPHIC graphic.ico
  40. BITMAP PINFO_ICON "prodinfo.bmp"
  41.  
  42.  /*  Help table definition                                       */
  43. HELPTABLE   ID_GRAPHIC
  44. {
  45.     HELPITEM    ID_GRAPHIC,         SUBTABLE_MAIN,         PANEL_MAIN
  46.     HELPITEM    ID_ABOUT,           SUBTABLE_INFO,         PANEL_INFO
  47. }
  48.  
  49.  /*  Main window subtable, includes menu item help               */
  50. HELPSUBTABLE SUBTABLE_MAIN
  51. SUBITEMSIZE     2
  52. {
  53.     HELPSUBITEM     IDM_FILE,                   PANEL_FILE
  54.     HELPSUBITEM     IDM_F_METAFILE_LOAD,        PANEL_FILELOAD
  55.     HELPSUBITEM     IDM_F_PRINT,                PANEL_PRINT
  56.  
  57.     HELPSUBITEM     IDM_H_HELP,                 PANEL_HELP
  58.     HELPSUBITEM     IDM_H_HELPINDEX,            PANEL_HELPINDEX
  59.     HELPSUBITEM     IDM_H_HELPGEN,              PANEL_HELPGENERAL
  60.     HELPSUBITEM     IDM_H_HELPUSING,            PANEL_HELPUSING
  61.     HELPSUBITEM     IDM_H_ABOUT,                PANEL_HELPABOUT
  62. }
  63.  
  64.  /*  Message box help subtable                                   */
  65. HELPSUBTABLE SUBTABLE_INFO
  66. SUBITEMSIZE     2
  67. {
  68.     HELPSUBITEM     DLG_OK,                     PANEL_INFO_OK
  69. }
  70.  
  71. ACCELTABLE ID_GRAPHIC
  72.   BEGIN
  73.     "G", IDM_F_GPI, CONTROL
  74.     "g", IDM_F_GPI, CONTROL
  75.     "M", IDM_F_METAFILE, CONTROL
  76.     "m", IDM_F_METAFILE, CONTROL
  77.     "P", IDM_F_PRINT, CONTROL
  78.     "p", IDM_F_PRINT, CONTROL
  79.     "O", IDM_O_PRINTPROPERTIES, CONTROL
  80.     "o", IDM_O_PRINTPROPERTIES, CONTROL
  81.   END
  82.  
  83. STRINGTABLE
  84.   BEGIN
  85.         ERRMSG_REGISTER_FAILED, "Cannot register class for Information window."
  86.         ERRMSG_PRINT_THREAD,    "Cannot create Print-Thread."
  87.         ERRMSG_CREATE_WINDOW,   "Window creation failed!"
  88.         ERRMSG_INFO_WINDOW,     "Cannot create Information window."
  89.         ERRMSG_DRAW_THREAD,     "Cannot create Draw-Thread."
  90.         ERRMSG_NO_HELP,         "No help is available."
  91.         ERRMSG_METAFILE_FAILED, "Cannot load metafile \x22<t>\x22;"
  92.         ERRMSG_HELP_TERMINATED, "Help Terminated Due to Error"
  93.         ERRMSG_HELP_ERROR,      "Help Error Occurred, RC = "
  94.         ERRMSG_DRAWTHR_MSG2,    "Error while drawing metafile "
  95.         ERRMSG_HELPDISPLAYERROR,"Failed to display help panel."
  96.         IDS_ERRORMSG             "%s encountered in file %s line %ld"
  97.         IDS_UNKNOWNMSG           "Unknown Error encountered in file %s line %ld"
  98.  
  99.         APPLICATION_NAME,       "Graphic Sample"
  100.         FILEDLG_META_HEADER,    "Open Metafile"
  101.         TEXT_SPOOLING_MESSAGE,  "Spooling..."
  102.         TEXT_DRAWTHR_SIZEGPI,   "Sizing GPI, one moment please..."
  103.         TEXT_DRAWTHR_SIZEMETA,  "Sizing Metafile, one moment please..."
  104.   END
  105.  
  106. rcinclude graphic.dlg
  107. /************************** End of GRAPHIC.RC ******************************/
  108.