home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / palette.zip / PALETTE.RC < prev   
Text File  |  1998-04-20  |  7KB  |  150 lines

  1. /*┌──────────────────────────────────────────────────────────────────────────┐*/
  2. /*│                                                                          │*/
  3. /*│ PROGRAM NAME: PALETTE                                                    │*/
  4. /*│ -------------                                                            │*/
  5. /*│  A PM program demonstrating vector fonts, palette manager APIs, and IPF  │*/
  6. /*│  help.                                                                   │*/
  7. /*│                                                                          │*/
  8. /*│ COPYRIGHT:                                                               │*/
  9. /*│ ----------                                                               │*/
  10. /*│  Copyright (C) International Business Machines Corp., 1992               │*/
  11. /*│                                                                          │*/
  12. /*│ DISCLAIMER OF WARRANTIES:                                                │*/
  13. /*│ -------------------------                                                │*/
  14. /*│  The following [enclosed] code is sample code created by IBM Corporation.│*/
  15. /*│  This sample code is not part of any standard IBM product and is provided│*/
  16. /*│  to you solely for the purpose of assisting you in the development of    │*/
  17. /*│  your applications.  The code is provided "AS IS", without warranty of   │*/
  18. /*│  any kind.  IBM shall not be liable for any damages arising out of your  │*/
  19. /*│  use of the sample code, even if they have been advised of the           │*/
  20. /*│  possibility of such damages.                                            │*/
  21. /*│                                                                          │*/
  22. /*│ For details on what this program does etc., please see the PALETTE.C     │*/
  23. /*│ file.                                                                    │*/
  24. /*│                                                                          │*/
  25. /*└──────────────────────────────────────────────────────────────────────────┘*/
  26.  
  27. /*┌──────────────────────────────────────────────────────────────────────────┐*/
  28. /*│ PALETTE.RC                                                               │*/
  29. /*│                                                                          │*/
  30. /*│ Palette Manager Resource File                                            │*/
  31. /*└──────────────────────────────────────────────────────────────────────────┘*/
  32.  
  33. /*┌──────────────────────────────────────────────────────────────────────────┐*/
  34. /*│ Includes                                                                 │*/
  35. /*└──────────────────────────────────────────────────────────────────────────┘*/
  36.  
  37. #define INCL_PM
  38. #include <os2.h>
  39. #include "palette.h"
  40.  
  41.  
  42. ICON ID_WINDOW PRELOAD  palette.ico
  43.  
  44. MENU ID_WINDOW PRELOAD
  45. BEGIN
  46.    SUBMENU "~Options", IDM_OPTIONS
  47.    BEGIN
  48.       MENUITEM "~Stop",       IDM_STARTSTOP,  MIS_TEXT
  49.       SUBMENU  "S~peed",      IDM_SPEED,      MIS_TEXT
  50.       BEGIN
  51.          MENUITEM "S~low",    IDM_SPEEDSLOW,  MIS_TEXT
  52.          MENUITEM "~Medium",  IDM_SPEEDMEDIUM,MIS_TEXT
  53.          MENUITEM "~Fast",    IDM_SPEEDFAST,  MIS_TEXT
  54.       END
  55.       SUBMENU "~Logo",        IDM_LOGO,       MIS_TEXT
  56.       BEGIN
  57.          MENUITEM "~IBM",     IDM_LOGOIBM,    MIS_TEXT
  58.          MENUITEM "~OS/2",    IDM_LOGOOS2,    MIS_TEXT
  59.       END
  60.    END
  61.  
  62.    SUBMENU     "~Help",       IDM_HELP
  63.    BEGIN
  64.         MENUITEM    "Help ~index...",          IDM_HELP_INDEX,    MIS_TEXT
  65.         MENUITEM    "~General help...",        IDM_EXTENDED_HELP, MIS_TEXT
  66.         MENUITEM    "~Keys help...",           IDM_KEYS_HELP,     MIS_TEXT
  67.         MENUITEM    "~Using help...",          IDM_HELPFORHELP,   MIS_TEXT
  68.         MENUITEM SEPARATOR
  69.         MENUITEM    "~Product information...", IDM_HELPABOUT,     MIS_TEXT
  70.    END
  71. END
  72.  
  73.  
  74. ACCELTABLE ID_WINDOW
  75. BEGIN
  76.   VK_F3,        IDM_EXIT,        VIRTUALKEY
  77. END
  78.  
  79.  
  80. /*┌──────────────────────────────────────────────────────────────────────────┐*/
  81. /*│ Help Table Definition                                                    │*/
  82. /*│                                                                          │*/
  83. /*│ The main help table is defined including the window for which help will  │*/
  84. /*│ be displayed, the help subtable which references the help panels and the │*/
  85. /*│ panel id for the extended help panel.                                    │*/
  86. /*└──────────────────────────────────────────────────────────────────────────┘*/
  87.  
  88. HELPTABLE MAIN_HELPTABLE
  89. BEGIN
  90.     HELPITEM ID_WINDOW, SUBTABLE_OPTION, IDM_EXTENDED_HELP
  91. END
  92.  
  93.  
  94. /*┌──────────────────────────────────────────────────────────────────────────┐*/
  95. /*│ Help Sub Table Definition                                                │*/
  96. /*│                                                                          │*/
  97. /*│ The help subtable is defined including the id for each item for which    │*/
  98. /*│ help is available, and the id to the corresponding help panel.  The id's │*/
  99. /*│ for the locations in the program are defined in the PALETTE.H file, and  │*/
  100. /*│ the help panels are defined in the HELP.IPF file.                        │*/
  101. /*└──────────────────────────────────────────────────────────────────────────┘*/
  102. /*     HELPSUBITEM     SC_HELPEXTENDED,   IDM_EXTENDED_HELP */
  103. /*     HELPSUBITEM     SC_HELPKEYS,       IDM_KEYS_HELP     */
  104. /*     HELPSUBITEM     SC_HELPINDEX,      IDM_HELP_INDEX    */
  105.  
  106. HELPSUBTABLE SUBTABLE_OPTION
  107. BEGIN
  108.      HELPSUBITEM     IDM_OPTIONS,       IDM_OPTIONS
  109.      HELPSUBITEM     IDM_STARTSTOP,     IDM_STARTSTOP
  110.      HELPSUBITEM     IDM_SPEED,         IDM_SPEED
  111.      HELPSUBITEM     IDM_SPEEDSLOW,     IDM_SPEEDSLOW
  112.      HELPSUBITEM     IDM_SPEEDMEDIUM,   IDM_SPEEDMEDIUM
  113.      HELPSUBITEM     IDM_SPEEDFAST,     IDM_SPEEDFAST
  114.      HELPSUBITEM     IDM_LOGO,          IDM_LOGO
  115.      HELPSUBITEM     IDM_LOGOIBM,       IDM_LOGOIBM
  116.      HELPSUBITEM     IDM_LOGOOS2,       IDM_LOGOOS2
  117.      HELPSUBITEM     IDM_HELP,          IDM_HELP
  118.      HELPSUBITEM     IDM_HELPFORHELP,   IDM_HELPFORHELP
  119.      HELPSUBITEM     IDM_HELPABOUT,     IDM_HELPABOUT
  120.      HELPSUBITEM     IDM_EXTENDED_HELP, IDM_EXTENDED_HELP
  121.      HELPSUBITEM     IDM_KEYS_HELP,     IDM_KEYS_HELP
  122.      HELPSUBITEM     IDM_HELP_INDEX,    IDM_HELP_INDEX
  123. END
  124.  
  125.  
  126. /*┌──────────────────────────────────────────────────────────────────────────┐*/
  127. /*│ Product Information (about) dialog                                       │*/
  128. /*└──────────────────────────────────────────────────────────────────────────┘*/
  129.  
  130. BITMAP IDR_BITMAP prodinfo.bmp
  131.  
  132. DLGTEMPLATE IDD_PRODUCTINFO LOADONCALL MOVEABLE DISCARDABLE
  133. BEGIN
  134.     DIALOG "Product information", IDD_PRODUCTINFO, 9, 17, 276, 137,
  135.                 FS_NOBYTEALIGN | FS_DLGBORDER |
  136.                 WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS,
  137.                 FCF_TITLEBAR | FCF_SYSMENU
  138.     BEGIN
  139.         CONTROL         IDR_BITMAP, IDC_BITMAP, 111, 76, 21, 21, WC_STATIC,
  140.                         SS_BITMAP | WS_GROUP | WS_VISIBLE
  141.         CTEXT           "(C) Copyright IBM Corporation 1992. All Rights rese"
  142.                         "rved.", 256, 7, 54, 255, 8
  143.         CTEXT           "OS/2 is a registered trademark of", 258, 7, 44, 255,
  144.                         8
  145.         CTEXT           "International Business Machines Corp.", 257, 7, 34,
  146.                         255, 8
  147.         DEFPUSHBUTTON   "OK", IDC_OK, 111, 8, 45, 15
  148.     END
  149. END
  150.