home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / igpb1.zip / AHELLOW4.RC < prev    next >
Text File  |  1993-05-12  |  6KB  |  82 lines

  1. /******************************************************************************/
  2. /* HELLO WORLD SAMPLE PROGRAM - Version 4: Resource Definitions (AHELLOW4.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 "ahellow4.h"                           //Symbolic Definitions        v2
  18.  
  19. //**************************************************************************  v2
  20. // icon and bitmap resources                                               *   .
  21. //  Symbolic Name (ID) <-> icon filename                                   *   .
  22. //**************************************************************************   .
  23. ICON WND_MAIN ahellow4.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          v4
  32.     WND_MAIN,   "C++ Hello World - Version 4"   //Title Bar String (main id)  v4
  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.     STR_INFODLG,"Modal Edit Text Dialog Active" //Information Area String     v4
  41.     STR_CENTER, "Center Alignment"              //Status Line Text - Center   v3
  42.     STR_LEFT,   "Left Alignment"                //Status Line Text - Left      .
  43.     STR_RIGHT,  "Right Alignment"               //Status Line Text - Right    v3
  44.     STR_LEFTB,  "Left"                          //String for Left Button      v4
  45.     STR_CENTERB,"Center"                        //String for Center Button     .
  46.     STR_RIGHTB, "Right"                         //String for Right Button     v4
  47.   END
  48.  
  49. //**************************************************************************  v3
  50. // menu bar for main window - used by IMenuBar Class                       *   .
  51. //  Text String <-> Menu Item ID (Command ID)                              *   .
  52. //**************************************************************************  v3
  53. MENU WND_MAIN                                   //Main Window Menu (WND_MAIN) v3
  54.   BEGIN
  55.     SUBMENU "~Edit", MI_EDIT                    //Edit Submenu                v4
  56.       BEGIN
  57.         SUBMENU "~Alignment", MI_ALIGNMENT      //Alignment Submenu           v3
  58.           BEGIN
  59.             MENUITEM "~Left\tF7",   MI_LEFT     //Left Menu Item - F7 Key     v4
  60.             MENUITEM "~Center\tF8", MI_CENTER   //Center Menu Item - F8 Key   v4
  61.             MENUITEM "~Right\tF9",  MI_RIGHT    //Right Menu Item - F9 Key    v4
  62.           END
  63.         MENUITEM "~Text...", MI_TEXT            //Text Menu Item              v4
  64.       END
  65.   END
  66.  
  67. //**************************************************************************  v4
  68. // Accelerator (key) table resources - used by IAccelerator Class          *   .
  69. //  Key Value <-> Menu Item ID (Command ID)                                *   .
  70. //**************************************************************************   .
  71. ACCELTABLE WND_MAIN                             //Acc. Table for Main Window   .
  72.   BEGIN                                         //                             .
  73.     VK_F7,  MI_LEFT,   VIRTUALKEY               //F7 - Left Command            .
  74.     VK_F8,  MI_CENTER, VIRTUALKEY               //F8 - Center Command          .
  75.     VK_F9,  MI_RIGHT,  VIRTUALKEY               //F9 - Right Command           .
  76.   END                                           //                            v4
  77.  
  78. //**************************************************************************  v4
  79. // dialog resources - used by ATextDialog Class                            *   .
  80. //**************************************************************************   .
  81. rcinclude adialog4.dlg                          //Text Dialog Template        v4
  82.