home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLINC.PAK / EDITFILE.RC < prev    next >
Text File  |  1995-08-29  |  2KB  |  73 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Resources to use with TEditFile.
  6. //----------------------------------------------------------------------------
  7.  
  8. #include <owl/editfile.rh>
  9.  
  10. #if defined(RC_INVOKED)
  11.  
  12. #if !defined(NO_IDM_EDITFILE) && !defined(__IDM_EDITFILE)
  13. #define __IDM_EDITFILE
  14. IDM_EDITFILE MENU LOADONCALL MOVEABLE PURE DISCARDABLE
  15. {
  16.   POPUP "&File"
  17.   {
  18.     MenuItem  "&New",        CM_FILENEW
  19.     MenuItem  "&Open...",    CM_FILEOPEN
  20.     MenuItem  "&Save",       CM_FILESAVE
  21.     MenuItem  "Save &As...", CM_FILESAVEAS
  22.     MenuItem  SEPARATOR
  23.     MenuItem  "E&xit",       CM_EXIT
  24.   }
  25.   POPUP "&Edit"
  26.   {
  27.     MenuItem  "&Undo\aCtrl+Z",        CM_EDITUNDO
  28.     MenuItem  SEPARATOR
  29.     MenuItem  "&Cut\aCtrl+X",         CM_EDITCUT
  30.     MenuItem  "C&opy\aCtrl+C",        CM_EDITCOPY
  31.     MenuItem  "&Paste\aCtrl+V",       CM_EDITPASTE
  32.     MenuItem  "&Delete\aDel",         CM_EDITDELETE
  33.     MenuItem  "C&lear All\aCtrl+Del", CM_EDITCLEAR
  34.   }
  35.   POPUP "&Search"
  36.   {
  37.     MenuItem  "&Find...",    CM_EDITFIND
  38.     MenuItem  "&Replace...", CM_EDITREPLACE
  39.     MenuItem  "&Next\aF3",   CM_EDITFINDNEXT
  40.   }
  41. }
  42. #endif
  43. #undef NO_IDM_EDITFILE
  44.  
  45. #if !defined(NO_IDA_EDITFILE) && !defined(__IDA_EDITFILE)
  46. #define __IDA_EDITFILE
  47. IDA_EDITFILE ACCELERATORS
  48. {
  49.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  50.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  51.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  52.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  53.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  54.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  55. }
  56. #endif
  57. #undef NO_IDA_EDITFILE
  58.  
  59. #if !defined(NO_IDS_EDITFILE) && !defined(__IDS_EDITFILE)
  60. #define __IDS_EDITFILE
  61. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  62. {
  63.   IDS_UNTITLEDFILE, "Untitled"
  64.   IDS_UNABLEREAD, "Unable to read file %s from disk."
  65.   IDS_UNABLEWRITE, "Unable to write file %s to disk."
  66.   IDS_FILECHANGED, "The text in the %s file has changed.\n\nDo you want to save the changes?"
  67.   IDS_FILEFILTER, "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
  68. }
  69. #endif
  70. #undef NO_IDS_EDITFILE
  71.  
  72. #endif  // defined(RC_INVOKED)
  73.