home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wpentk.zip
/
WBPENTK1.DSK
/
SKETSAMP.RC
< prev
next >
Wrap
Text File
|
1994-10-06
|
5KB
|
109 lines
/*****************************************************************************/
/* */
/* File Name : SKETSAMP.RC */
/* */
/* Description : Sample Program for SKETCH Controls. */
/* */
/* Copyright (C) 1992 IBM Corporation */
/* */
/* DISCLAIMER OF WARRANTIES. The following [enclosed] code is */
/* test cpde created bu IBM Corporation. This test code is not part */
/* of any standard or IBM product and is provided to you solely for the */
/* purpose of assisting you in the testing of the SKETCH Controls. */
/* The code is provided "AS IS", without warranty of any kind. IBM */
/* shall not be liable for any damages arising out of your use of */
/* this test code, even if they have been advised of the possibility of */
/* such damages. */
/* */
/* */
/*****************************************************************************/
#define INCL_PM
#include <os2.h>
#include <penpm.h>
#include "sketsamp.h"
ICON ID_MAIN sketsamp.ico
/**************************************/
/* used in QUERY/SET DRAW_POINTER */
/**************************************/
POINTER PTR_PEN blackpen.ptr
MESSAGETABLE
BEGIN
IDMSG_SHOWWARNING "Warning Message"
IDMSG_STROKE_ADD "STROKE ADD NOTIFICATION: Press OK to add stroke #%s to the database."
IDMSG_STROKE_UNDO "STROKE UNDO NOTIFICATION: Press OK to delete stroke #%s from the database."
IDMSG_STROKE_CLEAR "STROKE CLEAR NOTIFICATION: Press OK to clear all(%s) strokes."
IDMSG_BITMAP_HANDLE_SAVE "Bitmap Handle = %sPress OK to save the bitmap to a file."
IDMSG_BITMAP_REALLY_SAVE "File %s already exists and WILL BE ERASED!"
IDMSG_SHOWINFO "Information Message"
IDMSG_INK_COLOR_QUERY "The INK Color is %s."
IDMSG_INK_COLOR_SET "The INK color has been set to %s."
IDMSG_INK_WIDTH_QUERY "The INK width is %s."
IDMSG_INK_WIDTH_SET "The INK width has been set to %s."
IDMSG_DISPLAY_MODE "The Display mode is %s."
IDMSG_DRAWPOINTER_QUERY "The drawing pointer is %s."
IDMSG_DRAWPOINTER_SET "Set Drawing Pointer:%s"
IDMSG_INK_COLOR_CHANGE "COLOR CHANGE NOTIFICATION: Ink color changed to %s!"
IDMSG_INK_WIDTH_CHANGE "WIDTH CHANGE NOTIFICATION: Ink width changed to %s!"
IDMSG_NOTHING_CLEAR "No Strokes in Database to clear!"
IDMSG_NOTHING_UNDO "No Strokes in Database to undo!"
IDMSG_STROKE_COUNT "Database Stroke Count = %s."
IDMSG_AUX_ALL_SET "Subsequent strokes will retrieve auxiliary data."
IDMSG_AUX_NONE_SET "Subsequent strokes will NOT retrieve auxiliary data."
IDMSG_BMP_SAVED_OK "Bitmap Saved to file %s!"
IDMSG_BITMAP_SIZE_QUERY "Bitmap Size:%s"
IDMSG_STROKE_COLOR_QUERY "Query Stroke Color:%s"
IDMSG_STROKE_COLOR_SET "Set Stroke Color:%s"
IDMSG_STROKE_WIDTH_QUERY "Query Stroke Width:%s"
IDMSG_STROKE_WIDTH_SET "Set Stroke Width:%s"
IDMSG_STROKE_LENGTH_QUERY "Query Stroke Length:%s" */
IDMSG_ALL_STROKES_CLEARED "All Strokes Cleared!"
IDMSG_LAST_STROKE_CLEARED "Last Stroke Cleared!"
IDMSG_SHOWERROR "Error Message"
IDMSG_MESSAGE_FAIL "%s FAILED."
IDMSG_NO_PEN_RUNNING "Pen for OS/2 is not running."
IDMSG_NO_HELP "Missing HELP."
IDMSG_MEMORY_ERROR "Memory Failure - Bitmap cannot be saved."
IDMSG_FILE_ERROR "File Error - Bitmap cannot be saved."
IDMSG_MEMORY_FAIL_GETSTROKE "Memory Fail during Stroke #%s retrieve!"
IDMSG_INK_WIDTH_SET_FAIL "FAIL! Width can only be set to 1 or 2 pels."
IDMSG_STROKE_INVALID "Stroke #%s is invalid!"
END
HELPTABLE SKETCH_HELPTABLE
{
HELPITEM ID_MAIN SKETCH_HELPSUBTABLE, PANEL_SKETCH
HELPITEM IDD_SELECTCONTROL, DLG_CHOOSE_HELPSUBTABLE, PANEL_MESSAGE
HELPITEM IDD_AUX, DLG_CHOOSE_AUXSUBTABLE, PANEL_AUX
}
HELPSUBTABLE SKETCH_HELPSUBTABLE
BEGIN
HELPSUBITEM IDC_SKETCH_HELP, PANEL_SKETCH
HELPSUBITEM IDC_SKETCH, PANEL_SKETCH
END
HELPSUBTABLE DLG_CHOOSE_HELPSUBTABLE
BEGIN
HELPSUBITEM IDC_SELECTBOX, PANEL_MESSAGE
END
HELPSUBTABLE DLG_CHOOSE_AUXSUBTABLE
BEGIN
HELPSUBITEM IDC_NONEAUX, PANEL_AUX
HELPSUBITEM IDC_ALLAUX, PANEL_AUX
END
rcinclude sketsamp.dlg