Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

275 lines
11 KiB

  1. /*
  2. * Windows Calendar
  3. * Copyright (c) 1985 by Microsoft Corporation, all rights reserved.
  4. * Written by Mark L. Chamberlin, consultant to Microsoft.
  5. *
  6. ****** calendar.rc
  7. *
  8. */
  9. #define RESOURCE
  10. #include "cal.h"
  11. #define GRP WS_GROUP
  12. #define TAB WS_TABSTOP
  13. #define TABGRP WS_TABSTOP | WS_GROUP
  14. #define DLGMODAL WS_POPUP | WS_DLGFRAME | WS_VISIBLE
  15. 1 ICON CAL.ICO
  16. 1 BITMAP ALARMBEL.BMP
  17. 1 MENU PRELOAD DISCARDABLE
  18. BEGIN
  19. POPUP "&File"
  20. BEGIN
  21. MENUITEM "&New",IDCM_NEW
  22. MENUITEM "&Open...",IDCM_OPEN
  23. MENUITEM "&Save",IDCM_SAVE
  24. MENUITEM "Save &As...",IDCM_SAVEAS
  25. MENUITEM "&Print...",IDCM_PRINT
  26. MENUITEM "Page Se&tup...", IDCM_PAGESETUP
  27. MENUITEM "P&rint Setup...", IDCM_PRINTERSETUP
  28. MENUITEM SEPARATOR
  29. MENUITEM "E&xit", IDCM_EXIT
  30. END
  31. POPUP "&Edit"
  32. BEGIN
  33. MENUITEM "Cu&t\tShift+Del",IDCM_CUT
  34. MENUITEM "&Copy\tCtrl+Ins",IDCM_COPY
  35. MENUITEM "&Paste\tShift+Ins",IDCM_PASTE
  36. MENUITEM "&Remove...",IDCM_REMOVE
  37. END
  38. POPUP "&View"
  39. BEGIN
  40. MENUITEM "&Day\tF8",IDCM_DAY
  41. MENUITEM "&Month\tF9",IDCM_MONTH
  42. END
  43. POPUP "&Show"
  44. BEGIN
  45. MENUITEM "&Today",IDCM_TODAY
  46. MENUITEM "&Previous\tCtrl+PgUp",IDCM_PREVIOUS
  47. MENUITEM "&Next\tCtrl+PgDn",IDCM_NEXT
  48. MENUITEM "&Date...\tF4",IDCM_DATE
  49. END
  50. POPUP "&Alarm"
  51. BEGIN
  52. MENUITEM "&Set\tF5",IDCM_SET
  53. MENUITEM "&Controls...",IDCM_CONTROLS
  54. END
  55. POPUP "&Options"
  56. BEGIN
  57. MENUITEM "&Mark...\tF6",IDCM_MARK
  58. MENUITEM "&Special Time...\tF7",IDCM_SPECIALTIME
  59. MENUITEM "&Day Settings...",IDCM_DAYSETTINGS
  60. END
  61. #ifndef NOHELP
  62. POPUP "&Help"
  63. BEGIN
  64. MENUITEM "&Contents\tF1", IDCM_HELP
  65. MENUITEM "&Search for Help On...", IDCM_SEARCH
  66. MENUITEM "&How to Use Help", IDCM_USINGHELP
  67. MENUITEM SEPARATOR
  68. MENUITEM "&About Calendar...", IDCM_ABOUT
  69. END
  70. #else
  71. POPUP "&Info"
  72. BEGIN
  73. MENUITEM "&About Calendar...", IDCM_ABOUT
  74. END
  75. #endif /*NOHELP*/
  76. END
  77. 1 ACCELERATORS PRELOAD DISCARDABLE
  78. BEGIN
  79. VK_PRIOR, IDCM_PREVIOUS, VIRTKEY, CONTROL
  80. VK_NEXT, IDCM_NEXT, VIRTKEY, CONTROL
  81. #ifndef NOHELP
  82. VK_F1, IDCM_HELP, VIRTKEY
  83. #endif /*NOHELP*/
  84. VK_F4, IDCM_DATE, VIRTKEY
  85. VK_F5, IDCM_SET, VIRTKEY
  86. VK_F6, IDCM_MARK, VIRTKEY
  87. VK_F7, IDCM_SPECIALTIME, VIRTKEY
  88. VK_F8, IDCM_DAY, VIRTKEY
  89. VK_F9, IDCM_MONTH, VIRTKEY
  90. VK_INSERT, IDCM_COPY, VIRTKEY, CONTROL
  91. /* Tandyt wants Ctrl+Home to goto start time
  92. * and Ctrl+End to goto start time + 12 hours.
  93. * 26-Mar-1987.
  94. */
  95. VK_HOME, IDCM_START, VIRTKEY, CONTROL
  96. VK_END, IDCM_START12, VIRTKEY, CONTROL
  97. END
  98. /* Wed 24-May-1989 c-kraigb, broke up massive stringtable into
  99. smaller chunks. */
  100. /* !!! WARNING - the total length of all the strings (including a zero
  101. byte terminator for each string) must not exceed CCHSTRINGSMAX, which
  102. is defined in CAL.H. If it does, CalInit should detect the problem
  103. and prevent Calendar from running. If this happens, CCHSTRINGS must
  104. be increased, and it may also be necessary to increase the initial
  105. heap size in CALENDAR.DEF too.
  106. */
  107. STRINGTABLE PRELOAD DISCARDABLE
  108. BEGIN
  109. /* Note to translators!!
  110. The following string (IDS_MERGE1) is the "merge spec" string. It must
  111. be a unique TWO CHARACTER string that occurs in no other strings for
  112. this application. In the strings that follow, every occurrence of the
  113. merge spec will be replaced with message specific string variables,
  114. such as filenames, dates, etc. */
  115. IDS_MERGE1 "%%"
  116. IDS_UNTITLED, "(Untitled)"
  117. IDS_CALENDAR, "Calendar"
  118. IDS_BADDATE, "Type the date, using the following format: %%."
  119. IDS_BADDATERANGE, "The specified dates do not fall between 1980 and 2099, the format is invalid, or a later date precedes an earlier date. Use the following format to specify the date: %%."
  120. IDS_BADTIME, "Use this format '%%' to type the time in the Starting Time text box."
  121. IDS_NOCREATECHANGEFILE, "Cannot create to the temporary change file.\nChanges made to this file will not be saved."
  122. IDS_NOCHANGEFILE, "Cannot save temp file.\n\nCalendar will discard it."
  123. IDS_ERRORWRITINGCHANGES,"Cannot save changes.\nThe file is read-only or is currently being used by another application.\n\nWait until the application is finished, or use the Properties command in File Manager to change the file's attributes."
  124. IDS_ERRORREADINGDATE, "Cannot read a date from the file."
  125. IDS_TIMETOSAVE, "The temporary change file is full.\nUse the Save or Save As command before making any more changes."
  126. IDS_OUTOFMEMORY, "Not enough memory available to perform this operation.\nQuit one or more applications to increase available memory, and then try again."
  127. IDS_RENAMEFAILED, "Could not save the file under the existing name.\nThe file was saved under the name %% instead."
  128. IDS_SAVEFAILED, "Cannot save the file.\nVerify that the path and filename are correct."
  129. IDS_DISKFULL, "Not enough disk space to save file.\nDelete one or more files to increase available disk space, and then try again."
  130. IDS_FILEEXISTS, "The %% file already exists.\n\nDo you want to overwrite it?"
  131. IDS_SAVECHANGES, "The %% file has changed.\n\nDo you want to save the changes?"
  132. IDS_FILENOTFOUND, "Cannot find the specified file.\nVerify that the path and filename are correct."
  133. IDS_NOTCALFILE, "The selected file is not in the correct format for use with Calendar.\n\nCreate a new file or open a file with the .CAL extension."
  134. IDS_CANNOTREADFILE, "Cannot read file."
  135. IDS_BADEARLYRING, "Type an Early Ring period between 0 and 10 minutes."
  136. IDS_NOTSPECIALTIME, "Not a special time."
  137. IDS_NOSUCHTIME, "Specified time not found."
  138. IDS_TIMEALREADYINUSE, "You have already specified this value as a Special Time."
  139. IDS_CANNOTPRINT, "Cannot print the %% file.\nVerify that your printer is connected and configured properly."
  140. /* !!! WARNING - The length of this string must not exceed 50 bytes -
  141. 49 characters + 1 terminating 0.
  142. If it is made longer than 50 bytes, CCHSZCALENDARDASH
  143. must be changed in CAL.H to correspond to the new length of the
  144. string.
  145. */
  146. IDS_CALENDARDASH, "Calendar - "
  147. /* !!! WARNING END */
  148. IDS_TOOMANYDATES, "Cannot add another date to this file.\nRemove one or more dates, and then try again."
  149. IDS_DATEISFULL, "Cannot add any more text to this date.\nDelete unwanted text to increase available space, and then try again."
  150. IDS_TEXTTRUNCATED, "Text truncated."
  151. END
  152. STRINGTABLE PRELOAD DISCARDABLE
  153. BEGIN
  154. IDS_GIVEMEORIGINAL, "original Calendar file"
  155. IDS_GIVEMECHANGEFILE, "Calendar change file"
  156. IDS_GIVEMENEW, "new Calendar file"
  157. IDS_BADFILENAME, "The filename %% is not valid.\nVerify that the filename is no longer than 8 characters, followed by a period and a 3 character extension."
  158. IDS_NEDSTP, "Not enough disk space available to print.\nDelete one or more files to increase available disk space."
  159. IDS_NEMTP, "Not enough memory available to print.\n\nQuit one or more applications to increase available memory, and then try again."
  160. IDS_ALARMSYNC, "System clock has been changed. Adjusting the next alarm to reflect the change."
  161. IDS_NOTIMER, "Not timing resources available for Calendar because they are being used by other applications.\n\nQuit one or more applications, and then try again."
  162. IDS_DATERANGE, "Specify a date that falls between the years 1980 and 2099."
  163. IDS_DATESUBRANGE, "The day or month is not within the expected range.\nPlease type valid day and month values."
  164. IDS_TIMESUBRANGE, "If you are using a 12-hour clock format, type a time value between 12:00 AM and 11:59 PM. If you are using a 24-hour clock format, type a time between 0:00 and 23:59."
  165. IDS_NOCREATE, "Cannot create the %% file.\nPlease verify that the correct path and filename are given."
  166. IDS_FILEEXTENSION, ".CAL"
  167. IDS_FILTERTEXT, "Cal. Files (*.CAL)"
  168. IDS_ALLFILES, "All Files (*.*)"
  169. IDS_OPENCAPTION, "Open"
  170. IDS_SAVEASCAPTION, "Save As"
  171. END
  172. STRINGTABLE PRELOAD DISCARDABLE
  173. BEGIN
  174. IDS_FILEREADONLY, "The selected file is read-only.\n\nUse a different filename, or use the Properties command in File Manager to change the file attributes."
  175. IDS_BLANK, " "
  176. IDS_PNAMEPREFIX, "\\*"
  177. IDS_MARKCIRCLE, "o"
  178. IDS_MARKLEFTPAREN, "("
  179. IDS_MARKRIGHTPAREN, ")"
  180. IDS_MARKCROSS, "x"
  181. IDS_BLANKSTRING, " "
  182. IDS_HELPFILE, "calendar.hlp"
  183. IDS_INCORRECTSYNTAX, "The Margin values are not correct.\nPlease verify that margin values are valid decimal numbers."
  184. /* IDS_LETTERS "fFpPtTdDcCrRlL" Original US values. DO NOT TRANSLATE */
  185. /* The order is: File, Page, Time, Date, Center, Right, Left */
  186. IDS_LETTERS "fFpPtTdDcCrRlL" /* Localizers: This will change the */
  187. /* letters used in Page Setup */
  188. END
  189. /* Strings for Page Setup. Get read into chPageTest[][] */
  190. STRINGTABLE DISCARDABLE
  191. BEGIN
  192. IDS_HEADER, "&f"
  193. IDS_FOOTER, "Page &p"
  194. IDS_LEFT, ".75"
  195. IDS_RIGHT, ".75"
  196. IDS_TOP, "1"
  197. IDS_BOTTOM, "1"
  198. END
  199. /*** Time/Date strings */
  200. STRINGTABLE PRELOAD DISCARDABLE
  201. BEGIN
  202. /* Month names */
  203. IDS_MONTHS+0, "January"
  204. IDS_MONTHS+1, "February"
  205. IDS_MONTHS+2, "March"
  206. IDS_MONTHS+3, "April"
  207. IDS_MONTHS+4, "May"
  208. IDS_MONTHS+5, "June"
  209. IDS_MONTHS+6, "July"
  210. IDS_MONTHS+7, "August"
  211. IDS_MONTHS+8, "September"
  212. IDS_MONTHS+9, "October"
  213. IDS_MONTHS+10,"November"
  214. IDS_MONTHS+11,"December"
  215. /* Days of the week */
  216. IDS_DAYSOFWEEK+0, "Sunday"
  217. IDS_DAYSOFWEEK+1, "Monday"
  218. IDS_DAYSOFWEEK+2, "Tuesday"
  219. IDS_DAYSOFWEEK+3, "Wednesday"
  220. IDS_DAYSOFWEEK+4, "Thursday"
  221. IDS_DAYSOFWEEK+5, "Friday"
  222. IDS_DAYSOFWEEK+6, "Saturday"
  223. /* Day of week headers for month mode */
  224. IDS_DAYABBREVS+0, "S"
  225. IDS_DAYABBREVS+1, "M"
  226. IDS_DAYABBREVS+2, "T"
  227. IDS_DAYABBREVS+3, "W"
  228. IDS_DAYABBREVS+4, "T"
  229. IDS_DAYABBREVS+5, "F"
  230. IDS_DAYABBREVS+6, "S"
  231. /*** End of Time/Date strings ****/
  232. END
  233. /* !!! WARNING END */
  234. /* Go Get the dialog boxes. */
  235. rcinclude calendar.dlg
  236. #include <ntverp.h>
  237. #define VER_FILETYPE VFT_APP
  238. #define VER_FILESUBTYPE VFT2_UNKNOWN
  239. #define VER_FILEDESCRIPTION_STR "Calendar Applet"
  240. #define VER_INTERNALNAME_STR "cal\0"
  241. #include "common.ver"