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

  1. /**************************************************************************
  2.  *  File name  :  img_main.rc
  3.  *
  4.  *  Description:  This resource file contains the main resource definitions
  5.  *                for the PM porting sample.
  6.  *
  7.  *  Concepts   :  menu items, accelerator table, string table
  8.  *
  9.  *  API's      :  [none]
  10.  *
  11.  *  Required
  12.  *    Files    :  OS2.H, IMG_MAIN.H, IMG_DLG.H, IMG_HELP.RC, IMAGE.DLG
  13.  *
  14.  *  Copyright (C) 1991 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. #define INCL_WINSTDFILE
  26. #include <os2.h>
  27.  
  28. #include  "img_main.h"
  29. #include  "img_dlg.h"
  30.  
  31. ICON IDR_MAIN image.ico
  32.  
  33. MENU IDR_MAIN PRELOAD
  34. {
  35.     SUBMENU     "~File",                 IDM_FILE
  36.     {
  37.         MENUITEM    "~Open...",          IDM_FILEOPEN
  38.     }
  39.  
  40. /*
  41.  * Application specific menus go here
  42.  */
  43.     SUBMENU         "~View",             IDM_VIEW
  44.     {
  45.         MENUITEM    "~Detail",           IDM_VIEWDETAIL
  46.  
  47.         MENUITEM    SEPARATOR
  48.         SUBMENU     "~Foreground color",  IDM_VIEWFOREGROUNDCOLOR
  49.         {
  50.             MENUITEM    "~Black",  IDM_VIEWFORECOLORBLACK
  51.             MENUITEM    "~White",  IDM_VIEWFORECOLORWHITE
  52.             MENUITEM    "Bl~ue",   IDM_VIEWFORECOLORBLUE
  53.             MENUITEM    "~Green",  IDM_VIEWFORECOLORGREEN
  54.             MENUITEM    "~Yellow", IDM_VIEWFORECOLORYELLOW
  55.             MENUITEM    "~Red",    IDM_VIEWFORECOLORRED
  56.         }
  57.         SUBMENU     "~Background color", IDM_VIEWBACKGROUNDCOLOR
  58.         {
  59.             MENUITEM    "~Black",  IDM_VIEWBACKCOLORBLACK
  60.             MENUITEM    "~White",  IDM_VIEWBACKCOLORWHITE
  61.             MENUITEM    "Bl~ue",   IDM_VIEWBACKCOLORBLUE
  62.             MENUITEM    "~Green",  IDM_VIEWBACKCOLORGREEN
  63.             MENUITEM    "~Yellow", IDM_VIEWBACKCOLORYELLOW
  64.             MENUITEM    "~Red",    IDM_VIEWBACKCOLORRED
  65.         }
  66.         MENUITEM SEPARATOR
  67.         MENUITEM    "~Save position",    IDM_VIEWSAVEPOSITION
  68.         MENUITEM    "~Restore position", IDM_VIEWRESTOREPOSITION
  69.     }
  70.     SUBMENU         "~Help",             IDM_HELP
  71.     {
  72.        /*
  73.         * allow system to process General Help, Using Help
  74.         * & Help Index
  75.         */
  76.         MENUITEM    "Help ~index...",    IDM_HELPINDEX,    MIS_TEXT
  77.         MENUITEM    "~General help...", IDM_HELPGENERAL,   MIS_TEXT
  78.         MENUITEM    "~Using help...", IDM_HELPUSINGHELP
  79.         MENUITEM SEPARATOR
  80.         MENUITEM    "~Product information",         IDM_HELPPRODUCTINFO
  81.     }
  82. }
  83.  
  84.  
  85. ACCELTABLE IDR_MAIN PRELOAD
  86. BEGIN
  87.     VK_F3, IDM_FILEEXIT, VIRTUALKEY
  88. END
  89.  
  90.  
  91. STRINGTABLE  PRELOAD
  92. BEGIN
  93.     IDS_APPNAME                 "PM Porting Sample Program"
  94.     IDS_FILEOPENEXTENSION       "*.IMG"
  95.     IDS_HELPLIBRARYNAME         "IMAGE.HLP"     /* not to be translated */
  96.     IDS_OPEN                    "Open"
  97.     IDS_HELPWINDOWTITLE         "Image Help"
  98.     IDS_UNTITLED                "Untitled"
  99.     IDS_TITLEBARSEPARATOR       " - "
  100. END
  101.  
  102. MESSAGETABLE
  103. BEGIN
  104.     IDMSG_INITFAILED           "Initalization failed."
  105.     IDMSG_MAINWINCREATEFAILED  "Failed to create main window."
  106.     IDMSG_CANNOTOPENINPUTFILE  "Cannot open input file."
  107.     IDMSG_HELPLOADERROR        "Failed to load help manager."
  108.     IDMSG_CANNOTLOADSTRING     "Failed to load string."
  109.     IDMSG_OUTOFMEMORY          "Out of memory."
  110.     IDMSG_LOADERROR            "Error loading Image File."
  111.     IDMSG_BACKEQFORE           "Foreground color = background color. Is this correct ?"
  112.     IDMSG_CANNOTRUNFILEOPEN    "Cannot run Open dialog."
  113.     IDMSG_HELPDISPLAYERROR     "Failed to display help panel."
  114.     IDMSG_CANNOTLOADEXITLIST   "Cannot load Exit List processor."
  115.     IDMSG_HELPMANAGERERROR     "Help Manager Error occurred - destroying Help instance."
  116.     IDMSG_WARNING              "Warning"
  117. END
  118.  
  119. /* include dialog templates created by dialog box editor */
  120. rcinclude img_help.rc
  121. rcinclude image.dlg
  122. /***************************  End of img_main.rc *************************/
  123.