home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / REXX / API / PMREXX / PMREXX.RC < prev    next >
Text File  |  1995-08-24  |  6KB  |  142 lines

  1. #define  INCL_PM
  2. #define  INCL_WIN
  3. #include <os2.h>
  4. #include "pmrexx.h"
  5. #include "rxhdluse.h"
  6. #include "pmrxhlp.h"
  7. #include "pmrexxio.h"
  8.  
  9. ICON    RXHOST_WIN pmrexx.ico
  10. POINTER 1          pmrexx.ico
  11. BITMAP  ID_BMP     prodinfo.bmp
  12.  
  13.  
  14. ACCELTABLE RXHOST_WIN PRELOAD
  15. BEGIN
  16.   VK_F3,       PMRXA_EXIT,        VIRTUALKEY
  17.   "S",         PMRXA_SAVE,        CHAR,        CONTROL
  18.   "s",         PMRXA_SAVE,        CHAR,        CONTROL
  19.   VK_DELETE,   RXIOA_DELETE,      VIRTUALKEY
  20. END
  21.  
  22. STRINGTABLE
  23. BEGIN
  24.     PROGRAM_NAME             "PMREXX"
  25.     RXHM_PROC_ENDED          "The REXX procedure has ended.\n"
  26.     BAD_NUM_PARMS            "Invalid Number of Parameters.\nYou must at least specify a procedure name."
  27.     PMRXHB_FILEMASK          "*.*"
  28.     RXHA_MSGBOXHDR           "PMREXX: Error"
  29.     RXHM_PROC_NOT_FOUND      "The procedure file could not be found."
  30.     RELEASE_INFO             "Release 2.0"
  31.  
  32.     RETRY                    "Retry"
  33.     CANCEL                   "Cancel"
  34.     ABORT                    "Abort"
  35.     IGNORE                   "Ignore"
  36.     OK                       "OK"
  37.     YES                      "Yes"
  38.     NO                       "No"
  39.     BENTER                   "Enter"
  40.  
  41.  
  42.     RXH_APP_ERROR            "A system call has returned an error."
  43.     RXH_READ_ERROR           "Error reading the file."
  44.     RXH_WRITE_ERROR          "Error writing to the File."
  45.     RXH_OPEN_ERROR           "Error Opening the File."
  46.     RXH_BAD_PATH             "The requested path does not exist."
  47.     RXH_TOO_MANY_OPEN        "There are too many open files."
  48.     RXH_ACCESS_DENIED        "The System has denied access."
  49.     RXH_INV_ACCESS           "Invalid Access Attempt."
  50.     RXH_NOT_DISK             "Not a DOS Disk."
  51.     RXH_SHARE_VIOL           "Sharing Violation."
  52.     RXH_SHARE_BUFF_EXC       "The Sharing Buffer has been exceeded."
  53.     RXH_CANNOT_MAKE          "The System cannot make the file handle."
  54.     RXH_DRIVE_LOCKED         "The requested Drive is locked."
  55.     RXH_DISK_FULL            "The requested Disk is full."
  56.     RXH_OUTOF_MEM            "The system is out of memory."
  57.     RXH_NOT_READY            "The requested device is not ready."
  58.     RXH_WRITE_PROT           "The disk has been write protected."
  59.     RXH_NAME_LONG            "The file name or extension is too long."
  60.     RXH_BAD_NAME             "The file name contains an incorrect character."
  61.     RXH_ERRC_OUTRES          "The system cannot allocate the resource."
  62.     RXH_ERRC_TEMPSIT         "Temporary situation"
  63.     RXH_ERRC_AUTH            "Authorization failed"
  64.     RXH_ERRC_INTRN           "Internal Error"
  65.     RXH_ERRC_HRDFAIL         "Device hardware failure"
  66.     RXH_ERRC_SYSFAIL         "System failure"
  67.     RXH_ERRC_APPERR          "Probable Application Error"
  68.     RXH_ERRC_NOTFND          "Item not located"
  69.     RXH_ERRC_BADFMT          "Bad format for call or data"
  70.     RXH_ERRC_LOCKED          "Resource or data is locked"
  71.     RXH_ERRC_MEDIA           "Incorrect media--CRC error"
  72.     RXH_ERRC_ALREADY         "Resource/action already exists/has been done"
  73.     RXH_ERRC_UNK             "Unclassified"
  74.     RXH_ERRC_CANT            "Cannot perform action"
  75.     RXH_ERRC_TIME            "Time-out"
  76.     RXH_ERRL_UNK             "Unknown Error"
  77.     RXH_ERRL_DISK            "A Disk Error has occurred"
  78.     RXH_ERRL_NET             "A Network Error has occurred"
  79.     RXH_ERRL_SERDEV          "A Serial Device Error has occurred"
  80.     RXH_ERRL_MEM             "A Memory Error has occurred"
  81.     RXH_WERRL_SHELL          "A Shell Error has occurred"
  82.     RXH_WERRL_GPI            "A Graphics Error has occurred"
  83.     RXH_WERRL_PM             "A Presentation Manager Error has occurred"
  84.     RXH_WERRL_UNK            "Unknown Error"
  85.     RXH_WERRC_UNK            "Unclassified"
  86.  
  87.     BACKPATH_DELIMETER       "\\"
  88.     DRIVE_DELIMETER          ":"
  89.  
  90.     MSG_FILE                 "OSO001.MSG"
  91.     SYS_ERROR_TEXT           "      System Error %d "
  92.     RXH_TITLE                "%s: %s"
  93.     RXH_WARNING              "%s - Warning"
  94.     RXH_CRITICAL             "%s - Critical Error"
  95.     RXH_ERRORTITLE           "%s - Error"
  96.     RXH_NOTIFICATION         "%s - Notification"
  97.     RXHD_EXISTS              "%s already exists.\n  Do you want to overwrite it?"
  98.  
  99.     SAVE_QUIT                "%s has changed.\n Do you want to save it?"
  100.     SAVE                     "Save"
  101.     PMRXHB_SAVETITLE         "Save PMREXX Output Window As"
  102.     NOCHANGE                 "%s has not changed.\n It will not be saved."
  103.     RX_UNTITLED              "Output"
  104. END
  105.  
  106. DLGTEMPLATE PMREXX_CUALOGO LOADONCALL MOVEABLE DISCARDABLE
  107. BEGIN
  108.     DIALOG  "Product Information", PMREXX_CUALOGO, 51, -42, 275, 120,
  109.             FS_NOBYTEALIGN | WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  110.             PRESPARAMS PP_BACKGROUNDCOLOR, 0x00FFFFFFL
  111.     BEGIN
  112.         CONTROL         ID_BMP, ID_BMP, 20, 70, 21, 21, WC_STATIC, SS_BITMAP |
  113.                         WS_GROUP | WS_VISIBLE
  114.         CTEXT           "(C) Copyright IBM Corporation 1994, 1995. All Rights "
  115.                         "reserved.", 256, 10, 51, 255, 8
  116.         CTEXT           "IBM is a registered trademark of", 258, 10, 37, 255, 
  117.                         8
  118.         CTEXT           "International Business Machines Corp.", 257, 10, 26, 
  119.                         255, 8
  120.         DEFPUSHBUTTON   "~OK", DID_OK, 111, 4, 45, 15
  121.         ICON            RXHOST_WIN, RXHOST_WIN, 220, 70, 40, 40, WS_GROUP
  122.         CTEXT           "Operating System/2", 3102, 60, 80, 160, 8
  123.         CTEXT           "PM/REXX", 3103, 60, 64, 160, 8
  124.                         PRESPARAMS PP_FOREGROUNDCOLOR, 0x000000FFL
  125.     END
  126. END
  127.  
  128. DLGTEMPLATE PMREXX_SEARCH LOADONCALL MOVEABLE DISCARDABLE
  129. BEGIN
  130.     DIALOG  "Search", PMREXX_SEARCH, 16, 28, 184, 85, WS_VISIBLE, FCF_SYSMENU |
  131.             FCF_TITLEBAR
  132.     BEGIN
  133.         LTEXT           "Enter search text:", RX_SEARCH_TEXT, 5, 68, 86, 8
  134.         ENTRYFIELD      "", RX_SEARCH_FIELD, 7, 53, 160, 8, ES_MARGIN | WS_GROUP 
  135.         AUTOCHECKBOX    "Case sensitive", RX_CASEBOX, 5, 33, 87, 10
  136.         DEFPUSHBUTTON   "~OK", PB_OK, 5, 9, 40, 14, WS_GROUP 
  137.         PUSHBUTTON      "~Cancel", PB_CANCEL, 60, 9, 40, 14, NOT WS_TABSTOP 
  138.         PUSHBUTTON      "Help", 136, 115, 9, 40, 14, BS_HELP | 
  139.                         BS_NOPOINTERFOCUS | NOT WS_TABSTOP
  140.     END
  141. END
  142.