home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / pm / print / prtsamp.rc < prev    next >
Text File  |  1999-05-11  |  7KB  |  156 lines

  1. #include <os2.h>
  2. #include "prtsdlg.h"
  3. #include "prtshlp.h"
  4.  
  5.  
  6. MENU ID_PRTSAMP
  7.   BEGIN
  8.     SUBMENU      "~File",                       IDM_FILE,           MIS_TEXT
  9.       BEGIN
  10.         MENUITEM "~Open...\tCtrl+O",            IDM_OPEN,           MIS_TEXT
  11.         MENUITEM "Printer ~Setup...\tCtrl+P",   IDM_SETUP,          MIS_TEXT
  12.         MENUITEM "~Print...\tSh+Print Screen",  IDM_PRINT,          MIS_TEXT
  13.       END
  14.  
  15.     SUBMENU      "~Options",                    IDM_OPTIONS,        MIS_TEXT
  16.       BEGIN
  17.         MENUITEM "Page ~setup...\tCtrl+S",      IDM_PAGESETUP,      MIS_TEXT
  18.         MENUITEM "Set ~font...\tCtrl+F",        IDM_SETFONT,        MIS_TEXT
  19.         MENUITEM "Next page\tPgDn",             IDM_PAGEDOWN,       MIS_TEXT
  20.         MENUITEM "View half size\tDown",        IDM_VIEWHALF,       MIS_TEXT
  21.         MENUITEM "View full size\tUp",          IDM_VIEWFULL,       MIS_TEXT
  22.       END
  23.     SUBMENU         "~Help",                    IDM_HELP
  24.       BEGIN
  25.         MENUITEM    "Help ~index",              IDM_HELPINDEX,      MIS_TEXT
  26.         MENUITEM    "~General help",            IDM_HELPEXTENDED,   MIS_TEXT
  27.         MENUITEM    "~Using help",              IDM_USINGHELP,      MIS_TEXT
  28.         MENUITEM "",                            0,                  MIS_SEPARATOR
  29.         MENUITEM "~Product Information",        IDM_PRODINFO,       MIS_TEXT
  30.       END
  31.   END
  32.  
  33. ICON ID_PRTSAMP prtsamp.ico
  34.  
  35. /* bitmap resource for product info dialog */
  36. BITMAP IDR_PRODINFO  "prodinfo.bmp"
  37.  
  38.  
  39. HELPTABLE       ID_PRTSAMP
  40. BEGIN
  41.  
  42. /*              Window ID        Help table ID    Panel ID        */
  43.     HELPITEM    ID_PRTSAMP,      ID_PRTSAMP,      PANEL_HELPGENERAL
  44.     HELPITEM    IDD_FILETYPE,    IDD_FILETYPE,    PANEL_FILETYPE
  45. END
  46.  
  47.  
  48. HELPSUBTABLE ID_PRTSAMP
  49. BEGIN
  50.  
  51. /*                  SubWindow ID            Panel ID             */
  52.     HELPSUBITEM     ID_PRTSAMP,             PANEL_HELPGENERAL
  53.     HELPSUBITEM     IDM_FILE,               PANEL_MENUFILE
  54.     HELPSUBITEM     IDM_OPTIONS,            PANEL_MENUOPTIONS
  55.     HELPSUBITEM     IDM_HELP,               PANEL_MENUHELP
  56.  
  57. /* FILE */
  58.     HELPSUBITEM     IDM_OPEN,               PANEL_OPEN
  59.     HELPSUBITEM     IDM_SETUP,              PANEL_SETUP
  60.     HELPSUBITEM     IDM_PRINT,              PANEL_PRINT
  61.  
  62. /* OPTIONS */
  63.     HELPSUBITEM     IDM_SETFONT,            PANEL_SETFONT
  64.     HELPSUBITEM     IDM_PAGEDOWN,           PANEL_PAGEDOWN
  65.     HELPSUBITEM     IDM_VIEWHALF,           PANEL_VIEWHALF
  66.     HELPSUBITEM     IDM_VIEWFULL,           PANEL_VIEWFULL
  67.  
  68. /* HELP    */
  69.     HELPSUBITEM     IDM_HELPINDEX,          PANEL_HELPINDEX
  70.     HELPSUBITEM     IDM_HELPEXTENDED,       PANEL_HELPEXTENDED
  71.     HELPSUBITEM     IDM_USINGHELP,          PANEL_USINGHELP
  72. END
  73.  
  74. HELPSUBTABLE IDD_FILETYPE
  75. BEGIN
  76.     HELPSUBITEM     IDC_CK_TEXT,            PANEL_FILETYPE
  77.     HELPSUBITEM     IDC_CK_METAFILE,        PANEL_FILETYPE
  78.     HELPSUBITEM     IDC_CK_BITMAP,          PANEL_FILETYPE
  79. END
  80.  
  81. HELPSUBTABLE IDD_QUERYPRINT
  82. BEGIN
  83.     HELPSUBITEM     IDD_QPTEXT,             PANEL_QUERYPRINT
  84.     HELPSUBITEM     IDD_QPLISTBOX,          PANEL_QUERYPRINT
  85.     HELPSUBITEM     IDD_QPJOBPROP,          PANEL_QUERYPRINT
  86. END
  87.  
  88. HELPSUBTABLE IDD_PRINT
  89. BEGIN
  90.     HELPSUBITEM     IDD_PRTCOPIES,          PANEL_PRINTDLG
  91.     HELPSUBITEM     IDD_PRTSELECT,          PANEL_PRINTDLG
  92.     HELPSUBITEM     IDD_PRTALL,             PANEL_PRINTDLG
  93.     HELPSUBITEM     IDD_PRTFROM,            PANEL_PRINTDLG
  94.     HELPSUBITEM     IDD_PRTTO,              PANEL_PRINTDLG
  95.     HELPSUBITEM     IDD_PRTFIRSTPAGE,       PANEL_PRINTDLG
  96.     HELPSUBITEM     IDD_PRTLASTPAGE,        PANEL_PRINTDLG
  97.     HELPSUBITEM     IDD_PRTPREVIEW,         PANEL_PRINTDLG
  98.     HELPSUBITEM     IDD_PRTPAGEGROUP,       PANEL_PRINTDLG
  99.     HELPSUBITEM     IDD_PRTPRINTER,         PANEL_PRINTDLG
  100.     HELPSUBITEM     IDD_PRTDOCUMENT,        PANEL_PRINTDLG
  101. END
  102.  
  103.  
  104.  
  105. STRINGTABLE
  106. BEGIN
  107.   PROGRAM_TITLE,                "Print Sample"
  108.   PROGRAM_AUTHORS               "Original Print Sample written by Eric Brown and Monte Copeland.
  109.                                  The Print Sample was improved and extended by Michael Perks."
  110.  
  111.   PRINT_ABORT_MSG               "Aborting..."
  112.   PRINT_PAGE_MSG                "Printing page %d..."
  113.   PRINT_SCAN_MSG                "Scanning to page %d..."
  114.  
  115.   ERRMSG_BAD_BITMAP             "The file you tried to load is not a valid bitmap."
  116.   ERRMSG_BITMAP_NOT_SUPPORTED,  "This bitmap format is not supported."
  117.   ERRMSG_CLOSE_QUESTION,        "Close the application?"
  118.   ERRMSG_DEFAULT_FONT,          "The font you have chosen is not available. A default font has been chosen instead."
  119.   ERRMSG_FILE_NOT_FOUND,        "File not found."
  120.   ERRMSG_FORM_CHANGE            "Form %s that you previously chose is no longer available. A new form %s has been used to replace it."
  121.   ERRMSG_NOTHING_PRINTED        "No pages were printed. Select different pages to print."
  122.   ERRMSG_NO_ENUMERATE,          "Unable to enumerate print queues."
  123.   ERRMSG_NO_HELP,               "Help file not found."
  124.   ERRMSG_NO_MEMORY,             "Out of memory."
  125.   ERRMSG_NO_QUEUES_DEFINED,     "There are no printers defined."
  126.   ERRMSG_READ_ERROR,            "File read error."
  127.   ERRMSG_WRONG_FORM,            "You have chosen to print on the form named %s. It does not match the form selected in the printer job properties."
  128.   ERRMSG_NEW_DRIVER_VERSION,    "The printer driver version has changed. The job properties will default to those from the printer object."
  129.   ERRMSG_DEVICE_CHANGED         "The printer device name has changed. The job properties will default to those from the printer object."
  130.  
  131. END
  132.  
  133.  
  134. ACCELTABLE ID_PRTSAMP
  135.   BEGIN
  136.     "O",          IDM_OPEN,                 CONTROL
  137.     "o",          IDM_OPEN,                 CONTROL
  138.     "P",          IDM_SETUP,                CONTROL
  139.     "p",          IDM_SETUP,                CONTROL
  140.     "S",          IDM_PAGESETUP,            CONTROL
  141.     "s",          IDM_PAGESETUP,            CONTROL
  142.     "F",          IDM_SETFONT,              CONTROL
  143.     "f",          IDM_SETFONT,              CONTROL
  144.     "A",          IDM_AUTHORS,              CONTROL, SHIFT
  145.     "a",          IDM_AUTHORS,              CONTROL, SHIFT
  146.     VK_PRINTSCRN, IDM_PRINT,                VIRTUALKEY, SHIFT
  147.     VK_PAGEDOWN,  IDM_PAGEDOWN,             VIRTUALKEY
  148.     VK_UP,        IDM_VIEWFULL,             VIRTUALKEY
  149.     VK_DOWN,      IDM_VIEWHALF,             VIRTUALKEY
  150.   END
  151.  
  152.  
  153. rcinclude prtsamp.dlg
  154.  
  155.  
  156.