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

  1. //----------------------------------------------------------------------------
  2. //  Project ApxDlg
  3. //  Borland International
  4. //  Copyright ⌐ 1996. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:  ApxDlg Application
  7. //  FILE:     apxdlgap.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 "apxdlgap.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 "E&xit\tAlt+F4", CM_EXIT
  33.   END
  34.  
  35.   MENUITEM SEPARATOR
  36.  
  37.   POPUP "&Edit"
  38.   BEGIN
  39.     MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED
  40.     MENUITEM SEPARATOR
  41.     MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED
  42.     MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED
  43.     MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED
  44.     MENUITEM SEPARATOR
  45.     MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED
  46.     MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED
  47.   END
  48.  
  49.   POPUP "&Search"
  50.   BEGIN
  51.     MENUITEM "&Find...", CM_EDITFIND, GRAYED
  52.     MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED
  53.     MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED
  54.   END
  55.  
  56.   MENUITEM SEPARATOR
  57.  
  58.   MENUITEM SEPARATOR
  59.  
  60.   MENUITEM SEPARATOR
  61.  
  62.  
  63.   MENUITEM SEPARATOR
  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. //
  75. IDM_SDI ACCELERATORS
  76. BEGIN
  77.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  78.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  79.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  80.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  81.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  82.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  83. END
  84.  
  85.  
  86.  
  87. // Table of help hints displayed in the status bar.
  88. //
  89. STRINGTABLE
  90. BEGIN
  91.   -1,                   "File/document operations"
  92.   CM_FILENEW,           "Creates a new window"
  93.   CM_FILEOPEN,          "Opens a window"
  94.   CM_FILECLOSE,         "Closes the active document"
  95.   CM_FILESAVE,          "Saves the active document"
  96.   CM_FILESAVEAS,        "Saves the active document with a new name"
  97.   CM_EXIT,              "Quits ApxDlg and prompts to save the documents"
  98.   CM_EDITUNDO-1,        "Edit operations"
  99.   CM_EDITUNDO,          "Reverses the last operation"
  100.   CM_EDITCUT,           "Cuts the selection and puts it on the Clipboard"
  101.   CM_EDITCOPY,          "Copies the selection and puts it on the Clipboard"
  102.   CM_EDITPASTE,         "Inserts the Clipboard contents at the insertion point"
  103.   CM_EDITDELETE,        "Deletes the selection"
  104.   CM_EDITCLEAR,         "Clears the active document"
  105.   CM_EDITADD,           "Inserts a new line"
  106.   CM_EDITEDIT,          "Edits the current line"
  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_HELPABOUT-1,       "Access About"
  112.   CM_HELPABOUT,         "About the ApxDlg application"
  113. END
  114.  
  115.  
  116. //
  117. // OWL string table
  118. //
  119.  
  120. // EditFile (include/owl/editfile.rc and include/owl/editsear.rc)
  121. //
  122. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  123. BEGIN
  124.   IDS_CANNOTFIND,       "Cannot find ""%s""."
  125.   IDS_UNTITLED,         "Document"
  126.   IDS_UNABLEREAD,       "Unable to read file %s from disk."
  127.   IDS_UNABLEWRITE,      "Unable to write file %s to disk."
  128.   IDS_FILECHANGED,      "The text in the %s file has changed.\n\nDo you want to save the changes?"
  129.   IDS_FILEFILTER,       "Text files|*.txt|AllFiles|*.*|"
  130. END
  131.  
  132.  
  133. // Exception string resources (include/owl/except.rc)
  134. //
  135. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  136. BEGIN
  137.   IDS_OWLEXCEPTION,     "ObjectWindows Exception"
  138.   IDS_UNHANDLEDXMSG,    "Unhandled Exception"
  139.   IDS_OKTORESUME,       "OK to resume?"
  140.   IDS_UNKNOWNEXCEPTION, "Unknown exception"
  141.  
  142.   IDS_UNKNOWNERROR,     "Unknown error"
  143.   IDS_NOAPP,            "No application object"
  144.   IDS_OUTOFMEMORY,      "Out of memory"
  145.   IDS_INVALIDMODULE,    "Invalid module specified for window"
  146.   IDS_INVALIDMAINWINDOW,"Invalid MainWindow"
  147.   IDS_VBXLIBRARYFAIL,   "VBX Library init failure"
  148.  
  149.   IDS_INVALIDWINDOW,    "Invalid window %s"
  150.   IDS_INVALIDCHILDWINDOW,"Invalid child window %s"
  151.   IDS_INVALIDCLIENTWINDOW,"Invalid client window %s"
  152.  
  153.   IDS_CLASSREGISTERFAIL,"Class registration fail for window %s"
  154.   IDS_CHILDREGISTERFAIL,"Child class registration fail for window %s"
  155.   IDS_WINDOWCREATEFAIL, "Create fail for window %s"
  156.   IDS_WINDOWEXECUTEFAIL,"Execute fail for window %s"
  157.   IDS_CHILDCREATEFAIL,  "Child create fail for window %s"
  158.  
  159.   IDS_MENUFAILURE,      "Menu creation failure"
  160.   IDS_VALIDATORSYNTAX,  "Validator syntax error"
  161.   IDS_PRINTERERROR,     "Printer error"
  162.  
  163.   IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s"
  164.   IDS_LAYOUTBADRELWIN,  "Invalid relative window specified in layout constraint in window %s"
  165.  
  166.   IDS_GDIFAILURE,       "GDI failure"
  167.   IDS_GDIALLOCFAIL,     "GDI allocate failure"
  168.   IDS_GDICREATEFAIL,    "GDI creation failure"
  169.   IDS_GDIRESLOADFAIL,   "GDI resource load failure"
  170.   IDS_GDIFILEREADFAIL,  "GDI file read failure"
  171.   IDS_GDIDELETEFAIL,    "GDI object %X delete failure"
  172.   IDS_GDIDESTROYFAIL,   "GDI object %X destroy failure"
  173.   IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X"
  174. END
  175.  
  176.  
  177. // General Window's status bar messages. (include/owl/statusba.rc)
  178. //
  179. STRINGTABLE
  180. BEGIN
  181.   IDS_MODES             "EXT|CAPS|NUM|SCRL|OVR|REC"
  182.   IDS_MODESOFF          "   |  |   |  |   |   "
  183.   SC_SIZE,              "Changes the size of the window"
  184.   SC_MOVE,              "Moves the window to another position"
  185.   SC_MINIMIZE,          "Reduces the window to an icon"
  186.   SC_MAXIMIZE,          "Enlarges the window to it maximum size"
  187.   SC_RESTORE,           "Restores the window to its previous size"
  188.   SC_CLOSE,             "Closes the window"
  189.   SC_TASKLIST,          "Opens task list"
  190.   SC_NEXTWINDOW,        "Switches to next window"
  191. END
  192.  
  193.  
  194. // Validator messages (include/owl/validate.rc)
  195. //
  196. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  197. BEGIN
  198.   IDS_VALPXPCONFORM     "Input does not conform to picture:\n""%s"""
  199.   IDS_VALINVALIDCHAR    "Invalid character in input"
  200.   IDS_VALNOTINRANGE     "Value is not in the range %ld to %ld."
  201.   IDS_VALNOTINLIST      "Input is not in valid-list"
  202. END
  203.  
  204.  
  205. //
  206. // Misc application definitions
  207. //
  208.  
  209. // Application ICON
  210. //
  211. IDI_SDIAPPLICATION ICON "applsdi.ico"
  212.  
  213.  
  214. // Client Dialog
  215. //
  216. IDD_CLIENT DIALOG 6, 15, 207, 111
  217. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
  218. CAPTION "Dialog Client"
  219. FONT 8, "MS Sans Serif"
  220. BEGIN
  221.   DEFPUSHBUTTON "OK", IDOK, 40, 88, 50, 14
  222.   PUSHBUTTON "Cancel", IDCANCEL, 116, 88, 50, 14
  223. END
  224.  
  225.  
  226. // About box.
  227. //
  228.  
  229.  
  230. // TInputDialog class dialog box.
  231. //
  232. IDD_INPUTDIALOG DIALOG 20, 24, 180, 64
  233. STYLE WS_POPUP | WS_CAPTION | DS_SETFONT
  234. FONT 8, "Helv"
  235. BEGIN
  236.   LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX
  237.   CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12
  238.   DEFPUSHBUTTON "&OK", IDOK, 47, 42, 40, 14
  239.   PUSHBUTTON "&Cancel", IDCANCEL, 93, 42, 40, 14
  240. END
  241.  
  242. // Slider thumb bitmaps for TSlider and TVSlider (include/owl/slider.rc)
  243. //
  244. IDB_HSLIDERTHUMB BITMAP "hslider.bmp"
  245. IDB_VSLIDERTHUMB BITMAP "vslider.bmp"
  246.  
  247. // Version info.
  248. //
  249. #if !defined(__DEBUG_)
  250.  
  251. // Non-Debug VERSIONINFO
  252. //
  253. 1 VERSIONINFO LOADONCALL MOVEABLE
  254. FILEVERSION 1, 0, 0, 0
  255. PRODUCTVERSION 1, 0, 0, 0
  256. FILEFLAGSMASK 0
  257. FILEFLAGS VS_FFI_FILEFLAGSMASK
  258. #if defined(BI_PLAT_WIN32)
  259. FILEOS VOS__WINDOWS32
  260. #else
  261. FILEOS VOS__WINDOWS16
  262. #endif
  263. FILETYPE VFT_APP
  264. BEGIN
  265.   BLOCK "StringFileInfo"
  266.   BEGIN
  267.     // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
  268.     BLOCK "040904E4"              // Matches VarFileInfo Translation hex value.
  269.     BEGIN
  270.       VALUE "CompanyName", "Borland International\000"
  271.       VALUE "FileDescription", "ApxDlg for Windows\000"
  272.       VALUE "FileVersion", "1.0\000"
  273.       VALUE "InternalName", "ApxDlg\000"
  274.       VALUE "LegalCopyright", "Copyright ⌐ 1996. All Rights Reserved.\000"
  275.       VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000"
  276.       VALUE "OriginalFilename", "ApxDlg.exe\000"
  277.       VALUE "ProductName", "ApxDlg\000"
  278.       VALUE "ProductVersion", "1.0\000"
  279.     END
  280.   END
  281.  
  282.   BLOCK "VarFileInfo"
  283.   BEGIN
  284.     VALUE "Translation", 0x0409, 0x04e4    // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  285.   END
  286. END
  287.  
  288. #else
  289.  
  290. // Debug VERSIONINFO
  291. //
  292. 1 VERSIONINFO LOADONCALL MOVEABLE
  293. FILEVERSION 1, 0, 0, 0
  294. PRODUCTVERSION 1, 0, 0, 0
  295. FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
  296. FILEFLAGS VS_FFI_FILEFLAGSMASK
  297. #if defined(BI_PLAT_WIN32)
  298. FILEOS VOS__WINDOWS32
  299. #else
  300. FILEOS VOS__WINDOWS16
  301. #endif
  302. FILETYPE VFT_APP
  303. BEGIN
  304.   BLOCK "StringFileInfo"
  305.   BEGIN
  306.     // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
  307.     BLOCK "040904E4"              // Matches VarFileInfo Translation hex value.
  308.     BEGIN
  309.       VALUE "CompanyName", "Borland International\000"
  310.       VALUE "FileDescription", "ApxDlg for Windows\000"
  311.       VALUE "FileVersion", "1.0\000"
  312.       VALUE "InternalName", "ApxDlg\000"
  313.       VALUE "LegalCopyright", "Copyright ⌐ 1996. All Rights Reserved.\000"
  314.       VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000"
  315.       VALUE "OriginalFilename", "ApxDlg.exe\000"
  316.       VALUE "ProductName", "ApxDlg\000"
  317.       VALUE "ProductVersion", "1.0\000"
  318.       VALUE "SpecialBuild", "Debug Version\000"
  319.       VALUE "PrivateBuild", "Built by \000"
  320.     END
  321.   END
  322.  
  323.   BLOCK "VarFileInfo"
  324.   BEGIN
  325.     VALUE "Translation", 0x0409, 0x04e4    // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  326.   END
  327. END
  328.  
  329. #endif
  330.