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

  1. /*********** CLIPBRD 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.  *  ACCELTABLE ATABLE PRELOAD         #define INCL_PM
  13.  *  MENU AMENU PRELOAD                #include <os2.h>
  14.  *  STRINGTABLE PRELOAD               #include "clipbrd.h"
  15.  *                                    ICON AICON clipbrd.ico
  16.  *                                    BITMAP  ID_BITMAP clipbrd.bmp
  17.  *
  18.  *  Copyright (C) 1991 IBM Corporation
  19.  *
  20.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  21.  *      sample code created by IBM Corporation. This sample code is not
  22.  *      part of any standard or IBM product and is provided to you solely
  23.  *      for  the purpose of assisting you in the development of your
  24.  *      applications.  The code is provided "AS IS", without
  25.  *      warranty of any kind.  IBM shall not be liable for any damages
  26.  *      arising out of your use of the sample code, even if they have been
  27.  *      advised of the possibility of such damages.                                                    *
  28.  ******************************************************************************/
  29.  
  30.  
  31. #define INCL_PM
  32. #include <os2.h>
  33. #include "clipbrd.h"
  34.  
  35. ICON AICON clipbrd.ico
  36.  
  37. BITMAP  ID_BITMAP   clipbrd.bmp
  38. BITMAP  IDR_BITMAP  prodinfo.bmp
  39.  
  40. /* application menu bar */
  41.  
  42. ACCELTABLE ATABLE PRELOAD
  43. BEGIN
  44.     VK_INSERT, MENU_PASTE,  VIRTUALKEY, SHIFT
  45.     VK_INSERT, MENU_COPY,   VIRTUALKEY, CONTROL
  46.     VK_DELETE, MENU_CLEAR,  VIRTUALKEY
  47.     VK_DELETE, MENU_CUT,    VIRTUALKEY, SHIFT
  48. END
  49.  
  50. MENU AMENU PRELOAD
  51. BEGIN
  52.     SUBMENU     "~Edit",                        SM_CLIPBRD
  53.     BEGIN
  54.         MENUITEM    "Cu~t\tShift+Delete",       MENU_CUT
  55.         MENUITEM    "~Copy\tCtrl+Insert",       MENU_COPY
  56.         MENUITEM    "~Paste\tShift+Insert",     MENU_PASTE
  57.         MENUITEM    "",                  -1,    MIS_SEPARATOR
  58.         MENUITEM    "C~lear\tDelete",           MENU_CLEAR
  59.     END
  60.     SUBMENU    "~Help",                         SM_HELP
  61.     BEGIN
  62.         MENUITEM    "Help ~index",       MENU_HELPINDEX,     MIS_TEXT
  63.         MENUITEM    "~General help",     MENU_EXTHELP,       MIS_TEXT
  64.         MENUITEM    "~Using help",       MENU_HELPUSING,     MIS_TEXT
  65.         MENUITEM    "~Keys help",        MENU_KEYSHELP,      MIS_TEXT
  66.         MENUITEM    "",                  -1,                 MIS_SEPARATOR
  67.         MENUITEM    "~Product information", MENU_PRODINFO,   MIS_TEXT
  68.     END
  69. END
  70.  
  71. STRINGTABLE PRELOAD
  72. BEGIN
  73.     HELPPANEL,        "General Program Help would appear here"
  74.     TERMINATE,        "Do you really want to terminate the program?"
  75.     HELPINDEX,        "The Help Index would now be displayed"
  76.     KEYSHELP,         "Help on the keys used in the application would be displayed here"
  77.     EXTHELP,          "General Help would appear here"
  78.     GENHELP,          "Using Help would appear here"
  79.     ABOUT1            "        Clipboard Sample Program"
  80.     ABOUT2            ""
  81.     ABOUT3            "   (C) Copyright IBM Corp. 1988, 1991. "
  82.     ABOUT4            "    All rights reserved International "
  83.     ABOUT5            "         Business Machines Corp."
  84. END
  85.  
  86. DLGTEMPLATE IDD_PRODUCTINFO LOADONCALL MOVEABLE DISCARDABLE
  87. BEGIN
  88.     DIALOG  "Product information", IDD_PRODUCTINFO, 8, -43, 276, 137,
  89.             FS_NOBYTEALIGN | WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  90.     BEGIN
  91.         CONTROL         IDR_BITMAP, IDC_BITMAP, 111, 76, 21, 21, WC_STATIC,
  92.                         SS_BITMAP | WS_GROUP | WS_VISIBLE
  93.         CTEXT           "(C) Copyright IBM Corporation 1991. All Rights rese"
  94.                         "rved.", 256, 7, 54, 255, 8
  95.         CTEXT           "International Business Machines Corp.", 257, 7, 34,
  96.                         255, 8
  97.         CTEXT           "OS/2 is a registered trademark of", 258, 7, 44, 255,
  98.                         8
  99.         DEFPUSHBUTTON   "OK", IDC_OK, 111, 8, 45, 15
  100.     END
  101. END
  102.