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

  1. /******************************************************************************
  2. * .FILE:         msgbox.h                                                     *
  3. *                                                                             *
  4. * .DESCRIPTION:  Message Box Sample Program:  Resource File                   *
  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. #include "msgbox.h"
  25.  
  26. ICON WND_MAIN msgbox.ico
  27.  
  28. //**************************************************************************
  29. // string resources - Used as the messages in the message boxes            *
  30. //  symbolic name (ID) <-> text string                                     *
  31. //**************************************************************************
  32. STRINGTABLE
  33.   BEGIN
  34.     WND_MAIN,               "Message Box Sample"
  35.     MSGBOX_TITLE,           "Message Box"
  36.     STR_HELPT,              "Help for Message Box Help Button"
  37.     MSGBOX_OKCANCEL,        "okCancelButton, informationIcon"
  38.     MSGBOX_OKWARNING,       "okButton, warningIcon"
  39.     MSGBOX_CANCELERROR,     "cancelButton, errorIcon"
  40.     MSGBOX_YESNOCANCEL,     "yesNoCancelButton, queryIcon"
  41.     MSGBOX_YESNOCANCELHELP, "yesNoCancelButton with helpId, moveable, queryIcon"
  42.     MSGBOX_SYSMODAL,        "enterButton, systemModal, errorIcon"
  43.     MSGBOX_CONTINUE,        "Loop through the message boxes again?"
  44.     MSGBOX_END, "To end the program, press alt-F4 or select Close from the system menu."
  45.     STR_HELP_NOT_FOUND, "Help file not found. Help is not available."
  46.  
  47.  
  48.     STR_TRACE_LINE,      "traceReply *"
  49.     STR_TRACE_REPLY,     "response = "
  50.     STR_TRACE_ENTER,     "enter"
  51.     STR_TRACE_OK,        "ok"
  52.     STR_TRACE_CANCEL,    "cancel"
  53.     STR_TRACE_ABORT,     "abort"
  54.     STR_TRACE_RETRY,     "retry"
  55.     STR_TRACE_IGNORE,    "ignore"
  56.     STR_TRACE_YES,       "yes"
  57.     STR_TRACE_NO,        "no"
  58.     STR_TRACE_UNKNOWN,   "unknown"
  59.     STR_TRACE_BAD,       "bad reply"
  60.  
  61.     STR_SPACE,           " "
  62.  
  63.     MSGBOX_SAMPLE_1,
  64.       "Message Box Sample 1 - okCancelButton and informationIcon"
  65.     MSGBOX_SAMPLE_2,
  66.       "Message Box Sample 2 - okButton and warningIcon"
  67.     MSGBOX_SAMPLE_3,
  68.       "Message Box Sample 3 - cancelButton and errorIcon"
  69.     MSGBOX_SAMPLE_4,
  70.       "Message Box Sample 4 - yesNoCancelButton and queryIcon"
  71.     MSGBOX_SAMPLE_5,
  72.       "Message Box Sample 5 - yesNoCancelButton, queryIcon, moveable, helpId"
  73.     MSGBOX_SAMPLE_6,
  74.       "Message Box Sample 6 - enterButton, systemModal, and errorIcon"
  75.     MSGBOX_SAMPLE_7,
  76.       "Message Box Sample 7 - exception (from generated IAccessError)"
  77.   END
  78.