home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / HELLO5 / AHELLOW5.RC < prev    next >
Text File  |  1995-04-14  |  10KB  |  137 lines

  1. /******************************************************************************/
  2. /* HELLO WORLD SAMPLE PROGRAM - Version 5: Resource Definitions (ahellow5.rc) */
  3. /*                                                                            */
  4. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1995. */
  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. #ifdef IC_PM
  17. #include <os2.h>                                //Include os2.h               V4
  18. #endif
  19. #include "ahellow5.h"                           //Symbolic definitions        v5
  20.  
  21. //**************************************************************************  V2
  22. // icon and bitmap resources                                               *  V2
  23. //   Relate symbolic name to file containing main window icon.             *  V2
  24. //**************************************************************************  V2
  25. ICON WND_MAIN ahellow5.ico                      //Application icon            v5
  26.  
  27. //**************************************************************************  V2
  28. // string resources                                                        *  V2
  29. //   Relate symbolic names to literal text strings.                        *  V2
  30. //**************************************************************************  V2
  31. STRINGTABLE
  32.   BEGIN
  33.     STR_HELLO,  "Hello, World!!!"               //Hello World string          V2
  34.     WND_MAIN,   "Hello World Sample - Version 5"   //Main window title string    v5
  35.     WND_TEXTDIALOG, "Hello World Edit Dialog"   //Dialog window title string  V4
  36.     STR_INFO,   "Use Alt-F4 to Close Window"    //Information area string     V2
  37.     MI_EDIT,    "Edit Menu"                     //InfoArea - Edit menu        V4
  38.     MI_ALIGNMENT,"Alignment Menu"               //InfoArea - Alignment menu   V3
  39.     MI_CENTER,  "Set Center Alignment"          //InfoArea - Center menu item V3
  40.     MI_LEFT,    "Set Left Alignment"            //InfoArea - Left menu item   V3
  41.     MI_RIGHT,   "Set Right Alignment"           //InfoArea - Right menu item  V3
  42.     MI_TEXT,    "Display Edit Dialog"           //InfoArea - Text menu item   V4
  43.     MI_HELP,    "Help for Selected Item"        //InfoArea - Help menu item   V5
  44.     SC_HELPEXTENDED, "Display General Help"     //InfoArea - Extended Help    V5
  45.     SC_HELPKEYS,"Display Keys Help"             //InfoArea - Keys Help        V5
  46.     SC_HELPINDEX,"Display Help Index"           //InfoArea - Help Index       V5
  47.     STR_INFODLG,"Modal Edit Text Dialog Active" //InfoArea - Text dialog      V4
  48.     STR_CENTER, "Center Alignment"              //Status line text - Center   V3
  49.     STR_LEFT,   "Left Alignment"                //Status line text - Left     V3
  50.     STR_RIGHT,  "Right Alignment"               //Status line text - Right    V3
  51.     STR_LEFTB,  "Left"                          //String for Left Button      V4
  52.     STR_CENTERB,"Center"                        //String for Center Button    V4
  53.     STR_RIGHTB, "Right"                         //String for Right Button     V4
  54.     STR_HELPB,  "Help"                          //String for Help Button      V5
  55.     STR_HTITLE, "C++ Hello World - Help Window" //Help window title string    V5
  56.     STR_HELP_NOT_FOUND, "Help file not found. Help is not available."       //V5
  57.     DID_OK,     "OK"                            //Text dialog - OK button     V4
  58.     DID_CANCEL, "Cancel"                        //Text dialog - Cancel button V4
  59.     DID_STATIC, "Edit Text:"                    //Text dialog - Prompt        V4
  60.     DID_ENTRY,  ""                              //Text dialog - Entry field   V4
  61.     // Change HI_COUNT in ahellow5.h to change number of HIs used.            V5
  62.     HI_WORLD,      "Hello, World!"              //English                     V5
  63.     HI_WORLD+1,    "Hi, World!"                 //American                    V5
  64.     HI_WORLD+2,    "Howdy, World!"              //Southern American           V5
  65.     HI_WORLD+3,    "Alo, Mundo!"                //Portuguese                  V5
  66.     HI_WORLD+4,    "Ola, Mondo!"                //Spanish                     V5
  67.     HI_WORLD+5,    "Hallo wereld!"              //Dutch                       V5
  68.     HI_WORLD+6,    "Hallo Welt!"                //German                      V5
  69.     HI_WORLD+7,    "Bonjour le monde!"          //French                      V5
  70.     HI_WORLD+8,    "Put your language here!"    //Add more items, too!        V5
  71.     // Change HI_COUNT in ahellow5.h to change number of HIs used.            V5
  72.   END
  73.  
  74. //**************************************************************************  V3
  75. // Menu bar for main window - used by IMenuBar Class                       *  V3
  76. //   Define menu bar layout and relate symbolic names to menu item strings.*  V3
  77. //**************************************************************************  V3
  78. MENU WND_MAIN                                   //Main window menu bar        V3
  79.   BEGIN
  80.     SUBMENU "~Edit", MI_EDIT                    //Edit submenu                V4
  81.       BEGIN
  82.         SUBMENU "~Alignment", MI_ALIGNMENT      //Alignment submenu           V3
  83.           BEGIN
  84.             MENUITEM "~Left\tF7",   MI_LEFT     //Left menu item - F7 Key     V4
  85.             MENUITEM "~Center\tF8", MI_CENTER   //Center menu item - F8 Key   V4
  86.             MENUITEM "~Right\tF9",  MI_RIGHT    //Right menu item - F9 Key    V4
  87.           END
  88.         MENUITEM "~Text...", MI_TEXT            //Text dialog menu item       V4
  89.       END
  90.     SUBMENU "~Help", MI_HELP, MIS_HELP          //Help submenu                V5
  91.       BEGIN                                                                 //V5
  92.         MENUITEM "~General help...",   SC_HELPEXTENDED, MIS_SYSCOMMAND      //V5
  93.         MENUITEM "~Keys help...",      SC_HELPKEYS, MIS_SYSCOMMAND          //V5
  94.         MENUITEM "Help ~index...",     SC_HELPINDEX, MIS_SYSCOMMAND         //V5
  95.       END                                                                   //V5
  96.   END
  97.  
  98. //**************************************************************************  V4
  99. // Accelerator (key) table resources                                       *  V4
  100. //   Relate accelerator keys to command IDs.                               *  V4
  101. //**************************************************************************  V4
  102. ACCELTABLE WND_MAIN                             //Main window accelerators    V4
  103.   BEGIN                                         //                            V4
  104.     VK_F7,  MI_LEFT,   VIRTUALKEY               //F7 - Left command           V4
  105.     VK_F8,  MI_CENTER, VIRTUALKEY               //F8 - Center command         V4
  106.     VK_F9,  MI_RIGHT,  VIRTUALKEY               //F9 - Right command          V4
  107.   END                                           //                            V4
  108.  
  109. //**************************************************************************  V5
  110. // Help table resources - used by IHelpWindow class                        *  V5
  111. //   Relate window IDs to help file IDs.                                   *  V5
  112. //**************************************************************************  V5
  113. HELPTABLE HELP_TABLE                                                        //V5
  114.   BEGIN                                                                     //V5
  115.     HELPITEM WND_MAIN,        SUBTABLE_MAIN,   100                          //V5
  116.     HELPITEM WND_TEXTDIALOG,  SUBTABLE_DIALOG, 200                          //V5
  117.   END                                                                       //V5
  118.  
  119. HELPSUBTABLE SUBTABLE_MAIN                      //Main window help subtable   V5
  120.   BEGIN                                         //                            V5
  121.     HELPSUBITEM WND_HELLO, 100                  //Hello static text help ID   V5
  122.     HELPSUBITEM WND_LISTBOX,102                 //List box help ID            V5
  123.     HELPSUBITEM MI_EDIT, 110                    //Edit menu item help ID      V5
  124.     HELPSUBITEM MI_ALIGNMENT, 111               //Alignment menu item help ID V5
  125.     HELPSUBITEM MI_LEFT, 112                    //Left command help ID        V5
  126.     HELPSUBITEM MI_CENTER, 113                  //Center command help ID      V5
  127.     HELPSUBITEM MI_RIGHT, 114                   //Right command help ID       V5
  128.     HELPSUBITEM MI_TEXT, 199                    //Text command help ID        V5
  129.   END                                           //                            V5
  130.  
  131. HELPSUBTABLE SUBTABLE_DIALOG                    //Text dialog help subtable   V5
  132.   BEGIN                                         //                            V5
  133.     HELPSUBITEM DID_ENTRY, 201                  //Entry field help ID         V5
  134.     HELPSUBITEM DID_OK, 202                     //OK command help ID          V5
  135.     HELPSUBITEM DID_CANCEL, 203                 //Cancel command help ID      V5
  136.   END                                           //                            V5
  137.