home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / SAMPLES / ICLUI / HELLO5 / AHELLOW5.RC < prev    next >
Text File  |  1993-06-17  |  9KB  |  124 lines

  1. /******************************************************************************/
  2. /* HELLO WORLD SAMPLE PROGRAM - Version 5: Resource Definitions (AHELLOW5.RC) */
  3. /*                                                                            */
  4. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  5. /*                                                                            */
  6. /* DISCLAIMER OF WARRANTIES:                                                  */
  7. /*   The following [enclosed] code is sample code created by IBM              */
  8. /*   Corporation.  This sample code is not part of any standard IBM product   */
  9. /*   and is provided to you solely for the purpose of assisting you in the    */
  10. /*   development of your applications.  The code is provided "AS IS",         */
  11. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  12. /*   arising out of your use of the sample code, even if they have been       */
  13. /*   advised of the possibility of such damages.                              */
  14. /******************************************************************************/
  15.  
  16. #include <os2.h>                                //Include os2.h               v4
  17. #include "ahellow5.h"                           //Symbolic Definitions        v2
  18.  
  19. //**************************************************************************  v2
  20. // icon and bitmap resources                                               *   .
  21. //  Symbolic Name (ID) <-> icon filename                                   *   .
  22. //**************************************************************************   .
  23. ICON WND_MAIN ahellow5.ico                      //Title Bar Icon (use same id)v2
  24.  
  25. //**************************************************************************  v2
  26. // string resources - used by IStaticText & ITitle Classes                 *   .
  27. //  Symbolic Name (ID) <-> Text String                                     *   .
  28. //**************************************************************************  v2
  29. STRINGTABLE
  30.   BEGIN
  31.     STR_HELLO,  "Hello, World!!!!!"             //Hello World String          v5
  32.     WND_MAIN,   "C++ Hello World - Version 5"   //Title Bar String (main id)  v5
  33.     STR_INFO,   "Use Alt-F4 to Close Window"    //Information Area String     v2
  34.     MI_EDIT,    "Edit Menu"                     //InfoArea - Edit Menu        v4     .
  35.     MI_ALIGNMENT,"Alignment Menu"               //InfoArea - Alignment Menu   v3
  36.     MI_CENTER,  "Set Center Alignment"          //InfoArea - Center Menu       .
  37.     MI_LEFT,    "Set Left Alignment"            //InfoArea - Left Menu         .
  38.     MI_RIGHT,   "Set Right Alignment"           //InfoArea - Right Menu       v3
  39.     MI_TEXT,    "Display Edit Dialog"           //InfoArea - Text Menu        v4
  40.     MI_HELP,    "Help Menu"                     //Help Menu ID                v5
  41.     MI_GENERAL_HELP, "Display General Help"     //General Help                 .
  42.     SC_HELPEXTENDED, "Display Extended Help"    //Extended Help                .
  43.     SC_HELPKEYS,"Display Keys Help"             //Keys Help                    .
  44.     SC_HELPINDEX,"Display Help Index"           //Help Index                  v5
  45.     STR_INFODLG,"Modal Edit Text Dialog Active" //Information Area String     v4
  46.     STR_CENTER, "Center Alignment"              //Status Line Text - Center   v3
  47.     STR_LEFT,   "Left Alignment"                //Status Line Text - Left     v3
  48.     STR_RIGHT,  "Right Alignment"               //Status Line Text - Right    v3
  49.     STR_LEFTB,  "Left"                          //String for Left Button      v4
  50.     STR_CENTERB,"Center"                        //String for Center Button     .
  51.     STR_RIGHTB, "Right"                         //String for Right Button     v4
  52.     STR_HELPB,  "Help"                          //String for Help Button      v5
  53.     STR_HTITLE, "C++ Hello World - Help Window" //Help Title                  v5
  54.   END
  55.  
  56. //**************************************************************************  v3
  57. // menu bar for main window - used by IMenuBar Class                       *   .
  58. //  Text String <-> Menu Item ID (Command ID)                              *   .
  59. //**************************************************************************  v3
  60. MENU WND_MAIN                                   //Main Window Menu (WND_MAIN) v3
  61.   BEGIN
  62.     SUBMENU "~Edit", MI_EDIT                    //Edit Submenu                v4
  63.       BEGIN
  64.         SUBMENU "~Alignment", MI_ALIGNMENT      //Alignment Submenu           v3
  65.           BEGIN
  66.             MENUITEM "~Left\tF7",   MI_LEFT     //Left Menu Item - F7 Key     v4
  67.             MENUITEM "~Center\tF8", MI_CENTER   //Center Menu Item - F8 Key   v4
  68.             MENUITEM "~Right\tF9",  MI_RIGHT    //Right Menu Item - F9 Key    v4
  69.           END
  70.         MENUITEM "~Text...", MI_TEXT            //Text Menu Item              v4
  71.       END
  72.     SUBMENU "~Help", MI_HELP                    //Help Submenu                v5
  73.       BEGIN                                                                 // .
  74.         MENUITEM "~General help...",   MI_GENERAL_HELP                      // .
  75.         MENUITEM "~Extended help...",  SC_HELPEXTENDED, MIS_SYSCOMMAND      // .
  76.         MENUITEM "~Keys help...",      SC_HELPKEYS, MIS_SYSCOMMAND          // .
  77.         MENUITEM "Help ~index...",     SC_HELPINDEX, MIS_SYSCOMMAND         // .
  78.       END                                                                   //v5
  79.   END
  80.  
  81. //**************************************************************************  v4
  82. // Accelerator (key) table resources - used by IAccelerator Class          *   .
  83. //  Key Value <-> Menu Item ID (Command ID)                                *   .
  84. //**************************************************************************   .
  85. ACCELTABLE WND_MAIN                             //Acc. Table for Main Window   .
  86.   BEGIN                                         //                             .
  87.     VK_F7,  MI_LEFT,   VIRTUALKEY               //F7 - Left Command            .
  88.     VK_F8,  MI_CENTER, VIRTUALKEY               //F8 - Center Command          .
  89.     VK_F9,  MI_RIGHT,  VIRTUALKEY               //F9 - Right Command           .
  90.   END                                           //                            v4
  91.  
  92. //**************************************************************************  v4
  93. // dialog resources - used by ATextDialog Class                            *   .
  94. //**************************************************************************   .
  95. rcinclude adialog5.dlg                          //Text Dialog Template        v4
  96.  
  97. //**************************************************************************  v5
  98. // help table resources - used by IHelpWindow Class                        *   .
  99. //**************************************************************************  v5
  100. HELPTABLE HELP_TABLE                                                        // .
  101.   BEGIN                                                                     // .
  102.     HELPITEM WND_MAIN,        SUBTABLE_MAIN,   100                          // .
  103.     HELPITEM WND_TEXTDIALOG,  SUBTABLE_DIALOG, 200                          // .
  104.   END                                                                       //v5
  105.  
  106. HELPSUBTABLE SUBTABLE_MAIN                      //Main Window Help Subtable   v5
  107.   BEGIN                                         //                             .
  108.     HELPSUBITEM WND_HELLO, 100                  //Hello <-> Help ID 100        .
  109.     HELPSUBITEM WND_LISTBOX,102                 //List Box Help
  110.     HELPSUBITEM MI_EDIT, 110                    //Edit Menu                    .
  111.     HELPSUBITEM MI_ALIGNMENT, 111               //Alignment Menu               .
  112.     HELPSUBITEM MI_LEFT, 112                    //Left Menu Item               .
  113.     HELPSUBITEM MI_CENTER, 113                  //Center Menu Item             .
  114.     HELPSUBITEM MI_RIGHT, 114                   //Right Menu Item              .
  115.     HELPSUBITEM MI_TEXT, 199                    //Text Menu Item               .
  116.   END                                           //                            v5
  117.  
  118. HELPSUBTABLE SUBTABLE_DIALOG                    //Text Dialog Help Subtable   v5
  119.   BEGIN                                         //                             .
  120.     HELPSUBITEM DID_ENTRY, 201                  //Entry Field <-> Help ID 201  .
  121.     HELPSUBITEM DID_OK, 202                     //OK Button <-> Help ID 202    .
  122.     HELPSUBITEM DID_CANCEL, 203                 //OK Button <-> Help ID 203    .
  123.   END                                           //                            v5
  124.