home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / toolti.zip / TEST.RC < prev    next >
Text File  |  1994-06-30  |  13KB  |  362 lines

  1. /*  Main tooltest
  2.  
  3.     Copyright ⌐ 1994. All Rights Reserved.
  4.  
  5.     SUBSYSTEM:    tooltest.exe Application
  6.     FILE:         test.rc
  7.     AUTHOR:       
  8.  
  9.  
  10.     OVERVIEW
  11.     ========
  12.     All resources defined here.      
  13. */
  14.  
  15. #if !defined(WORKSHOP_INVOKED)
  16. #include <windows.h>
  17. #endif
  18. #include "test.rh"
  19.  
  20. SDI_MENU MENU
  21. BEGIN
  22.     POPUP "&File"
  23.     BEGIN
  24.         MENUITEM "&New", CM_FILENEW
  25.         MENUITEM "&Open...", CM_FILEOPEN
  26.         MENUITEM "&Close", CM_FILECLOSE
  27.         MENUITEM SEPARATOR
  28.         MENUITEM "&Save", CM_FILESAVE, GRAYED
  29.         MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED
  30.         MENUITEM SEPARATOR
  31.         MENUITEM "E&xit\tAlt+F4", CM_EXIT
  32.     END
  33.  
  34.     POPUP "&Edit"
  35.     BEGIN
  36.         MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED
  37.         MENUITEM SEPARATOR
  38.         MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED
  39.         MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED
  40.         MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED
  41.         MENUITEM SEPARATOR
  42.         MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED
  43.         MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED
  44.     END
  45.  
  46.     POPUP "&Search"
  47.     BEGIN
  48.         MENUITEM "&Find...", CM_EDITFIND, GRAYED
  49.         MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED
  50.         MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED
  51.     END
  52.  
  53.     POPUP "&Help"
  54.     BEGIN
  55.         MENUITEM "&About...", CM_HELPABOUT
  56.     END
  57.  
  58. END
  59.  
  60.  
  61. // Accelerator table for short-cut to menu commands. (include\owl\editfile.rc)
  62. SDI_MENU ACCELERATORS
  63. BEGIN
  64.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  65.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  66.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  67.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  68.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  69.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  70. END
  71.  
  72.  
  73. //
  74. // Table of help hints displayed in the status bar.
  75. //
  76. STRINGTABLE 
  77. {
  78.  -1, "File/document operations"
  79.  CM_FILENEW, "Creates a new window\nNew"
  80.  CM_FILEOPEN, "Opens a window\nOpen"
  81.  CM_FILECLOSE, "Close this document\nClose"
  82.  CM_FILESAVE, "Saves this document\nSave"
  83.  CM_FILESAVEAS, "Saves this document with a new name\nSave as..."
  84.  CM_EXIT, "Quits TooltipApp and prompts to save the documents\nExit Tooltips"
  85.  CM_EDITUNDO -1, "Edit operations"
  86.  CM_EDITUNDO, "Reverses the last operation\nUndo last operation"
  87.  CM_EDITCUT, "Cuts the selection and puts it on the Clipboard\nCut selection"
  88.  CM_EDITCOPY, "Copies the selection and puts it on the Clipboard\nCopy selection"
  89.  CM_EDITPASTE, "Inserts the clipboard contents at the insertion point\nPaste from clipboard"
  90.  CM_EDITDELETE, "Deletes the selection\nDelete selection"
  91.  CM_EDITCLEAR, "Clear the document\nClear"
  92.  CM_EDITFIND -1, "Search/replace operations"
  93.  CM_EDITFIND, "Finds the specified text\nFind"
  94.  CM_EDITREPLACE, "Finds the specified text and changes it\nReplace"
  95.  CM_EDITFINDNEXT, "Finds the next match\nFind next"
  96.  CM_HELPABOUT -1, "Access About"
  97.  CM_HELPABOUT, "About the tooltest application\nAbout Tooltips"
  98. }
  99.  
  100.  
  101. //
  102. // OWL string table
  103. //
  104.  
  105. // EditFile (include\owl\editfile.rc and include\owl\editsear.rc)
  106. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  107. BEGIN
  108.     IDS_CANNOTFIND,             "Cannot find ""%s""."
  109.     IDS_UNTITLED,               "Untitled"
  110.     IDS_UNABLEREAD,             "Unable to read file %s from disk."
  111.     IDS_UNABLEWRITE,            "Unable to write file %s to disk."
  112.     IDS_FILECHANGED,            "The text in the %s file has changed.\n\nDo you want to save the changes?"
  113.     IDS_FILEFILTER,             "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
  114. END
  115.  
  116.  
  117. // Exception string resources (include\owl\except.rc)
  118. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  119. BEGIN
  120.     IDS_OWLEXCEPTION,           "ObjectWindows Exception"
  121.     IDS_UNHANDLEDXMSG,          "Unhandled Exception"
  122.     IDS_OKTORESUME,             "OK to resume?"
  123.     IDS_UNKNOWNEXCEPTION,       "Unknown exception"
  124.  
  125.     IDS_UNKNOWNERROR,           "Unknown error"
  126.     IDS_NOAPP,                  "No application object"
  127.     IDS_OUTOFMEMORY,            "Out of memory"
  128.     IDS_INVALIDMODULE,          "Invalid module specified for window"
  129.     IDS_INVALIDMAINWINDOW,      "Invalid MainWindow"
  130.  
  131.     IDS_INVALIDWINDOW,          "Invalid window %s"
  132.     IDS_INVALIDCHILDWINDOW,     "Invalid child window %s"
  133.     IDS_INVALIDCLIENTWINDOW,    "Invalid client window %s"
  134.  
  135.     IDS_CLASSREGISTERFAIL,      "Class registration fail for window %s"
  136.     IDS_CHILDREGISTERFAIL,      "Child class registration fail for window %s"
  137.     IDS_WINDOWCREATEFAIL,       "Create fail for window %s"
  138.     IDS_WINDOWEXECUTEFAIL,      "Execute fail for window %s"
  139.     IDS_CHILDCREATEFAIL,        "Child create fail for window %s"
  140.  
  141.     IDS_MENUFAILURE,            "Menu creation failure"
  142.     IDS_VALIDATORSYNTAX,        "Validator syntax error"
  143.     IDS_PRINTERERROR,           "Printer error"
  144.  
  145.     IDS_LAYOUTINCOMPLETE,       "Incomplete layout constraints specified in window %s"
  146.     IDS_LAYOUTBADRELWIN,        "Invalid relative window specified in layout constraint in window %s"
  147.  
  148.     IDS_GDIFAILURE,             "GDI failure"
  149.     IDS_GDIALLOCFAIL,           "GDI allocate failure"
  150.     IDS_GDICREATEFAIL,          "GDI creation failure"
  151.     IDS_GDIRESLOADFAIL,         "GDI resource load failure"
  152.     IDS_GDIFILEREADFAIL,        "GDI file read failure"
  153.     IDS_GDIDELETEFAIL,          "GDI object %X delete failure"
  154.     IDS_GDIDESTROYFAIL,         "GDI object %X destroy failure"
  155.     IDS_INVALIDDIBHANDLE,       "Invalid DIB handle %X"
  156. END
  157.  
  158.  
  159. // General Window's status bar messages. (include\owl\statusba.rc)
  160. STRINGTABLE
  161. BEGIN
  162.     IDS_MODES                   "EXT|CAPS|NUM|SCRL|OVR|REC"
  163.     SC_SIZE,                    "Changes the size of the window"
  164.     SC_MOVE,                    "Moves the window to another position"
  165.     SC_MINIMIZE,                "Reduces the window to an icon"
  166.     SC_MAXIMIZE,                "Enlarges the window to it maximum size"
  167.     SC_RESTORE,                 "Restores the window to its previous size"
  168.     SC_CLOSE,                   "Closes the window"
  169.     SC_TASKLIST,                "Opens task list"
  170.     SC_NEXTWINDOW,              "Switches to next window"
  171. END
  172.  
  173.  
  174. // Validator messages (include\owl\validate.rc)
  175. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  176. BEGIN
  177.     IDS_VALPXPCONFORM          "Input does not conform to picture:\n""%s"""
  178.     IDS_VALINVALIDCHAR         "Invalid character in input"
  179.     IDS_VALNOTINRANGE          "Value is not in the range %ld to %ld."
  180.     IDS_VALNOTINLIST           "Input is not in valid-list"
  181. END
  182.  
  183.  
  184. //
  185. // Bitmaps used by the speedbar.  Each bitmap is associated with a
  186. // particular menu command.
  187. //
  188. CM_FILENEW BITMAP "new.bmp"
  189. CM_FILEOPEN BITMAP "open.bmp"
  190. CM_FILESAVE BITMAP "save.bmp"
  191.  
  192. CM_EDITUNDO BITMAP "undo.bmp"
  193. CM_EDITCUT BITMAP "cut.bmp"
  194. CM_EDITCOPY BITMAP "copy.bmp"
  195. CM_EDITPASTE BITMAP "paste.bmp" 
  196.  
  197. CM_EDITFIND BITMAP "find.bmp"
  198. CM_EDITFINDNEXT BITMAP "findnext.bmp"
  199.  
  200.  
  201. //
  202. // Misc application definitions
  203. //
  204.  
  205. // Application ICON
  206. IDI_SDIAPPLICATION ICON "applsdi.ico"
  207.  
  208.  
  209. // About box.
  210. IDD_ABOUT DIALOG 12, 17, 204, 65
  211. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  212. CAPTION "About tooltest"
  213. FONT 8, "MS Sans Serif"
  214. BEGIN
  215.     CTEXT "Version", IDC_VERSION, 2, 14, 200, 8, SS_NOPREFIX
  216.     CTEXT "Tooltip Test Application", -1, 2, 4, 200, 8, SS_NOPREFIX
  217.     CTEXT "", IDC_COPYRIGHT, 2, 27, 200, 17, SS_NOPREFIX
  218.     RTEXT "", IDC_DEBUG, 136, 55, 66, 8, SS_NOPREFIX
  219.     ICON IDI_SDIAPPLICATION, -1, 2, 2, 16, 16
  220.     DEFPUSHBUTTON "OK", IDOK, 88, 48, 28, 12
  221. END
  222.  
  223.  
  224. // TInputDialog class dialog box.
  225. IDD_INPUTDIALOG DIALOG 20, 24, 180, 64
  226. STYLE WS_POPUP | WS_CAPTION | DS_SETFONT
  227. FONT 8, "Helv"
  228. BEGIN
  229.     LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX
  230.     CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12
  231.     DEFPUSHBUTTON "&OK", IDOK, 47, 42, 40, 14
  232.     PUSHBUTTON "&Cancel", IDCANCEL, 93, 42, 40, 14
  233. END
  234.  
  235.  
  236. // Horizontal slider thumb bitmap for TSlider and VSlider (include\owl\slider.rc)
  237. IDB_HSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  238. BEGIN
  239.     '42 4D 66 01 00 00 00 00 00 00 76 00 00 00 28 00'
  240.     '00 00 12 00 00 00 14 00 00 00 01 00 04 00 00 00'
  241.     '00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00'
  242.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  243.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  244.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  245.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  246.     '00 00 FF FF FF 00 BB BB 0B BB BB BB B0 BB BB 00'
  247.     '00 00 BB B0 80 BB BB BB 08 0B BB 00 00 00 BB 08'
  248.     'F8 0B BB B0 87 70 BB 00 00 00 B0 8F F8 80 BB 08'
  249.     '77 77 0B 00 00 00 08 F8 88 88 00 88 88 87 70 00'
  250.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  251.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  252.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  253.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  254.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  255.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  256.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  257.     '88 88 00 88 88 87 70 00 00 00 0F F7 77 88 00 88'
  258.     '77 77 70 00 00 00 0F F8 88 88 00 88 88 87 70 00'
  259.     '00 00 0F F7 77 78 00 88 77 77 70 00 00 00 0F FF'
  260.     'FF FF 00 88 88 88 80 00 00 00 B0 00 00 00 BB 00'
  261.     '00 00 0B 00 00 00'
  262. END
  263.  
  264.  
  265. // Vertical slider thumb bitmap for TSlider and HSlider (include\owl\slider.rc)
  266. IDB_VSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  267. BEGIN
  268.     '42 4D 2A 01 00 00 00 00 00 00 76 00 00 00 28 00'
  269.     '00 00 28 00 00 00 09 00 00 00 01 00 04 00 00 00'
  270.     '00 00 B4 00 00 00 00 00 00 00 00 00 00 00 00 00'
  271.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  272.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  273.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  274.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  275.     '00 00 FF FF FF 00 B0 00 00 00 00 00 00 00 00 0B'
  276.     'B0 00 00 00 00 00 00 00 00 0B 0F 88 88 88 88 88'
  277.     '88 88 88 80 08 88 88 88 88 88 88 88 88 80 0F 77'
  278.     '77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
  279.     '77 80 0F 77 FF FF FF FF FF FF F7 80 08 77 FF FF'
  280.     'FF FF FF FF F7 80 0F 70 00 00 00 00 00 00 77 80'
  281.     '08 70 00 00 00 00 00 00 77 80 0F 77 77 77 77 77'
  282.     '77 77 77 80 08 77 77 77 77 77 77 77 77 80 0F 77'
  283.     '77 77 77 77 77 77 77 80 08 77 77 77 77 77 77 77'
  284.     '77 80 0F FF FF FF FF FF FF FF FF F0 08 88 88 88'
  285.     '88 88 88 88 88 80 B0 00 00 00 00 00 00 00 00 0B'
  286.     'B0 00 00 00 00 00 00 00 00 0B'
  287. END
  288.  
  289.  
  290. // Version info.
  291. //
  292. #if !defined(__DEBUG_)
  293. // Non-Debug VERSIONINFO
  294. 1 VERSIONINFO LOADONCALL MOVEABLE 
  295. FILEVERSION 1, 0, 0, 0
  296. PRODUCTVERSION 1, 0, 0, 0
  297. FILEFLAGSMASK 0
  298. FILEFLAGS VS_FFI_FILEFLAGSMASK
  299. FILEOS VOS__WINDOWS16
  300. FILETYPE VFT_APP
  301. BEGIN
  302.     BLOCK "StringFileInfo"
  303.     BEGIN
  304.         // Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
  305.         BLOCK "040904E4"                            // Matches VarFileInfo Translation hex value.
  306.         BEGIN
  307.             VALUE "CompanyName", "\000"
  308.             VALUE "FileDescription", "tooltest for Windows\000"
  309.             VALUE "FileVersion", "1.0\000"
  310.             VALUE "InternalName", "tooltest\000"
  311.             VALUE "LegalCopyright", "Copyright ⌐ 1994. All Rights Reserved.\000"
  312.             VALUE "LegalTrademarks", "Windows /231 is a trademark of Microsoft Corporation\000"
  313.             VALUE "OriginalFilename", "tooltest.EXE\000"
  314.             VALUE "ProductName", "tooltest\000"
  315.             VALUE "ProductVersion", "1.0\000"
  316.         END
  317.     END
  318.  
  319.     BLOCK "VarFileInfo"
  320.     BEGIN
  321.         VALUE "Translation", 0x04e4, 0x0409        // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  322.     END
  323.  
  324. END
  325. #else
  326.  
  327. // Debug VERSIONINFO
  328. 1 VERSIONINFO LOADONCALL MOVEABLE 
  329. FILEVERSION 1, 0, 0, 0
  330. PRODUCTVERSION 1, 0, 0, 0
  331. FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
  332. FILEFLAGS VS_FFI_FILEFLAGSMASK
  333. FILEOS VOS__WINDOWS16
  334. FILETYPE VFT_APP
  335. BEGIN
  336.     BLOCK "StringFileInfo"
  337.     BEGIN
  338.         // Language type = U.S. English (0x0409) and Character Set = Windows, Multilingual(0x04e4)
  339.         BLOCK "040904E4"                            // Matches VarFileInfo Translation hex value.
  340.         BEGIN
  341.             VALUE "CompanyName", "\000"
  342.             VALUE "FileDescription", "tooltest for Windows\000"
  343.             VALUE "FileVersion", "1.0\000"
  344.             VALUE "InternalName", "tooltest\000"
  345.             VALUE "LegalCopyright", "Copyright ⌐ 1994. All Rights Reserved.\000"
  346.             VALUE "LegalTrademarks", "Windows \231 is a trademark of Microsoft Corporation\000"
  347.             VALUE "OriginalFilename", "tooltest.EXE\000"
  348.             VALUE "ProductName", "tooltest\000"
  349.             VALUE "ProductVersion", "1.0\000"
  350.             VALUE "SpecialBuild", "Debug Version\000"
  351.             VALUE "PrivateBuild", "Built by \000"
  352.         END
  353.     END
  354.  
  355.     BLOCK "VarFileInfo"
  356.     BEGIN
  357.         VALUE "Translation", 0x04e4, 0x0409        // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  358.     END
  359.  
  360. END
  361. #endif
  362.