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

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