home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / pm / stdwnd / hello.rc < prev   
Text File  |  1999-05-11  |  3KB  |  67 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 "hello.h"
  30.  
  31. ICON    ID_WINDOW hello.ico
  32.  
  33. MENU    ID_WINDOW PRELOAD
  34. BEGIN
  35.   SUBMENU "~Options", ID_OPTIONS
  36.   BEGIN
  37.     MENUITEM "Option ~1\tCtrl+A", ID_OPTION1, MIS_TEXT
  38.     MENUITEM "Option ~2\tCtrl+B", ID_OPTION2, MIS_TEXT
  39.     MENUITEM "Option ~3\tCtrl+C", ID_OPTION3, MIS_TEXT
  40.   END
  41. END
  42.  
  43. ACCELTABLE ID_WINDOW PRELOAD
  44. BEGIN
  45.   "a",   ID_OPTION1,              CONTROL
  46.   "b",   ID_OPTION2,              CONTROL
  47.   "c",   ID_OPTION3,              CONTROL
  48.   "A",   ID_OPTION1,              CONTROL
  49.   "B",   ID_OPTION2,              CONTROL
  50.   "C",   ID_OPTION3,              CONTROL
  51.   "a",   ID_OPTION1,              CONTROL, SHIFT
  52.   "b",   ID_OPTION2,              CONTROL, SHIFT
  53.   "c",   ID_OPTION3,              CONTROL, SHIFT
  54.   "A",   ID_OPTION1,              CONTROL, SHIFT
  55.   "B",   ID_OPTION2,              CONTROL, SHIFT
  56.   "C",   ID_OPTION3,              CONTROL, SHIFT
  57.   VK_F3, ID_EXITPROG, VIRTUALKEY
  58. END
  59.  
  60. STRINGTABLE PRELOAD
  61. BEGIN
  62.  IDS_HELLO, "Hello"
  63.  IDS_1,     "--1--    "
  64.  IDS_2,     "--2--    "
  65.  IDS_3,     "--3--    "
  66. END
  67.