home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / SAMPLES / ICLUI / MLE / AMLE.RC < prev    next >
Text File  |  1993-05-12  |  4KB  |  70 lines

  1. /******************************************************************************/
  2. /* Multi-Line Entry Field Sample Program                                      */
  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. /* NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          */
  16. /******************************************************************************/
  17.  
  18. #include "amle.h"
  19.  
  20. /******************************************************************************/
  21. /* string table                                                               */
  22. /******************************************************************************/
  23. STRINGTABLE
  24.   BEGIN
  25.     WND_MAIN             ,   "Multi-line entry field example program"
  26.     MI_FILE              ,   "file menu choice"
  27.     MI_OPEN              ,   "open a file on main thread"
  28.     MI_OPEN_THREAD2      ,   "open a file on second thread"
  29.     MI_SAVE              ,   "save file"
  30.     MI_SAVEAS            ,   "save file as"
  31.     MI_EDIT              ,   "edit menu choice"
  32.     MI_COPY              ,   "copy marked text to clipboard"
  33.     MI_CUT               ,   "cut marked text to clipboard"
  34.     MI_PASTE             ,   "paste text from clipboard"
  35.     MI_OPTIONS           ,   "options menu choice (font and word wrap)"
  36.     MI_FONT              ,   "select font"
  37.     MI_WORDWRAP          ,   "toggle word wrap"
  38.     STR_VIEWNAME         ,   "Text view"
  39.     STR_FONTDLGT         ,   "Open Font Dialog"
  40.     STR_OPENFAILED       ,   "Unable to open file"
  41.     STR_OPENFAILEDTEXT   ,   "The application was unable to load the file "
  42.   END
  43.  
  44. /******************************************************************************/
  45. /* menu bar                                                                   */
  46. /******************************************************************************/
  47. MENU WND_MAIN
  48.   BEGIN
  49.     SUBMENU       "~File"                , MI_FILE
  50.       BEGIN
  51.         MENUITEM  "~Open..."             , MI_OPEN
  52.         MENUITEM  "~Open 2..."           , MI_OPEN_THREAD2
  53.         MENUITEM  SEPARATOR
  54.         MENUITEM  "~Save..."             , MI_SAVE
  55.         MENUITEM  "Save~as..."           , MI_SAVEAS
  56.       END
  57.     SUBMENU       "~Edit"                , MI_EDIT
  58.       BEGIN
  59.         MENUITEM  "Cu~t\tShift+Delete"   , MI_CUT
  60.         MENUITEM  "~Copy\tCtrl+Insert"   , MI_COPY
  61.         MENUITEM  "~Paste\tShift+Insert" , MI_PASTE
  62.       END
  63.     SUBMENU       "~Options"             , MI_OPTIONS
  64.       BEGIN
  65.         MENUITEM  "~Font..."             , MI_FONT
  66.         MENUITEM  SEPARATOR
  67.         MENUITEM  "Word wrap"            , MI_WORDWRAP
  68.       END
  69.   END
  70.