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.

641 lines
24 KiB

  1. /* This is the source file for the resource file for Windows Write. The
  2. resource file is generated by running this file through the resouce compiler
  3. RC.EXE. */
  4. #define INTL /* International version */
  5. #define NOGDICAPMASKS
  6. #define NOWINMESSAGES
  7. #define NOSYSMETRICS
  8. #define NOICON
  9. #define NOKEYSTATE
  10. #define NOSYSCOMMANDS
  11. #define NOSHOWWINDOW
  12. #define NOATOM
  13. #define NOGDI
  14. #define NOFONT
  15. #define NOBRUSH
  16. #define NOCLIPBOARD
  17. #define NOCOLOR
  18. #define NOCREATESTRUCT
  19. #define NODRAWTEXT
  20. #define NOMB
  21. #define NOMEMMGR
  22. #define NOMETAFILE
  23. #define NOMINMAX
  24. #define NOOPENFILE
  25. #define NOPEN
  26. #define NOREGION
  27. #define NOSCROLL
  28. #define NOSOUND
  29. #define NOTEXTMETRIC
  30. #define NOWH
  31. #define NOWINOFFSETS
  32. #define NOWNDCLASS
  33. #define NOCOMM
  34. #include <windows.h>
  35. #include "menudefs.h"
  36. #include "dlgdefs.h"
  37. #include "str.h"
  38. #define DI_QUESTION 32514 /* have to match windows.h MAKEINTRESOURCE(n) */
  39. #define DI_EXCLAMATION 32515 /* have to match windows.h MAKEINTRESOURCE(n) */
  40. STRINGTABLE
  41. BEGIN
  42. IDS_MERGE1 "%%" /* relocatable message symbol */
  43. /* Menu and Undo strings */
  44. /* WARNING: The length of the longest UNDO string is kept as a constant
  45. in str.h. This constant must be updated along with the strings */
  46. IDSTRUndoBase,"~Undo "
  47. IDSTRUndoEdit,"Editing"
  48. IDSTRUndoLook,"Formatting"
  49. IDSTRUndoTyping,"Typing"
  50. IDSTRShowRuler,"Ruler On"
  51. IDSTRHideRuler,"Ruler Off"
  52. #ifdef ONLINEHELP
  53. IDSTRAbout, "About...\tF1"
  54. #else /* not ONLINEHELP */
  55. IDSTRAbout, "About..."
  56. #endif /* not ONLINEHELP */
  57. /* File names */
  58. IDSTRHELPF,"WRITE.HLP"
  59. /* Search/Change strings */
  60. IDSTRChangeSel,"Change Selection"
  61. IDSTRChangeAll,"Change All"
  62. /* String for "(page)" and "Page nnnn" */
  63. IDSTRChPage,"page"
  64. IDSTROn, " on "
  65. IDSTRReplaceFile,"Replace Existing %%?"
  66. IDSTRChars, " Chars."
  67. IDSTRSearching, "Searching..."
  68. /***** FOLLOWING MESSAGES ARE "*" LEVEL MESSAGES */
  69. IDPMTSearchDone,"Search complete."
  70. IDPMTNotFound,"Search text not found."
  71. IDPMTNoReplace,"No changes were made."
  72. IDPMTCancelSearch, "Search canceled."
  73. IDPMTDelPicture, "Any pictures will be deleted."
  74. /***** FOLLOWING MESSAGES ARE "?" LEVEL MESSAGES */
  75. IDPMTAddFont "Add font to list?"
  76. IDPMTTruncateSz,"String is too long. Proceed with the first 255 characters?"
  77. /***** FOLLOWING MESSAGES ARE "!" LEVEL MESSAGES */
  78. IDPMTBadFile,"Not a valid Write document."
  79. IDPMTCantOpen,"Cannot find document."
  80. IDPMTDirtyDoc,"%% has changed. Save current changes?"
  81. IDPMTCantRunM,"Not enough memory to run Write."
  82. IDPMTCantRunD,"Not enough disk space to run Write."
  83. IDPMTCantRunF,"Cannot run Write. Unable to create temporary file."
  84. IDPMTNoPath,"Directory does not exist."
  85. IDPMTNoAvail,"File is not available."
  86. IDPMTReadOnly,"Read-only file must be saved under a different name."
  87. /* Dialog field errors */
  88. IDPMTNoPage,"No such page."
  89. IDPMTNOTNUM,"Not a valid number."
  90. IDPMTBFS,"Font sizes must be between 4 and 127."
  91. IDPMTNPI,"Number must be a whole number between 1 and 32767."
  92. IDPMTNOTDXA,"Not a valid measurement."
  93. IDPMTNPDXA,"Measurement must be larger than zero."
  94. IDPMTMTL,"Margin too large."
  95. IDPMTBadFilename,"Not a valid filename."
  96. IDPMT2Complex,"Formatting too complex."
  97. IDPMTBadMove,"Cannot move text to that position."
  98. IDPMTNoHelpFile,"The help file WRITE.HLP is incorrect or missing."
  99. IDPMTDFULL,"Disk is full. Please save document on a different disk."
  100. IDPMTPRFAIL, "Insufficient memory to repaginate/print this document."
  101. IDPMTWPR, "Disk is write protected. Please remove write protect tab."
  102. IDPMTDRFULL, "Disk directory is full. Please use a different disk."
  103. IDPMTClipLarge,"Clipboard too big for available memory."
  104. IDPMTClipQuest," Discard Clipboard?"
  105. IDPMTBadPrinter, "Printer error"
  106. IDPMTCantPrint, "Unable to print "
  107. IDPMTRenameFail, "Unable to replace %%"
  108. IDPMTPrPictErr, "Error while printing picture. Picture ignored."
  109. IDPMTPrDiskErr, "Insufficient disk space to print this document."
  110. /***** FOLLOWING MESSAGES ARE "<hand>" LEVEL MESSAGES */
  111. IDPMTSDE,"Disk error on file."
  112. /* IDPMTSDN,"Unrecoverable disk error on file:" */
  113. IDPMTNoMemory,"Low on memory. Save your document."
  114. IDPMTSFER,"Session too long. Save now, then quit."
  115. IDPMTWinFailure, "Low on memory. Please close an application."
  116. END
  117. /* Windows WRITE accelerator table */
  118. /* WARNING: The Accelerator table is duplicated in a switch statement in
  119. cmd.c. If the accelerator table is changed, the switch statement must
  120. be changed */
  121. mw_acctb ACCELERATORS
  122. BEGIN
  123. #ifdef ONLINEHELP
  124. VK_F1, imiHelp, VIRTKEY
  125. #endif /* ONLINEHELP */
  126. VK_F2, imiCopy, VIRTKEY
  127. VK_F3, imiFindAgain, VIRTKEY
  128. VK_F4, imiGoTo, VIRTKEY
  129. VK_F5, imiCharNormal, VIRTKEY
  130. VK_F6, imiBold, VIRTKEY
  131. VK_F7, imiItalic, VIRTKEY
  132. VK_F8, imiUnderline, VIRTKEY
  133. VK_F9, imiSmFont, VIRTKEY
  134. VK_F10, imiLgFont, VIRTKEY
  135. END
  136. /* Windows WRITE Icon */
  137. mw_icon ICON write.ico
  138. /* Windows WRITE Cursors */
  139. mwlores CURSOR mwlores.cur
  140. mwhires CURSOR mwhires.cur
  141. pmscur CURSOR pmscur.cur
  142. /* Windows WRITE Bitmaps */
  143. rbutton BITMAP rbutton.bmp
  144. rmark BITMAP rmark.bmp
  145. /* Windows WRITE Command Menu */
  146. mw_menu MENU
  147. begin
  148. popup "~File"
  149. begin
  150. menuitem "~New", imiNew
  151. menuitem "~Open...", imiOpen
  152. menuitem "~Save", imiSave
  153. menuitem "Save ~As...", imiSaveAs
  154. menuitem SEPARATOR
  155. menuitem "~Print...", imiPrint
  156. menuitem "C~hange Printer...", imiPrintSetup
  157. menuitem "~Repaginate...", imiRepaginate
  158. menuitem SEPARATOR
  159. menuitem "E~xit", imiQuit
  160. menuitem SEPARATOR
  161. menuitem "A~bout Write...", imiAbout
  162. end
  163. popup "~Edit"
  164. begin
  165. menuitem "~Undo\tAlt+Bksp", imiUndo
  166. menuitem SEPARATOR
  167. menuitem "Cu~t\tDel", imiCut
  168. menuitem "~Copy\tCtrl+Ins", imiCopy
  169. menuitem "~Paste\tShift+Ins", imiPaste
  170. menuitem SEPARATOR
  171. menuitem "~Move Picture", imiMovePicture
  172. menuitem "~Size Picture", imiSizePicture
  173. end
  174. popup "~Search"
  175. begin
  176. menuitem "~Find...", imiFind
  177. menuitem "~Repeat Last Find\tF3", imiFindAgain
  178. menuitem "~Change...", imiChange
  179. menuitem SEPARATOR
  180. menuitem "~Go To Page...\tF4", imiGoTo
  181. end
  182. popup "~Character"
  183. begin
  184. menuitem "~Normal\tF5", imiCharNormal
  185. menuitem SEPARATOR
  186. menuitem "~Bold\tF6", imiBold
  187. menuitem "~Italic\tF7", imiItalic
  188. menuitem "~Underline\tF8", imiUnderline
  189. menuitem "Su~perscript", imiSuper
  190. menuitem "Subs~cript", imiSub
  191. menuitem SEPARATOR
  192. menuitem "", imiFont1
  193. menuitem "", imiFont2
  194. menuitem "", imiFont3
  195. menuitem SEPARATOR
  196. menuitem "~Reduce Font\tF9", imiSmFont
  197. menuitem "~Enlarge Font\tF10", imiLgFont
  198. menuitem SEPARATOR
  199. menuitem "~Fonts...", imiCharFormats
  200. end
  201. popup "~Paragraph"
  202. begin
  203. menuitem "~Normal", imiParaNormal
  204. menuitem SEPARATOR
  205. menuitem "~Left", imiLeft
  206. menuitem "~Centered", imiCenter
  207. menuitem "~Right", imiRight
  208. menuitem "~Justified", imiJustified
  209. menuitem SEPARATOR
  210. menuitem "~Single Space", imiSingleSpace
  211. menuitem "~1 1/2 Space", imiOneandhalfSpace
  212. menuitem "~Double Space", imiDoubleSpace
  213. menuitem SEPARATOR
  214. menuitem "~Indents...", imiParaFormats
  215. end
  216. popup "~Document"
  217. begin
  218. menuitem "~Header...", imiHeader
  219. menuitem "~Footer...", imiFooter
  220. menuitem SEPARATOR
  221. menuitem "~Ruler On", imiShowRuler
  222. menuitem "~Tabs...", imiTabs
  223. menuitem SEPARATOR
  224. menuitem "~Page Layout...", imiDivFormats
  225. end
  226. end
  227. /* Windows Word Dialog Boxes */
  228. #define WS_TABONLY (WS_TABSTOP | WS_GROUP) /* only tab can get to the item */
  229. dlgOpen DIALOG 30, 40, 160, 118
  230. STYLE WS_DLGFRAME | WS_POPUP
  231. begin
  232. ltext "Open File ~Name:", idiNil, 6, 4, 64, 12
  233. edittext idiOpenFile, 6, 16, 110, 12, WS_TABSTOP | ES_AUTOHSCROLL
  234. ltext "~Files in", idiNil, 6, 34, 32, 12
  235. listbox idiOpenLB, 6, 48, 70, 64, LBS_NOTIFY | WS_VSCROLL | WS_BORDER | WS_VISIBLE | WS_TABSTOP
  236. ltext "", idiOpenDir, 42, 34, 76, 12
  237. defpushbutton "~Open", idiOk, 96, 67, 50, 14, WS_TABONLY
  238. pushbutton "Cancel", idiCancel, 96, 89, 50, 14, WS_TABONLY
  239. end
  240. #ifdef INTL /* International version */
  241. dlgSaveAs DIALOG 30, 40, 210, 70
  242. #else
  243. dlgSaveAs DIALOG 30, 40, 210, 53
  244. #endif /* International version */
  245. STYLE WS_DLGFRAME | WS_POPUP
  246. begin
  247. ltext "Save File ~Name As:", idiNil, 5, 5, 72, 10
  248. edittext idiSavFile, 5, 17, 122, 12, WS_TABSTOP | ES_AUTOHSCROLL
  249. control "", idiSavDir, static, WS_VISIBLE | SS_CENTER, 78, 5, 76, 12
  250. checkbox "~Make Backup", idiSavBackup, 5, 35, 60, 12, WS_TABONLY
  251. checkbox "~Text Only", idiSavTextOnly, 5, 52, 52, 12, WS_TABONLY
  252. #ifdef INTL /* International version */
  253. checkbox "Microsoft ~Word Format", idiSavWordFmt, 70, 52, 100, 12, WS_TABONLY
  254. #endif /* International version */
  255. defpushbutton "OK", idiOk, 155, 17, 50, 14, WS_TABONLY
  256. pushbutton "Cancel", idiCancel, 155, 34, 50, 14, WS_TABONLY
  257. end
  258. /* note this may be a child of dlgOpen, so its start is based on its parent */
  259. dlgWordCvt DIALOG 02, 05, 171, 54
  260. STYLE WS_DLGFRAME | WS_POPUP
  261. begin
  262. ltext "Convert Text to", idiNil, 5, 5, 138, 12
  263. ltext "Microsoft Write Format", idiNil, 5, 13, 138, 12
  264. defpushbutton "~Convert", idiOk, 100, 5, 48, 14, WS_TABONLY
  265. pushbutton "~No Conversion", idiNo, 100, 20, 65, 14, WS_TABONLY
  266. pushbutton "Cancel", idiCancel, 100, 35, 40, 14, WS_TABONLY
  267. end
  268. /* By popular demand, this dialog box bites the dust
  269. dlgSaveScrap DIALOG 66, 63, 192, 60
  270. STYLE WS_BORDER | WS_POPUP | WS_CAPTION
  271. CAPTION "Write"
  272. begin
  273. icon DI_QUESTION, idiNil, 5, 5, 0, 0
  274. ctext "Large Clipboard", idiNil, 30, 12, 90, 12
  275. defpushbutton "~Save", idiOk, 18, 35, 40, 14, WS_TABONLY
  276. pushbutton "~Discard", idiNo, 76, 35, 40, 14, WS_TABONLY
  277. pushbutton "Cancel", idiCancel, 134, 35, 40, 14, WS_TABONLY
  278. end
  279. */
  280. #ifdef ONLINEHELP
  281. dlgHelp DIALOG 30, 20, 280, 120
  282. style WS_POPUP | WS_DLGFRAME | WS_VISIBLE
  283. begin
  284. ltext "Windows Write V0.53", idiNil, 180, 10, 90, 12
  285. ltext "June 19, 1985", idiNil, 180, 20, 90, 12
  286. ltext "", idiMemFree, 180, 30, 16, 12
  287. ltext "% free memory", idiNil, 200, 30, 70, 12
  288. listbox idiHelp, 5, 5, 160, 112, LBS_NOTIFY | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP | WS_BORDER
  289. defpushbutton "~Help", idiOk, 180, 90, 40, 14, WS_TABONLY
  290. pushbutton "Cancel", idiCancel, 230, 90, 40, 14, WS_TABONLY
  291. end
  292. /* The real size of this dialog box and its children is calculated in help. c */
  293. dlgHelpInner DIALOG 30, 40, 110, 80
  294. style WS_POPUP | WS_BORDER | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  295. caption "About Windows Write"
  296. begin
  297. ltext "", idiHelpName, 5, 5, 1, 1
  298. control "", idiHelpScroll, "ScrollBar",
  299. WS_TABONLY | SBS_VERT, 1,1,1,1
  300. defpushbutton "Topics", idiHelpTopics, 1, 1, 1, 1, WS_TABONLY
  301. pushbutton "Next", idiHelpNext, 2, 2, 1, 1, WS_TABONLY
  302. pushbutton "Previous", idiHelpPrev, 3, 3, 1, 1, WS_TABONLY
  303. pushbutton "Cancel", idiCancel, 4, 4, 1, 1, WS_TABONLY
  304. end
  305. #else
  306. dlgHelp DIALOG 30, 20, 150, 100
  307. style WS_POPUP | WS_DLGFRAME
  308. begin
  309. ctext "Microsoft Windows", idiNil, 0, 5, 150, 8
  310. icon "mw_icon", idiNil, 9, 23, 0, 0
  311. ctext "Write", idiNil, 0, 14, 150, 8
  312. ctext "Version 2.0", idiNil, 35, 34, 80, 8
  313. ctext "Copyright (c) 1985, 1986, 1987, Microsoft Corp." idiNil, 0, 47, 150, 8
  314. defpushbutton "Ok", idiOk, 55, 80, 40, 14, WS_TABONLY
  315. end
  316. #endif
  317. dlgPrint DIALOG 17, 50, 130, 77
  318. STYLE WS_POPUP | WS_DLGFRAME
  319. begin
  320. ltext "~Copies:", idiNil, 5, 7, 30, 12
  321. edittext idiPrtCopies, 35, 5, 30, 12, WS_TABSTOP | ES_AUTOHSCROLL
  322. checkbox "~Draft Quality", idiPrtDraft, 5, 20, 74, 12, WS_TABONLY
  323. ltext "Page Range:", idiNil, 5, 37, 50, 12
  324. radiobutton "~All", idiPrtAll, 10, 47, 50, 12, WS_TABSTOP | WS_GROUP
  325. radiobutton "~From:", idiPrtFrom, 10, 60, 30, 12
  326. edittext idiPrtPageFrom, 41, 61, 30, 12, WS_TABONLY | ES_AUTOHSCROLL
  327. ltext "~To:", idiNil, 78, 63, 12, 12
  328. edittext idiPrtPageTo, 92, 61, 30, 12, WS_TABONLY | ES_AUTOHSCROLL
  329. defpushbutton "Ok", idiOk, 85, 5, 40, 14, WS_TABONLY
  330. pushbutton "Cancel", idiCancel, 85, 25, 40, 14, WS_TABONLY
  331. end
  332. dlgCancelPrint DIALOG 15, 50, 134, 52
  333. STYLE WS_BORDER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  334. CAPTION "Printing"
  335. begin
  336. ltext "Write is sending your document", idiNil, 5, 5, 128, 8
  337. ltext "to the printer.", idiNil, 5, 14, 128, 8
  338. defpushbutton "Cancel", idiCancel, 47, 30, 40, 14, WS_TABONLY
  339. end
  340. dlgRepaginate DIALOG 90, 100, 155, 45
  341. STYLE WS_DLGFRAME | WS_POPUP
  342. begin
  343. ltext "Repaginate Document", idiNil, 5, 5, 80, 12
  344. checkbox "Confirm Page ~Breaks", idiRepageConfirm, 5, 25, 100, 12, WS_TABONLY
  345. defpushbutton "Ok", idiOk, 110, 5, 40, 14, WS_TABONLY
  346. pushbutton "Cancel", idiCancel, 110, 25, 40, 14, WS_TABONLY
  347. end
  348. dlgCancelRepage DIALOG 15, 50, 94, 50
  349. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  350. CAPTION "Repaginating"
  351. begin
  352. ltext "Write is repaginating", idiNil, 5, 5, 84, 8
  353. ltext "your document", idiNil, 5, 14, 52, 8
  354. defpushbutton "Cancel", idiCancel, 27, 28, 40, 14, WS_TABONLY
  355. end
  356. dlgSetPage DIALOG 90, 120, 192, 50
  357. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  358. CAPTION "Repaginating"
  359. begin
  360. ltext "Use up and down buttons", idiNil, 5, 5, 92, 8
  361. ltext "to move page break", idiNil, 5, 14, 72, 8
  362. ltext "if necessary,", idiNil, 5, 23, 52, 8
  363. ltext "then confirm.", idiNil, 5, 32, 52, 8
  364. pushbutton "Up", idiRepUp, 102, 8, 40, 14, WS_TABONLY
  365. pushbutton "Down", idiRepDown, 102, 28, 40, 14, WS_TABONLY
  366. defpushbutton "~Confirm", idiOk, 147, 8, 40, 14, WS_TABONLY
  367. pushbutton "Cancel", idiCancel, 147, 28, 40, 14, WS_TABONLY
  368. end
  369. dlgPageMark DIALOG 90, 100, 135, 58
  370. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  371. CAPTION "Repaginating"
  372. begin
  373. icon DI_QUESTION, idiNil, 5, 5, 0, 0
  374. ltext "Would you like to keep", idiNil, 30, 7, 92, 12
  375. ltext "this existing page break?", idiNil, 30, 19, 100, 12
  376. pushbutton "Cancel", idiCancel, 7, 35, 35, 14, WS_TABONLY
  377. defpushbutton "Keep", idiKeepPgMark, 49, 35, 35, 14, WS_TABONLY
  378. pushbutton "Remove", idiRemovePgMark, 91, 35, 35, 14, WS_TABONLY
  379. end
  380. dlgPrinterSetup DIALOG 30, 40, 190, 80
  381. STYLE WS_DLGFRAME | WS_POPUP | WS_VISIBLE
  382. begin
  383. ltext "~Select a Printer:", idiNil, 5, 5, 70, 12
  384. listbox idiPrterName, 5, 20, 132, 56, LBS_STANDARD | WS_VISIBLE | WS_TABONLY
  385. defpushbutton "Ok", idiOk, 145, 20, 40, 14, WS_TABONLY
  386. pushbutton "Cancel", idiCancel, 145, 50, 40, 14, WS_TABONLY
  387. end
  388. dlgFind DIALOG 40, 165, 200, 55
  389. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  390. CAPTION "Find"
  391. begin
  392. ltext "~Find What:", idiNil, 5, 7, 45, 12
  393. edittext idiFind, 50, 5, 140, 12, WS_TABSTOP | ES_AUTOHSCROLL
  394. checkbox "~Whole Word", idiWholeWord, 5, 20, 60, 12, WS_TABONLY
  395. checkbox "~Match Upper/Lowercase", idiMatchCase, 100, 20, 95, 12, WS_TABONLY
  396. defpushbutton "Find ~Next", idiFindNext, 70, 35, 60, 14, WS_TABONLY
  397. end
  398. dlgChange DIALOG 60, 150, 249, 70
  399. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  400. CAPTION "Change"
  401. begin
  402. ltext "~Find What:", idiNil, 5, 7, 45, 12
  403. edittext idiFind, 50, 5, 150, 12, WS_TABSTOP | ES_AUTOHSCROLL
  404. ltext "Change ~To:", idiNil, 5, 22, 45, 12
  405. edittext idiChangeTo, 50, 20, 150, 12, WS_TABSTOP | ES_AUTOHSCROLL
  406. checkbox "~Whole Word", idiWholeWord, 5, 35, 60, 12, WS_TABONLY
  407. checkbox "~Match Upper/Lowercase", idiMatchCase, 100, 35, 195, 12, WS_TABONLY
  408. defpushbutton "Find ~Next", idiFindNext, 5, 50, 44, 14, WS_TABONLY
  409. pushbutton "C~hange, then Find", idiChangeThenFind, 54, 50, 76, 14, WS_TABONLY
  410. pushbutton "~Change", idiChange, 135, 50, 32, 14, WS_TABONLY
  411. pushbutton " Change ~All ", idiChangeAll, 172, 50, 72, 14, WS_TABONLY
  412. end
  413. dlgGoTo DIALOG 87, 63, 95, 40
  414. STYLE WS_POPUP | WS_DLGFRAME
  415. begin
  416. ltext "~Page Number:", idiNil, 5, 7, 50, 12
  417. edittext idiGtoPage, 56, 5, 30, 12, WS_TABSTOP | ES_AUTOHSCROLL
  418. defpushbutton "Ok", idiOk, 5, 22, 40, 14, WS_TABONLY
  419. pushbutton "Cancel", idiCancel, 50, 22, 40, 14, WS_TABONLY
  420. end
  421. dlgCharFormats DIALOG 80, 36, 180, 100
  422. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  423. CAPTION "Fonts"
  424. begin
  425. ltext "Font ~Name:", idiNil, 5, 5, 45, 12
  426. edittext idiChrFontName, 5, 16, 125, 12, WS_TABSTOP | ES_AUTOHSCROLL
  427. ltext "~Fonts:", idiNil, 5, 33, 24, 12
  428. listbox idiChrLBFontName, 5, 47, 105, 48, LBS_STANDARD | WS_VISIBLE | WS_TABSTOP
  429. ltext "~Sizes:", idiNil, 115, 42, 24, 12
  430. listbox idiChrLBFontSize, 115, 55, 24, 40, LBS_STANDARD | WS_VISIBLE | WS_TABSTOP
  431. ltext "~Point", idiNil, 144, 61, 20, 12
  432. edittext idiChrFontSize, 144, 83, 30, 12, WS_TABSTOP | ES_AUTOHSCROLL
  433. ltext "Size:", idiNil, 144, 71, 20, 12
  434. defpushbutton "Ok", idiOk, 135, 5, 40, 14, WS_TABONLY
  435. pushbutton "Cancel", idiCancel, 135, 25, 40, 14, WS_TABONLY
  436. end
  437. dlgParaFormats DIALOG 28, 36, 150, 52
  438. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  439. CAPTION "Indents"
  440. begin
  441. ltext "~Left Indent:", idiNil, 3, 7, 48, 12
  442. edittext idiParLfIndent, 56, 5, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  443. ltext "~First Line:", idiNil, 3, 22, 44, 12
  444. edittext idiParFirst, 56, 20, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  445. ltext "~Right Indent:", idiNil, 3, 37, 52, 12
  446. edittext idiParRtIndent, 56, 35, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  447. defpushbutton "Ok", idiOk, 105, 8, 40, 14, WS_TABONLY
  448. pushbutton "Cancel", idiCancel, 105, 27, 40, 14, WS_TABONLY
  449. end
  450. dlgRunningHead DIALOG 80, 110, 228, 42
  451. STYLE WS_POPUP | WS_CAPTION | WS_BORDER | WS_SYSMENU | WS_VISIBLE
  452. CAPTION "Page Header"
  453. begin
  454. ltext "~Distance from Top: ", idiNil, 5, 7, 76, 12
  455. edittext idiRHDx, 80, 5, 38, 12, WS_TABSTOP | ES_AUTOHSCROLL
  456. checkbox "~Print on First Page", idiRHFirst, 133, 5, 90, 12, WS_TABONLY
  457. pushbutton "~Insert Page #", idiRHInsertPage, 12, 22, 64, 14, WS_TABONLY
  458. pushbutton "~Clear", idiRHClear, 88, 22, 30, 14, WS_TABONLY
  459. defpushbutton "~Return to Document", idiOk, 130, 22, 85, 14, WS_TABONLY
  460. end
  461. dlgFooter DIALOG 80, 110, 228, 42
  462. STYLE WS_POPUP | WS_CAPTION | WS_BORDER | WS_SYSMENU | WS_VISIBLE
  463. CAPTION "Page Footer"
  464. begin
  465. ltext "~Distance from Bottom: ", idiNil, 5, 7, 88, 12
  466. edittext idiRHDx, 90, 5, 38, 12, WS_TABSTOP | ES_AUTOHSCROLL
  467. checkbox "~Print on First Page", idiRHFirst, 133, 5, 90, 12, WS_TABONLY
  468. pushbutton "~Insert Page #", idiRHInsertPage, 12, 22, 64, 14, WS_TABONLY
  469. pushbutton "~Clear", idiRHClear, 88, 22, 30, 14, WS_TABONLY
  470. defpushbutton "~Return to Document", idiOk, 130, 22, 85, 14, WS_TABONLY
  471. end
  472. dlgTabs DIALOG 26, 41, 278, 97
  473. STYLE WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  474. CAPTION "Tabs"
  475. begin
  476. ltext "~Positions:", idiNil, 3, 7, 40, 12
  477. edittext idiTabPos0, 45, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  478. ltext "~Decimal:", idiNil, 3, 22, 40, 12
  479. checkbox ".", idiTabDec0, 51, 20, 18, 12, WS_TABONLY
  480. edittext idiTabPos1, 83, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  481. checkbox ".", idiTabDec1, 89, 20, 18, 12, WS_TABONLY
  482. edittext idiTabPos2, 121, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  483. checkbox ".", idiTabDec2, 127, 20, 18, 12, WS_TABONLY
  484. edittext idiTabPos3, 159, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  485. checkbox ".", idiTabDec3, 165, 20, 18, 12, WS_TABONLY
  486. edittext idiTabPos4, 197, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  487. checkbox ".", idiTabDec4, 203, 20, 18, 12, WS_TABONLY
  488. edittext idiTabPos5, 235, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  489. checkbox ".", idiTabDec5, 241, 20, 18, 12, WS_TABONLY
  490. ltext "~Positions:", idiNil, 3, 42, 40, 12
  491. edittext idiTabPos6, 45, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  492. ltext "~Decimal:", idiNil, 3, 57, 40, 12
  493. checkbox ".", idiTabDec6, 51, 55, 18, 12, WS_TABONLY
  494. edittext idiTabPos7, 83, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  495. checkbox ".", idiTabDec7, 89, 55, 18, 12, WS_TABONLY
  496. edittext idiTabPos8, 121, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  497. checkbox ".", idiTabDec8, 127, 55, 18, 12, WS_TABONLY
  498. edittext idiTabPos9, 159, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  499. checkbox ".", idiTabDec9, 165, 55, 18, 12, WS_TABONLY
  500. edittext idiTabPos10, 197, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  501. checkbox ".", idiTabDec10, 203, 55, 18, 12, WS_TABONLY
  502. edittext idiTabPos11, 235, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  503. checkbox ".", idiTabDec11, 241, 55, 18, 12, WS_TABONLY
  504. defpushbutton "Ok", idiOk, 20, 75, 50, 14, WS_TABONLY
  505. pushbutton "Cancel", idiCancel, 90, 75, 50, 14, WS_TABONLY
  506. pushbutton "Clear ~All", idiTabClearAll, 160, 75, 50, 14, WS_TABONLY
  507. end
  508. #ifdef INTL /* International version */
  509. dlgDivision DIALOG 26, 30, 180, 110
  510. #else
  511. dlgDivision DIALOG 26, 30, 180, 80
  512. #endif /* International version */
  513. STYLE WS_POPUP | WS_DLGFRAME
  514. begin
  515. ltext "~Start Page Numbers At:", idiNil, 5, 7, 88, 12
  516. edittext idiDivPNStart, 95, 5, 30, 12, WS_TABSTOP | ES_AUTOHSCROLL
  517. ltext "Margins:", idiNil, 5, 33, 40, 12
  518. ltext "~Left:", idiNil, 12, 48, 20, 12
  519. edittext idiDivLMarg, 35, 46, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  520. ltext "~Right:", idiNil, 85, 48, 30, 12
  521. edittext idiDivRMarg, 117, 46, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  522. ltext "~Top:", idiNil, 12, 65, 20, 12
  523. edittext idiDivTMarg, 35, 63, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  524. ltext "~Bottom:", idiNil, 85, 65, 30, 12
  525. edittext idiDivBMarg, 117, 63, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  526. #ifdef INTL /* International version */
  527. ltext "Measurements:", idiNil, 5, 84, 63, 12
  528. radiobutton "~inch", idiDivInch, 12, 94, 27, 12, WS_TABSTOP | WS_GROUP
  529. radiobutton "~cm", idiDivCm, 44, 94, 26, 12
  530. #endif /* International version */
  531. defpushbutton "Ok", idiOk, 135, 5, 40, 14, WS_TABONLY
  532. pushbutton "Cancel", idiCancel, 135, 23, 40, 14, WS_TABONLY
  533. end
  534. dlgBadMargins DIALOG 50, 20, 235, 65
  535. STYLE WS_POPUP | WS_BORDER | WS_CAPTION
  536. CAPTION "Write"
  537. begin
  538. icon DI_EXCLAMATION, idiNil, 5, 5, 0, 0
  539. ltext "Current printer cannot print outside these margins", idiNil, 30, 5, 200, 12
  540. ltext "Left:", idiNil, 30, 17, 20, 12
  541. ltext "", idiBMrgLeft, 60, 17, 40, 12
  542. ltext "Right:", idiNil, 130, 17, 24, 12
  543. ltext "", idiBMrgRight, 168, 17, 40, 12
  544. ltext "Top:", idiNil, 30, 29, 16, 12
  545. ltext "", idiBMrgTop, 60, 29, 40, 12
  546. ltext "Bottom:", idiNil, 130, 29, 28, 12
  547. ltext "", idiBMrgBottom, 168, 29, 40, 12
  548. defpushbutton "Ok", idiOk, 97, 44, 40, 14, WS_TABSTOP
  549. end