home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / tybc4 / xped5 / xped5app.rc < prev    next >
Encoding:
Text File  |  1994-02-13  |  14.2 KB  |  381 lines

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