home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / hello4 / ahellow4.rcx < prev    next >
Encoding:
Text File  |  1996-02-22  |  4.4 KB  |  94 lines

  1. /******************************************************************************
  2. * .FILE:         ahellow4.rc                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION:  Hello World Sample Program Version 4:  Resource Definitions  *
  5. *                                                                             *
  6. * .CLASSES:                                                                   *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *    Licensed Material - Program-Property of IBM                              *
  10. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  11. *                                                                             *
  12. * .DISCLAIMER:                                                                *
  13. *   The following [enclosed] code is sample code created by IBM               *
  14. *   Corporation.  This sample code is not part of any standard IBM product    *
  15. *   and is provided to you solely for the purpose of assisting you in the     *
  16. *   development of your applications.  The code is provided 'AS IS',          *
  17. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  18. *   arising out of your use of the sample code, even if they have been        *
  19. *   advised of the possibility of such damages.                               *
  20. *                                                                             *
  21. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  22. *                                                                             *
  23. *                                                                             *
  24. ******************************************************************************/
  25. #ifdef IC_PM
  26. #include <os2.h>
  27. #endif
  28. #include "ahellow4.h"
  29.  
  30. //**************************************************************************
  31. // icon and bitmap resources                                               *
  32. //   Relate symbolic name to file containing main window icon.             *
  33. //**************************************************************************
  34. ICON WND_MAIN ahellow4.ico
  35.  
  36. //**************************************************************************
  37. // string resources                                                        *
  38. //   Relate symbolic names to literal text strings.                        *
  39. //**************************************************************************
  40. STRINGTABLE
  41.   BEGIN
  42.     STR_HELLO,  "Hello, World!!!"
  43.     WND_MAIN,   "Hello World Sample - Version 4"
  44.     WND_TEXTDIALOG, "Hello World Edit Dialog"
  45.     STR_INFO,   "Use Alt-F4 to Close Window"
  46.     MI_EDIT,    "Edit Menu"
  47.     MI_ALIGNMENT,"Alignment Menu"
  48.     MI_CENTER,  "Set Center Alignment"
  49.     MI_LEFT,    "Set Left Alignment"
  50.     MI_RIGHT,   "Set Right Alignment"
  51.     MI_TEXT,    "Display Edit Dialog"
  52.     STR_INFODLG,"Modal Edit Text Dialog Active"
  53.     STR_CENTER, "Center Alignment"
  54.     STR_LEFT,   "Left Alignment"
  55.     STR_RIGHT,  "Right Alignment"
  56.     STR_LEFTB,  "Left"
  57.     STR_CENTERB,"Center"
  58.     STR_RIGHTB, "Right"
  59.     DID_OK,     "OK"
  60.     DID_CANCEL, "Cancel"
  61.     DID_STATIC, "Edit Text:"
  62.     DID_ENTRY,  ""
  63.   END
  64.  
  65. //**************************************************************************
  66. // Menu bar for main window - used by IMenuBar Class                       *
  67. //   Define menu bar layout and relate symbolic names to menu item strings.*
  68. //**************************************************************************
  69. MENU WND_MAIN
  70.   BEGIN
  71.     SUBMENU "~Edit", MI_EDIT
  72.       BEGIN
  73.         SUBMENU "~Alignment", MI_ALIGNMENT
  74.           BEGIN
  75.             MENUITEM "~Left\tF7",   MI_LEFT
  76.             MENUITEM "~Center\tF8", MI_CENTER
  77.             MENUITEM "~Right\tF9",  MI_RIGHT
  78.           END
  79.         MENUITEM "~Text...", MI_TEXT
  80.       END
  81.   END
  82.  
  83. //**************************************************************************
  84. // Accelerator (key) table resources                                       *
  85. //   Relate accelerator keys to command IDs.                               *
  86. //**************************************************************************
  87. ACCELTABLE WND_MAIN
  88.   BEGIN
  89.     VK_F7,  MI_LEFT,   VIRTUALKEY
  90.     VK_F8,  MI_CENTER, VIRTUALKEY
  91.     VK_F9,  MI_RIGHT,  VIRTUALKEY
  92.   END
  93.  
  94.