home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / APXSDI.PAK / APXSDAPP.RC < prev    next >
Encoding:
Text File  |  1997-05-06  |  12.3 KB  |  407 lines

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