home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / tktools.zip / typefast / typefast.rc < prev   
Text File  |  1992-07-17  |  3KB  |  89 lines

  1. /*********** HELLO  C Sample Program Resource Script File (.RC) *************
  2.  *
  3.  *  The window resources used by an application are defined in a resource
  4.  *  script file .RC.  This file is compiled by the resource compiler to
  5.  *  produce an executable-format file.
  6.  *  The definitions are either statements which define resources or
  7.  *  references to other files containing resources.
  8.  *
  9.  *  In this resource script file:
  10.  *  ------------------------------------------------------------------------
  11.  *  Statement:                        References:
  12.  *  MENU  ID_WINDOW PRELOAD           #include <os2.h>
  13.  *  ACCELTABLE ID_WINDOW PRELOAD      #include "hello.h"
  14.  *  STRINGTABLE PRELOAD               ICON ID_WINDOW hello.ico
  15.  *
  16.  *  Copyright (C) 1991 IBM Corporation
  17.  *
  18.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  19.  *      sample code created by IBM Corporation. This sample code is not
  20.  *      part of any standard or IBM product and is provided to you solely
  21.  *      for  the purpose of assisting you in the development of your
  22.  *      applications.  The code is provided "AS IS", without
  23.  *      warranty of any kind.  IBM shall not be liable for any damages
  24.  *      arising out of your use of the sample code, even if they have been
  25.  *      advised of the possibility of such damages.                                                    *
  26.  ******************************************************************************/
  27.  
  28. #include <os2.h>
  29. #include "typefast.h"
  30.  
  31. ICON    ID_WINDOW typefast.ico
  32.  
  33. MENU    ID_WINDOW PRELOAD
  34. BEGIN
  35.   SUBMENU "~Options", ID_OPTIONS
  36.   BEGIN
  37.     MENUITEM "~Easy   \tCtrl+E", ID_EASY, MIS_TEXT,MIA_CHECKED
  38.     MENUITEM "~Medium \tCtrl+M", ID_MEDIUM, MIS_TEXT
  39.     MENUITEM "~Hard   \tCtrl+H", ID_HARD, MIS_TEXT
  40.     MENUITEM "~Restart\tCtrl+R", ID_RESTART, MIS_TEXT
  41.     MENUITEM "~Sound  \tCtrl+S", ID_SOUND, MIS_TEXT, MIA_CHECKED
  42.     MENUITEM "Respect ~Case\tCtrl+C", ID_CASE, MIS_TEXT
  43.     MENUITEM "~About  \tCtrl+A", ID_ABOUT, MIS_TEXT
  44.   END
  45. END
  46.  
  47. ACCELTABLE ID_WINDOW PRELOAD
  48. BEGIN
  49.   "e",   ID_EASY,              CONTROL
  50.   "m",   ID_MEDIUM,            CONTROL
  51.   "h",   ID_HARD,              CONTROL
  52.   "a",   ID_ABOUT,             CONTROL
  53.   "r",   ID_RESTART,           CONTROL
  54.   "s",   ID_SOUND,             CONTROL
  55.   "c",   ID_CASE,              CONTROL
  56.   "E",   ID_EASY,              CONTROL
  57.   "M",   ID_MEDIUM,            CONTROL
  58.   "H",   ID_HARD,              CONTROL
  59.   "A",   ID_ABOUT,             CONTROL
  60.   "R",   ID_RESTART,           CONTROL
  61.   "S",   ID_SOUND,             CONTROL
  62.   "S",   ID_CASE,              CONTROL
  63.   "e",   ID_EASY,              CONTROL, SHIFT
  64.   "m",   ID_MEDIUM,            CONTROL, SHIFT
  65.   "h",   ID_HARD,              CONTROL, SHIFT
  66.   "a",   ID_ABOUT,             CONTROL, SHIFT
  67.   "r",   ID_RESTART,           CONTROL, SHIFT
  68.   "s",   ID_SOUND,             CONTROL, SHIFT
  69.   "c",   ID_CASE,              CONTROL, SHIFT
  70.   "E",   ID_EASY,              CONTROL, SHIFT
  71.   "M",   ID_MEDIUM,            CONTROL, SHIFT
  72.   "H",   ID_HARD,              CONTROL, SHIFT
  73.   "A",   ID_ABOUT,             CONTROL, SHIFT
  74.   "R",   ID_RESTART,           CONTROL, SHIFT
  75.   "S",   ID_SOUND,             CONTROL, SHIFT
  76.   "C",   ID_CASE,              CONTROL, SHIFT
  77.   VK_F3, ID_EXITPROG, VIRTUALKEY
  78. END
  79.  
  80. STRINGTABLE PRELOAD
  81. BEGIN
  82.  IDS_HELLO, "Hello"
  83.  IDS_1,     "--1--    "
  84.  IDS_2,     "--2--    "
  85.  IDS_3,     "--3--    "
  86.  IDS_4,     "--4--    "
  87. END
  88.  
  89.