home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / SKETSAMP.RC < prev    next >
Text File  |  1994-01-13  |  5KB  |  109 lines

  1.  
  2. /*****************************************************************************/
  3. /*                                                                           */
  4. /*  File Name   : SKETSAMP.RC                                                */
  5. /*                                                                           */
  6. /*  Description : Sample Program for SKETCH Controls.                        */
  7. /*                                                                           */
  8. /*  Copyright (C) 1992 IBM Corporation                                       */
  9. /*                                                                           */
  10. /*      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is          */
  11. /*      test cpde created bu IBM Corporation.  This test code is not part    */
  12. /*      of any standard or IBM product and is provided to you solely for the */
  13. /*      purpose of assisting you in the testing of the SKETCH Controls.      */
  14. /*      The code is provided "AS IS", without warranty of any kind.  IBM     */
  15. /*      shall not be liable for any damages arising out of your use of       */
  16. /*      this test code, even if they have been advised of the possibility of */
  17. /*      such damages.                                                        */
  18. /*                                                                           */
  19. /*                                                                           */
  20. /*****************************************************************************/
  21.  
  22. #define  INCL_PM
  23. #include <os2.h>
  24. #include <penpm.h>
  25.  
  26. #include "sketsamp.h"
  27.  
  28. ICON ID_MAIN sketsamp.ico
  29.  
  30. /**************************************/
  31. /* used in QUERY/SET DRAW_POINTER     */
  32. /**************************************/
  33. POINTER   PTR_PEN     blackpen.ptr
  34.  
  35.  
  36. MESSAGETABLE
  37. BEGIN
  38.   IDMSG_SHOWWARNING        "Warning Message"
  39.   IDMSG_STROKE_ADD         "STROKE ADD NOTIFICATION:  Press OK to add stroke #%s to the database."
  40.   IDMSG_STROKE_UNDO        "STROKE UNDO NOTIFICATION: Press OK to delete stroke #%s from the database."
  41.   IDMSG_STROKE_CLEAR       "STROKE CLEAR NOTIFICATION: Press OK to clear all(%s) strokes."
  42.   IDMSG_BITMAP_HANDLE_SAVE "Bitmap Handle = %sPress OK to save the bitmap to a file."
  43.   IDMSG_BITMAP_REALLY_SAVE "File %s already exists and WILL BE ERASED!"
  44.  
  45.   IDMSG_SHOWINFO              "Information Message"
  46.   IDMSG_INK_COLOR_QUERY       "The INK Color is %s."
  47.   IDMSG_INK_COLOR_SET         "The INK color has been set to %s."
  48.   IDMSG_INK_WIDTH_QUERY       "The INK width is %s."
  49.   IDMSG_INK_WIDTH_SET         "The INK width has been set to %s."
  50.   IDMSG_DISPLAY_MODE          "The Display mode is %s."
  51.   IDMSG_DRAWPOINTER_QUERY     "The drawing pointer is %s."
  52.   IDMSG_DRAWPOINTER_SET       "Set Drawing Pointer:%s"
  53.   IDMSG_INK_COLOR_CHANGE      "COLOR CHANGE NOTIFICATION:  Ink color changed to %s!"
  54.   IDMSG_INK_WIDTH_CHANGE      "WIDTH CHANGE NOTIFICATION:  Ink width changed to %s!"
  55.   IDMSG_NOTHING_CLEAR         "No Strokes in Database to clear!"
  56.   IDMSG_NOTHING_UNDO          "No Strokes in Database to undo!"
  57.   IDMSG_STROKE_COUNT          "Database Stroke Count = %s."
  58.   IDMSG_AUX_ALL_SET           "Subsequent strokes will retrieve auxiliary data."
  59.   IDMSG_AUX_NONE_SET          "Subsequent strokes will NOT retrieve auxiliary data."
  60.   IDMSG_BMP_SAVED_OK          "Bitmap Saved to file %s!"
  61.   IDMSG_BITMAP_SIZE_QUERY     "Bitmap Size:%s"
  62.   IDMSG_STROKE_COLOR_QUERY    "Query Stroke Color:%s"
  63.   IDMSG_STROKE_COLOR_SET      "Set Stroke Color:%s"
  64.   IDMSG_STROKE_WIDTH_QUERY    "Query Stroke Width:%s"
  65.   IDMSG_STROKE_WIDTH_SET      "Set Stroke Width:%s"
  66.   IDMSG_STROKE_LENGTH_QUERY   "Query Stroke Length:%s"                                  */
  67.   IDMSG_ALL_STROKES_CLEARED   "All Strokes Cleared!"
  68.   IDMSG_LAST_STROKE_CLEARED   "Last Stroke Cleared!"
  69.  
  70.   IDMSG_SHOWERROR             "Error Message"
  71.   IDMSG_MESSAGE_FAIL          "%s FAILED."
  72.   IDMSG_NO_PEN_RUNNING        "Pen for OS/2 is not running."
  73.   IDMSG_NO_HELP               "Missing HELP."
  74.   IDMSG_MEMORY_ERROR          "Memory Failure - Bitmap cannot be saved."
  75.   IDMSG_FILE_ERROR            "File Error - Bitmap cannot be saved."
  76.   IDMSG_MEMORY_FAIL_GETSTROKE "Memory Fail during Stroke #%s retrieve!"
  77.   IDMSG_INK_WIDTH_SET_FAIL    "FAIL!  Width can only be set to 1 or 2 pels."
  78.   IDMSG_STROKE_INVALID        "Stroke #%s is invalid!"
  79. END
  80.  
  81. HELPTABLE  SKETCH_HELPTABLE
  82. {
  83.   HELPITEM ID_MAIN                SKETCH_HELPSUBTABLE,      PANEL_SKETCH
  84.   HELPITEM IDD_SELECTCONTROL,     DLG_CHOOSE_HELPSUBTABLE,  PANEL_MESSAGE
  85.   HELPITEM IDD_AUX,               DLG_CHOOSE_AUXSUBTABLE,   PANEL_AUX
  86. }
  87.  
  88.  
  89. HELPSUBTABLE SKETCH_HELPSUBTABLE
  90. BEGIN
  91.   HELPSUBITEM IDC_SKETCH_HELP,         PANEL_SKETCH
  92.   HELPSUBITEM IDC_SKETCH,              PANEL_SKETCH
  93. END
  94.  
  95.  
  96.  
  97. HELPSUBTABLE DLG_CHOOSE_HELPSUBTABLE
  98. BEGIN
  99.   HELPSUBITEM IDC_SELECTBOX,      PANEL_MESSAGE
  100. END
  101.  
  102. HELPSUBTABLE DLG_CHOOSE_AUXSUBTABLE
  103. BEGIN
  104.   HELPSUBITEM IDC_NONEAUX,        PANEL_AUX
  105.   HELPSUBITEM IDC_ALLAUX,         PANEL_AUX
  106. END
  107.  
  108. rcinclude sketsamp.dlg
  109.