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

  1. /******************************************************************************/
  2. /* HELLO WORLD SAMPLE PROGRAM - Version 6: Resource Definitions (ahellow6.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 "ahellow6.h"                           //Symbolic definitions        v6
  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 ahellow6.ico                      //Application icon            v6
  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 6"   //Main window title string    v6
  35.     WND_TEXTDIALOG, "Hello World Edit Dialog"   //Dialog window title string  V4
  36.     WND_HELLOPOPUP, "Hello Window Pop-up Menu"  //InfoArea - Hello pop-up     V4
  37.     WND_EARTHPOPUP, "Earth Window Pop-up Menu"  //InfoArea - Earth pop-up     V4
  38.     WND_NOTEBOOKFRAME, "Hello World Settings Notebook" //                     V6
  39.                                                 //Settings notebook title     V6
  40.     STR_INFO,   "Use Alt-F4 to Close Window"    //Information area string     V2
  41.     MI_EDIT,    "Edit Menu"                     //InfoArea - Edit menu        V4
  42.     MI_ALIGNMENT,"Alignment Menu"               //InfoArea - Alignment menu   V3
  43.     MI_CENTER,  "Set Center Alignment"          //InfoArea - Center menu item V3
  44.     MI_LEFT,    "Set Left Alignment"            //InfoArea - Left menu item   V3
  45.     MI_RIGHT,   "Set Right Alignment"           //InfoArea - Right menu item  V3
  46.     MI_TEXT,    "Display Edit Dialog"           //InfoArea - Text menu item   V4
  47.     MI_HELP,    "Help for Selected Item"        //InfoArea - Help menu item   V5
  48.     MI_FONT,    "Open Font Dialog"              //InfoArea - Font menu item   V6
  49.     MI_SETTINGS,"Settings Menu"                 //InfoArea - Settings menuitemV6
  50.     MI_READSETS,"Read Settings from Profile"    //InfoArea - Settings menuitemV6
  51.     MI_OPENSETS,"Open Settings Notebook"        //InfoArea - Settings menuitemV6
  52.     MI_SAVESETS,"Save Settings in Profile"      //InfoArea - Settings menuitemV6
  53.     MI_TWINKLE, "Toggle Twinkling of Stars"     //InfoArea - Earth pop-up itemV6
  54.     MI_BRIGHT,  "Make Stars Bright (when not twinkling)" //                   V6
  55.                                                 //InfoArea - Earth pop-up itemV6
  56.     MI_DIM,     "Make Stars Dim (when not twinkling)" //                      V6
  57.                                                 //InfoArea - Earth pop-up itemV6
  58.     SC_HELPEXTENDED, "Display General Help"     //InfoArea - Extended Help    V5
  59.     SC_HELPKEYS,"Display Keys Help"             //InfoArea - Keys Help        V5
  60.     SC_HELPINDEX,"Display Help Index"           //InfoArea - Help Index       V5
  61.     STR_INFODLG,"Modal Edit Text Dialog Active" //InfoArea - Text dialog      V4
  62.     STR_CENTER, "Center Alignment"              //Status line text - Center   V3
  63.     STR_LEFT,   "Left Alignment"                //Status line text - Left     V3
  64.     STR_RIGHT,  "Right Alignment"               //Status line text - Right    V3
  65.     STR_LEFTB,  "Left"                          //String for Left Button      V4
  66.     STR_CENTERB,"Center"                        //String for Center Button    V4
  67.     STR_RIGHTB, "Right"                         //String for Right Button     V4
  68.     STR_HELPB,  "Help"                          //String for Help Button      V5
  69.     STR_HTITLE, "C++ Hello World - Help Window" //Help window title string    V5
  70.     STR_HELP_NOT_FOUND, "Help file not found. Help is not available."       //V5
  71.     STR_FONTDLGT,"C++ Hello World - Font Dialog"//Font dialog title string    V6
  72.     STR_EARTHTAB,             "Earth"           //Notebook tab for Earth page V6
  73.     STR_DATETIMETAB,          "Date\nTime"      //Notebook tab for date & timeV6
  74.     STR_EARTHPAGEHEADING      "Earth Window Settings"                       //V6
  75.     STR_STARSHEADING,         "Star Settings"                               //V6
  76.     STR_TWINKLEBOX,           "Twinkle"         //String for twinkle check boxV6
  77.     STR_BRIGHTBOX,            "Bright"          //String for bright check box V6
  78.     STR_LAYERSHEADING,        "Atmosphere Layers" //String for check box      V6
  79.     STR_EARTHCOLORHEADING,    "Earth Color"                                 //V6
  80.     STR_CYAN,                 "Cyan"                                        //V6
  81.     STR_GREEN,                "Green"                                       //V6
  82.     STR_WHITE                 "White"                                       //V6
  83.     STR_YELLOW,               "Yellow"                                      //V6
  84.     STR_DATETIMEPAGEHEADING,  "Date and Time Settings"                      //V6
  85.     STR_DATEHEADING,          "Date Format"                                 //V6
  86.     STR_DATELONGBOX,          "Long"                                        //V6
  87.     STR_DATESHORTBOX,         "Short"                                       //V6
  88.     STR_DATELONGEXAMPLE,      "ex: August 10, 1994"                         //V6
  89.     STR_DATESHORTEXAMPLE,     "ex: 08/10/94"                                //V6
  90.     STR_TIMEHEADING,          "Time Format"                                 //V6
  91.     STR_TIMELONGBOX,          "Long"                                        //V6
  92.     STR_TIMESHORTBOX,         "Short"                                       //V6
  93.     STR_TIMELONGEXAMPLE,      "ex: 01:37:59 pm"                             //V6
  94.     STR_TIMESHORTEXAMPLE,     "ex: 13:37"                                   //V6
  95.     STR_APPLY,                "Apply"                                       //V6
  96.     STR_RESET,                "Reset"                                       //V6
  97.     STR_CLOSE,                "Close"                                       //V6
  98.     STR_READOK,               "Settings successfully read from profile."    //V6
  99.     STR_SAVEDOK,              "Settings successfully saved to profile."     //V6
  100.     DID_OK,     "OK"                            //Text dialog - OK button     V4
  101.     DID_CANCEL, "Cancel"                        //Text dialog - Cancel button V4
  102.     DID_STATIC, "Edit Text:"                    //Text dialog - Prompt        V4
  103.     DID_ENTRY,  ""                              //Text dialog - Entry field   V4
  104.     // Change HI_COUNT in ahellow6.h to change number of HIs used.            v6
  105.     HI_WORLD,      "Hello, World!"              //English                     V5
  106.     HI_WORLD+1,    "Hi, World!"                 //American                    V5
  107.     HI_WORLD+2,    "Howdy, World!"              //Southern American           V5
  108.     HI_WORLD+3,    "Alo, Mundo!"                //Portuguese                  V5
  109.     HI_WORLD+4,    "Ola, Mondo!"                //Spanish                     V5
  110.     HI_WORLD+5,    "Hallo wereld!"              //Dutch                       V5
  111.     HI_WORLD+6,    "Hallo Welt!"                //German                      V5
  112.     HI_WORLD+7,    "Bonjour le monde!"          //French                      V5
  113.     HI_WORLD+8,    "Put your language here!"    //Add more items, too!        V5
  114.     // Change HI_COUNT in ahellow6.h to change number of HIs used.            v6
  115.   END
  116.  
  117. //**************************************************************************  V3
  118. // Menu bar for main window - used by IMenuBar Class                       *  V3
  119. //   Define menu bar layout and relate symbolic names to menu item strings.*  V3
  120. //**************************************************************************  V3
  121. MENU WND_MAIN                                   //Main window menu bar        V3
  122.   BEGIN
  123.     SUBMENU "~Edit", MI_EDIT                    //Edit submenu                V4
  124.       BEGIN
  125.         SUBMENU "~Alignment", MI_ALIGNMENT      //Alignment submenu           V3
  126.           BEGIN
  127.             MENUITEM "~Left\tF7",   MI_LEFT     //Left menu item - F7 Key     V4
  128.             MENUITEM "~Center\tF8", MI_CENTER   //Center menu item - F8 Key   V4
  129.             MENUITEM "~Right\tF9",  MI_RIGHT    //Right menu item - F9 Key    V4
  130.           END
  131.         MENUITEM "~Text...", MI_TEXT            //Text dialog menu item       V4
  132.         MENUITEM "~Font...", MI_FONT            //Font dialog menu item       V6
  133.       END
  134.     SUBMENU "~Settings", MI_SETTINGS            //Settings notebook submenu   V6
  135.       BEGIN
  136.         MENUITEM "~Read from profile", MI_READSETS //Read menu item           V6
  137.         MENUITEM "~Open ...",          MI_OPENSETS //Open menu item           V6
  138.         MENUITEM "~Save to profile",   MI_SAVESETS //Save menu item           V6
  139.       END
  140.     SUBMENU "~Help", MI_HELP, MIS_HELP          //Help submenu                V5
  141.       BEGIN                                                                 //V5
  142.         MENUITEM "~General help...",   SC_HELPEXTENDED, MIS_SYSCOMMAND      //V5
  143.         MENUITEM "~Keys help...",      SC_HELPKEYS, MIS_SYSCOMMAND          //V5
  144.         MENUITEM "Help ~index...",     SC_HELPINDEX, MIS_SYSCOMMAND         //V5
  145.       END                                                                   //V5
  146.   END
  147.  
  148. //**************************************************************************  V6
  149. // Pop-up menus for AHelloWindow - used by IPopUpMenu class                *  V6
  150. //   Define pop-up menu layout and relate symbolic IDs to menu items.      *  V6
  151. //**************************************************************************  V6
  152. MENU WND_HELLOPOPUP                             //Hello window pop-up menu    V6
  153.   BEGIN
  154.     MENUITEM "~Left-align text",  MI_LEFT       //Hello pop-up menu item      V6
  155.     MENUITEM "~Center text"    ,  MI_CENTER     //Hello pop-up menu item      V6
  156.     MENUITEM "~Right-align text", MI_RIGHT      //Hello pop-up menu item      V6
  157.   END
  158. MENU WND_EARTHPOPUP                             //Earth window pop-up menu    V6
  159.   BEGIN
  160.     MENUITEM "~Twinkling stars", MI_TWINKLE     //Earth pop-up menu item      V6
  161.     MENUITEM SEPARATOR                          //Separator bar               V6
  162.     MENUITEM "~Brighten stars",  MI_BRIGHT      //Earth pop-up menu item      V6
  163.     MENUITEM "~Dim stars",  MI_DIM              //Earth pop-up menu item      V6
  164.   END
  165.  
  166. //**************************************************************************  V4
  167. // Accelerator (key) table resources                                       *  V4
  168. //   Relate accelerator keys to command IDs.                               *  V4
  169. //**************************************************************************  V4
  170. ACCELTABLE WND_MAIN                             //Main window accelerators    V4
  171.   BEGIN                                         //                            V4
  172.     VK_F7,  MI_LEFT,   VIRTUALKEY               //F7 - Left command           V4
  173.     VK_F8,  MI_CENTER, VIRTUALKEY               //F8 - Center command         V4
  174.     VK_F9,  MI_RIGHT,  VIRTUALKEY               //F9 - Right command          V4
  175.   END                                           //                            V4
  176.  
  177. //**************************************************************************  V5
  178. // Help table resources - used by IHelpWindow class                        *  V5
  179. //   Relate window IDs to help file IDs.                                   *  V4
  180. //**************************************************************************  V5
  181. HELPTABLE HELP_TABLE                                                        //V5
  182.   BEGIN                                                                     //V5
  183.     HELPITEM WND_MAIN,        SUBTABLE_MAIN,   100                          //V5
  184.     HELPITEM WND_TEXTDIALOG,  SUBTABLE_DIALOG, 200                          //V5
  185.   END                                                                       //V5
  186.  
  187. HELPSUBTABLE SUBTABLE_MAIN                      //Main window help subtable   V5
  188.   BEGIN                                         //                            V5
  189.     HELPSUBITEM WND_HELLO, 100                  //Hello static text help ID   V5
  190.     HELPSUBITEM WND_LISTBOX,102                 //List box help ID            V5
  191.     HELPSUBITEM MI_EDIT, 110                    //Edit menu item help ID      V5
  192.     HELPSUBITEM MI_ALIGNMENT, 111               //Alignment menu item help ID V5
  193.     HELPSUBITEM MI_LEFT, 112                    //Left command help ID        V5
  194.     HELPSUBITEM MI_CENTER, 113                  //Center command help ID      V5
  195.     HELPSUBITEM MI_RIGHT, 114                   //Right command help ID       V5
  196.     HELPSUBITEM MI_TEXT, 199                    //Text command help ID        V5
  197.   END                                           //                            V5
  198.  
  199. HELPSUBTABLE SUBTABLE_DIALOG                    //Text dialog help subtable   V5
  200.   BEGIN                                         //                            V5
  201.     HELPSUBITEM DID_ENTRY, 201                  //Entry field help ID         V5
  202.     HELPSUBITEM DID_OK, 202                     //OK command help ID          V5
  203.     HELPSUBITEM DID_CANCEL, 203                 //Cancel command help ID      V5
  204.   END                                           //                            V5
  205.