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

  1. /******************************************************************************
  2. *
  3. *  File Name   : JIGSAW.RC
  4. *
  5. *  Description : Define Jigsaw application's menus and strings
  6. *
  7. *  Concepts    : resource files
  8. *
  9. *  Copyright (C) 1992 IBM Corporation
  10. *
  11. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  12. *      sample code created by IBM Corporation. This sample code is not
  13. *      part of any standard or IBM product and is provided to you solely
  14. *      for  the purpose of assisting you in the development of your
  15. *      applications.  The code is provided "AS IS", without
  16. *      warranty of any kind.  IBM shall not be liable for any damages
  17. *      arising out of your use of the sample code, even if they have been
  18. *      advised of the possibility of such damages.                                                    *
  19. ******************************************************************************/
  20. #define INCL_PM
  21.  
  22. #include <os2.h>
  23. #include "jigsaw.h"
  24.  
  25. /*
  26.  *   Define icons and bitmaps included as resources
  27.  */
  28.  
  29. ICON   IDR_MAIN   "jigsaw.ico"
  30. BITMAP IDB_BACK_1 "prodinfo.bmp"
  31.  
  32. /*
  33.  *   Define accelerator key table
  34.  */
  35.  
  36. ACCELTABLE IDR_MAIN PRELOAD
  37. {
  38.     VK_F6, IDM_SWITCH, VIRTUALKEY
  39. }
  40.  
  41. /*
  42.  *   Define action bar menu with all pull-down submenus
  43.  */
  44.  
  45. MENU IDR_MAIN PRELOAD
  46. BEGIN
  47.     SUBMENU "~File",                           IDM_FILE
  48.     BEGIN
  49.         MENUITEM "~Open...",                   IDM_LOAD
  50.     END
  51.  
  52.     SUBMENU "~Options",                        IDM_OPTIONS
  53.     BEGIN
  54.         SUBMENU "Size",                        IDM_SIZE_MENU,    0, MIA_DISABLED
  55.         BEGIN
  56.             MENUITEM "Small",                  IDM_SIZE_SMALL,   0, MIA_DISABLED
  57.             MENUITEM "Medium",                 IDM_SIZE_MEDIUM,  0, MIA_DISABLED
  58.             MENUITEM "Large",                  IDM_SIZE_LARGE,   0, MIA_DISABLED
  59.             MENUITEM "Full Size",              IDM_SIZE_FULL,    0, MIA_DISABLED
  60.                                                                    | MIA_CHECKED
  61.         END
  62.  
  63.         MENUITEM "~Jumble!",                   IDM_JUMBLE,       0, MIA_DISABLED
  64.     END
  65.  
  66.     SUBMENU "~Help",                           IDM_HELP,            MIS_TEXT
  67.     BEGIN
  68.         MENUITEM "Help ~index",                IDM_HELPINDEX,       MIS_TEXT
  69.         MENUITEM "~General help",              IDM_HELPEXTENDED,    MIS_TEXT
  70.         MENUITEM "~Using help",                IDM_HELPHELPFORHELP, MIS_TEXT
  71.         MENUITEM     SEPARATOR
  72.         MENUITEM "~Product information",       IDM_HELPABOUT,       MIS_TEXT
  73.     END
  74. END
  75.  
  76. /*
  77.  *   Define all strings to be used by this application
  78.  */
  79.  
  80. STRINGTABLE PRELOAD
  81. {
  82.     IDS_TITLEBAR          "Jigsaw"
  83.     IDS_TERMINATE         "OK to end this program?"
  84.     IDS_OPENDLGHEADER     "Open"
  85.     IDS_OPENDLGBUTTON     "~Open"
  86.     IDS_FILEOPENEXTENSION "*.BMP"
  87.     IDS_CANNOTLOADSTRING  "Failed to load resource string"
  88.     IDS_CANNOTRUNFILEDLG  "Failed to initiate open dialog"
  89.     IDS_HELPLIBRARYNAME   "JIGSAW.HLP"     /* not to be translated */
  90.     IDS_HELPWINDOWTITLE   "Jigsaw Help"
  91.     IDS_HELPLOADERROR     "Failed to load Help Manager."
  92.     IDS_HELPDISPLAYERROR  "Failed to display help panel."
  93.     IDS_HELPMANAGERERROR  "Help Manager Error occurred - destroying help instance."
  94.     IDS_OPTIONJUMBLE      "Choose option Jumble! to start the puzzle"
  95.     IDS_LOADBITMAP        "Choose File Open to load the puzzle"
  96.     IDS_ERRORMSG          "%s encountered in file %s line %ld"
  97.     IDS_UNKNOWNMSG        "Unknown Error encounted in file %s line %ld"
  98.     IDS_ERROR_READ        "Error reading file."
  99.     IDS_ERROR_OUTOFMEMORY "Error - out of memory"
  100.     IDS_ERROR_TITLE       "Error Message"
  101. }
  102.  
  103. /*
  104.  *   Include additional resource files and dialog files here
  105.  */
  106.  
  107. rcinclude jighelp.rc
  108. rcinclude jigsaw.dlg
  109.