//---------------------------------------------------------------------------- // Project Rect // jyu // Copyright © Vesa Lappalainen 1996. All Rights Reserved. // // SUBSYSTEM: Rect Application // FILE: rectapp.rc // AUTHOR: vl // // OVERVIEW // ~~~~~~~~ // All resources defined here. // //---------------------------------------------------------------------------- #if !defined(WORKSHOP_INVOKED) # include #endif #include "rectapp.rh" IDM_MDI MENU { POPUP "&File" { MENUITEM "&New", CM_MDIFILENEW MENUITEM "&Open...", CM_MDIFILEOPEN MENUITEM "&Close", CM_FILECLOSE MENUITEM SEPARATOR MENUITEM "&Save", CM_FILESAVE, GRAYED MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED MENUITEM SEPARATOR MENUITEM "Print Pre&view...", CM_FILEPRINTPREVIEW, GRAYED MENUITEM "&Print...", CM_FILEPRINT, GRAYED MENUITEM "P&rint Setup...", CM_FILEPRINTERSETUP, GRAYED MENUITEM SEPARATOR MENUITEM "Sen&d...", CM_FILESEND, GRAYED MENUITEM SEPARATOR MENUITEM "E&xit\tAlt+F4", CM_EXIT } MENUITEM SEPARATOR POPUP "&Edit" { MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED MENUITEM SEPARATOR MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED MENUITEM SEPARATOR MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED } POPUP "&Search" { MENUITEM "&Find...", CM_EDITFIND, GRAYED MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED } MENUITEM SEPARATOR MENUITEM SEPARATOR MENUITEM SEPARATOR POPUP "&Window" { MENUITEM "&Cascade", CM_CASCADECHILDREN MENUITEM "&Tile", CM_TILECHILDREN MENUITEM "&Add View", CM_VIEWCREATE MENUITEM "Arrange &Icons", CM_ARRANGEICONS MENUITEM "C&lose All", CM_CLOSECHILDREN } MENUITEM SEPARATOR POPUP "&Help" { MENUITEM "&About...", CM_HELPABOUT } } // Accelerator table for short-cut to menu commands. (include/owl/editfile.rc) // IDM_MDI ACCELERATORS { VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL VK_DELETE, CM_EDITDELETE, VIRTKEY VK_BACK, CM_EDITUNDO, VIRTKEY, ALT VK_F3, CM_EDITFINDNEXT, VIRTKEY } // Menu merged in when TEditView is active, notice the extra MENUITEM SEPARATORs which are // for menu negotation. These separators are used as group markers by OWL. // IDM_EDITVIEW MENU LOADONCALL MOVEABLE PURE DISCARDABLE BEGIN MENUITEM SEPARATOR POPUP "&Edit" BEGIN MENUITEM "&Undo\aCtrl+Z", CM_EDITUNDO MENUITEM SEPARATOR MENUITEM "&Cut\aCtrl+X", CM_EDITCUT MENUITEM "C&opy\aCtrl+C", CM_EDITCOPY MENUITEM "&Paste\aCtrl+V", CM_EDITPASTE MENUITEM "&Delete\aDel", CM_EDITDELETE MENUITEM "C&lear All\aCtrl+Del", CM_EDITCLEAR END POPUP "&Search" BEGIN MENUITEM "&Find...", CM_EDITFIND MENUITEM "&Replace...", CM_EDITREPLACE MENUITEM "&Next\aF3", CM_EDITFINDNEXT END MENUITEM SEPARATOR MENUITEM SEPARATOR MENUITEM SEPARATOR MENUITEM SEPARATOR END // Menu merged in when TListView is active, notice the extra MENUITEM SEPARATORs which are // for menu negotation. These separators are used as group markers by OWL. // IDM_LISTVIEW MENU LOADONCALL MOVEABLE PURE DISCARDABLE BEGIN MENUITEM SEPARATOR POPUP "&Edit" BEGIN MENUITEM "&Undo\aCtrl+Z", CM_EDITUNDO MENUITEM SEPARATOR MENUITEM "&Cut\aCtrl+X", CM_EDITCUT MENUITEM "C&opy\aCtrl+C", CM_EDITCOPY MENUITEM "&Paste\aCtrl+V", CM_EDITPASTE MENUITEM "&Delete\aDel", CM_EDITDELETE MENUITEM "&Add Item\aIns", CM_EDITADD MENUITEM "&Edit Item\aEnter", CM_EDITEDIT MENUITEM "C&lear All\aCtrl+Del", CM_EDITCLEAR END MENUITEM SEPARATOR MENUITEM SEPARATOR MENUITEM SEPARATOR MENUITEM SEPARATOR END IDM_DOCMANAGERFILE MENU LOADONCALL MOVEABLE PURE DISCARDABLE BEGIN MENUITEM "&New", CM_MDIFILENEW MENUITEM "&Open...", CM_MDIFILEOPEN MENUITEM "&Close", CM_FILECLOSE MENUITEM SEPARATOR MENUITEM "&Save", CM_FILESAVE, GRAYED MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED MENUITEM SEPARATOR MENUITEM "Print Pre&view...", CM_FILEPRINTPREVIEW, GRAYED MENUITEM "&Print...", CM_FILEPRINT, GRAYED MENUITEM "P&rint Setup...", CM_FILEPRINTERSETUP, GRAYED MENUITEM SEPARATOR MENUITEM "E&xit\tAlt+F4", CM_EXIT END // Table of help hints displayed in the status bar. // STRINGTABLE BEGIN -1, "File/document operations" CM_MDIFILENEW, "Creates a new document" CM_MDIFILEOPEN, "Opens an existing document" CM_VIEWCREATE, "Creates a new view for this document" CM_FILEREVERT, "Reverts changes to last document save" CM_FILECLOSE, "Closes the active document" CM_FILESAVE, "Saves the active document" CM_FILESAVEAS, "Saves the active document with a new name" CM_FILEPRINT, "Prints the active document" CM_FILEPRINTERSETUP, "Sets print characteristics for the active document" CM_FILEPRINTPREVIEW, "Displays full pages as read-only" CM_FILESEND, "Sends the active document using electronic mail" CM_EXIT, "Quits Rect and prompts to save the documents" CM_EDITUNDO-1, "Edit operations" CM_EDITUNDO, "Reverses the last operation" CM_EDITCUT, "Cuts the selection and puts it on the Clipboard" CM_EDITCOPY, "Copies the selection and puts it on the Clipboard" CM_EDITPASTE, "Inserts the Clipboard contents at the insertion point" CM_EDITDELETE, "Deletes the selection" CM_EDITCLEAR, "Clears the active document" CM_EDITADD, "Inserts a new line" CM_EDITEDIT, "Edits the current line" CM_EDITFIND-1, "Search/replace operations" CM_EDITFIND, "Finds the specified text" CM_EDITREPLACE, "Finds the specified text and changes it" CM_EDITFINDNEXT, "Finds the next match" CM_CASCADECHILDREN-1, "Window arrangement and selection" CM_CASCADECHILDREN, "Cascades open windows" CM_TILECHILDREN, "Tiles open windows" CM_ARRANGEICONS, "Arranges iconic windows along bottom" CM_CLOSECHILDREN, "Closes all open windows" CM_HELPABOUT-1, "Access About" CM_HELPABOUT, "About the Rect application" END // // OWL string table // // EditFile (include/owl/editfile.rc and include/owl/editsear.rc) // STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE BEGIN IDS_CANNOTFIND, "Cannot find ""%s""." IDS_UNABLEREAD, "Unable to read file %s from disk." IDS_UNABLEWRITE, "Unable to write file %s to disk." IDS_FILECHANGED, "The text in the %s file has changed.\n\nDo you want to save the changes?" IDS_FILEFILTER, "Text files|*.txt|AllFiles|*.*|" END // ListView (include/owl/listview.rc) // STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE BEGIN IDS_LISTNUM, "Line number %d" END // Doc/View (include/owl/docview.rc) // STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE BEGIN IDS_DOCMANAGERFILE, "&File" IDS_DOCLIST, "--Document Type--" IDS_VIEWLIST, "--View Type--" IDS_UNTITLED, "Document" IDS_UNABLEOPEN, "Unable to open document." IDS_UNABLECLOSE, "Unable to close document." IDS_READERROR, "Document read error." IDS_WRITEERROR, "Document write error." IDS_DOCCHANGED, "The document has been changed.\n\nDo you want to save the changes?" IDS_NOTCHANGED, "The document has not been changed." IDS_NODOCMANAGER, "Document Manager not present." IDS_NOMEMORYFORVIEW, "Insufficient memory for view." IDS_DUPLICATEDOC, "Document already loaded." END // Printer (include/owl/printer.rc) // STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE BEGIN IDS_PRNON, " on " IDS_PRNERRORTEMPLATE, "'%s' not printed. %s." IDS_PRNOUTOFMEMORY, "Out of memory" IDS_PRNOUTOFDISK, "Out of disk space" IDS_PRNCANCEL, "Printing canceled" IDS_PRNMGRABORT, "Printing aborted in Print Manager" IDS_PRNGENERROR, "Error encountered during print" IDS_PRNERRORCAPTION, "Print Error" END // Exception string resources (include/owl/except.rc) // STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE BEGIN IDS_OWLEXCEPTION, "ObjectWindows Exception" IDS_UNHANDLEDXMSG, "Unhandled Exception" IDS_OKTORESUME, "OK to resume?" IDS_UNKNOWNEXCEPTION, "Unknown exception" IDS_UNKNOWNERROR, "Unknown error" IDS_NOAPP, "No application object" IDS_OUTOFMEMORY, "Out of memory" IDS_INVALIDMODULE, "Invalid module specified for window" IDS_INVALIDMAINWINDOW,"Invalid MainWindow" IDS_VBXLIBRARYFAIL, "VBX Library init failure" IDS_INVALIDWINDOW, "Invalid window %s" IDS_INVALIDCHILDWINDOW,"Invalid child window %s" IDS_INVALIDCLIENTWINDOW,"Invalid client window %s" IDS_CLASSREGISTERFAIL,"Class registration fail for window %s" IDS_CHILDREGISTERFAIL,"Child class registration fail for window %s" IDS_WINDOWCREATEFAIL, "Create fail for window %s" IDS_WINDOWEXECUTEFAIL,"Execute fail for window %s" IDS_CHILDCREATEFAIL, "Child create fail for window %s" IDS_MENUFAILURE, "Menu creation failure" IDS_VALIDATORSYNTAX, "Validator syntax error" IDS_PRINTERERROR, "Printer error" IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s" IDS_LAYOUTBADRELWIN, "Invalid relative window specified in layout constraint in window %s" IDS_GDIFAILURE, "GDI failure" IDS_GDIALLOCFAIL, "GDI allocate failure" IDS_GDICREATEFAIL, "GDI creation failure" IDS_GDIRESLOADFAIL, "GDI resource load failure" IDS_GDIFILEREADFAIL, "GDI file read failure" IDS_GDIDELETEFAIL, "GDI object %X delete failure" IDS_GDIDESTROYFAIL, "GDI object %X destroy failure" IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X" END // General Window's status bar messages. (include/owl/statusba.rc) // STRINGTABLE BEGIN IDS_MODES "EXT|CAPS|NUM|SCRL|OVR|REC" IDS_MODESOFF " | | | | | " SC_SIZE, "Changes the size of the window" SC_MOVE, "Moves the window to another position" SC_MINIMIZE, "Reduces the window to an icon" SC_MAXIMIZE, "Enlarges the window to it maximum size" SC_RESTORE, "Restores the window to its previous size" SC_CLOSE, "Closes the window" SC_TASKLIST, "Opens task list" SC_NEXTWINDOW, "Switches to next window" END // Validator messages (include/owl/validate.rc) // STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE BEGIN IDS_VALPXPCONFORM "Input does not conform to picture:\n""%s""" IDS_VALINVALIDCHAR "Invalid character in input" IDS_VALNOTINRANGE "Value is not in the range %ld to %ld." IDS_VALNOTINLIST "Input is not in valid-list" END // // Bitmaps used by the speedbar. Each bitmap is associated with a // particular menu command. // CM_MDIFILENEW BITMAP "new.bmp" CM_MDIFILEOPEN BITMAP "open.bmp" CM_FILESAVE BITMAP "save.bmp" CM_EDITUNDO BITMAP "undo.bmp" CM_EDITCUT BITMAP "cut.bmp" CM_EDITCOPY BITMAP "copy.bmp" CM_EDITPASTE BITMAP "paste.bmp" CM_EDITFIND BITMAP "find.bmp" CM_EDITFINDNEXT BITMAP "findnext.bmp" CM_FILEPRINTPREVIEW BITMAP "preview.bmp" CM_FILEPRINT BITMAP "print.bmp" // // Print Preview speed bar bitmaps // APX_PPR_PREVIOUS BITMAP "previous.bmp" APX_PPR_NEXT BITMAP "next.bmp" APX_PPR_ONEUP BITMAP "preview1.bmp" APX_PPR_TWOUP BITMAP "preview2.bmp" APX_PPR_DONE BITMAP "prexit.bmp" // // Misc application definitions // // MDI document ICON // IDI_DOC ICON "mdichild.ico" // Application ICON // IDI_MDIAPPLICATION ICON "appldocv.ico" // About box. // IDD_ABOUT DIALOG 12, 17, 204, 65 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "About Rect" FONT 8, "MS Sans Serif" { CONTROL "Version", IDC_VERSION, "STATIC", SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 2, 14, 200, 8 CONTROL "Rect Application", -1, "STATIC", SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 2, 4, 200, 8 CONTROL "", IDC_COPYRIGHT, "STATIC", SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 2, 27, 200, 17 CONTROL "", IDC_DEBUG, "STATIC", SS_RIGHT | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 136, 55, 66, 8 CONTROL IDI_MDIAPPLICATION, -1, "STATIC", SS_ICON | WS_CHILD | WS_VISIBLE, 2, 2, 34, 34 CONTROL "OK", IDOK, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 82, 48, 40, 14 } // Printer abort box. // IDD_ABORTDIALOG DIALOG 84, 51, 130, 60 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "Printing" BEGIN PUSHBUTTON "Cancel", IDCANCEL, 46, 40, 40, 14, WS_TABSTOP CTEXT "Now printing Page %d of", ID_PAGE, 0, 8, 130, 8, SS_CENTER | NOT WS_VISIBLE | WS_GROUP CTEXT "Now printing", -1, 0, 8, 130, 8, CTEXT "'%s' on the", ID_TITLE, 0, 16, 130, 8 CTEXT "", ID_PORT, 0, 24, 130, 8, SS_CENTER | NOT WS_VISIBLE | WS_GROUP CTEXT "%s on %s", ID_DEVICE, 0, 24, 130, 8 END // TInputDialog class dialog box. // IDD_INPUTDIALOG DIALOG 20, 24, 180, 64 STYLE WS_POPUP | WS_CAPTION | DS_SETFONT FONT 8, "Helv" BEGIN LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12 DEFPUSHBUTTON "&OK", IDOK, 47, 42, 40, 14 PUSHBUTTON "&Cancel", IDCANCEL, 93, 42, 40, 14 END // Slider thumb bitmaps for TSlider and TVSlider (include/owl/slider.rc) // IDB_HSLIDERTHUMB BITMAP "hslider.bmp" IDB_VSLIDERTHUMB BITMAP "hslider.bmp" // Version info. // #if !defined(__DEBUG_) // Non-Debug VERSIONINFO // 1 VERSIONINFO LOADONCALL MOVEABLE FILEVERSION 1, 0, 0, 0 PRODUCTVERSION 1, 0, 0, 0 FILEFLAGSMASK 0 FILEFLAGS VS_FFI_FILEFLAGSMASK #if defined(BI_PLAT_WIN32) FILEOS VOS__WINDOWS32 #else FILEOS VOS__WINDOWS16 #endif FILETYPE VFT_APP BEGIN BLOCK "StringFileInfo" BEGIN // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4) BLOCK "040904E4" // Matches VarFileInfo Translation hex value. BEGIN VALUE "CompanyName", "jyu\000" VALUE "FileDescription", "Rect for Windows\000" VALUE "FileVersion", "1.0\000" VALUE "InternalName", "Rect\000" VALUE "LegalCopyright", "Copyright © Vesa Lappalainen 1996. All Rights Reserved.\000" VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000" VALUE "OriginalFilename", "Rect.exe\000" VALUE "ProductName", "Rect\000" VALUE "ProductVersion", "1.0\000" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 0x04e4 // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252 END END #else // Debug VERSIONINFO // 1 VERSIONINFO LOADONCALL MOVEABLE FILEVERSION 1, 0, 0, 0 PRODUCTVERSION 1, 0, 0, 0 FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD FILEFLAGS VS_FFI_FILEFLAGSMASK #if defined(BI_PLAT_WIN32) FILEOS VOS__WINDOWS32 #else FILEOS VOS__WINDOWS16 #endif FILETYPE VFT_APP BEGIN BLOCK "StringFileInfo" BEGIN // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4) BLOCK "040904E4" // Matches VarFileInfo Translation hex value. BEGIN VALUE "CompanyName", "jyu\000" VALUE "FileDescription", "Rect for Windows\000" VALUE "FileVersion", "1.0\000" VALUE "InternalName", "Rect\000" VALUE "LegalCopyright", "Copyright © Vesa Lappalainen 1996. All Rights Reserved.\000" VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000" VALUE "OriginalFilename", "Rect.exe\000" VALUE "ProductName", "Rect\000" VALUE "ProductVersion", "1.0\000" VALUE "SpecialBuild", "Debug Version\000" VALUE "PrivateBuild", "Built by vl\000" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 0x04e4 // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252 END END #endif