Leaked source code of windows server 2003
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.

346 lines
15 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /* Dialog Boxes */
  5. #define WS_TABONLY (WS_TABSTOP | WS_GROUP) /* only tab can get to the item */
  6. #define WDialog DIALOG MOVEABLE
  7. #define WStyle STYLE DS_MODALFRAME|WS_SYSMENU|
  8. /* note this may be a child of dlgOpen, so its start is based on its parent */
  9. dlgWordCvt WDialog 22, 22, 220, 60
  10. WStyle WS_DLGFRAME | WS_POPUP
  11. FONT 8 "Helv"
  12. CAPTION "Write"
  13. begin
  14. icon DI_EXCLAMATION, idiNil, 15, 8, 0, 0
  15. ctext "", idiConvertPrompt, 35, 14, 180, 20
  16. defpushbutton "&Convert", idiOk, 25, 39, 48, 14, WS_TABONLY
  17. pushbutton "&No Conversion", idiNo, 81, 39, 65, 14, WS_TABONLY
  18. pushbutton "Cancel", idiCancel, 155, 39, 40, 14, WS_TABONLY
  19. end
  20. #ifdef ONLINEHELP
  21. dlgHelp DIALOG 30, 20, 280, 120
  22. STYLE WS_POPUP | WS_DLGFRAME | WS_VISIBLE
  23. begin
  24. ltext "Windows Write V0.53", idiNil, 180, 10, 90, 12
  25. ltext "June 19, 1985", idiNil, 180, 20, 90, 12
  26. ltext "", idiMemFree, 180, 30, 16, 12
  27. ltext "% free memory", idiNil, 200, 30, 70, 12
  28. listbox idiHelp, 5, 5, 160, 112, LBS_NOTIFY | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP | WS_BORDER
  29. defpushbutton "&Help", idiOk, 180, 90, 40, 14, WS_TABONLY
  30. pushbutton "Cancel", idiCancel, 230, 90, 40, 14, WS_TABONLY
  31. end
  32. /* The real size of this dialog box and its children is calculated in help. c */
  33. dlgHelpInner DIALOG 30, 40, 110, 80
  34. STYLE WS_POPUP | WS_BORDER | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  35. caption "About Windows Write"
  36. begin
  37. ltext "", idiHelpName, 5, 5, 1, 1
  38. control "", idiHelpScroll, "ScrollBar",
  39. WS_TABONLY | SBS_VERT, 1,1,1,1
  40. defpushbutton "Topics", idiHelpTopics, 1, 1, 1, 1, WS_TABONLY
  41. pushbutton "Next", idiHelpNext, 2, 2, 1, 1, WS_TABONLY
  42. pushbutton "Previous", idiHelpPrev, 3, 3, 1, 1, WS_TABONLY
  43. pushbutton "Cancel", idiCancel, 4, 4, 1, 1, WS_TABONLY
  44. end
  45. #else
  46. dlgHelp WDialog 30, 20, 160, 100
  47. WStyle WS_POPUP | WS_DLGFRAME
  48. FONT 8 "Helv"
  49. CAPTION "About Write"
  50. begin
  51. #ifdef OS2
  52. ctext "Microsoft OS/2", idiNil, 41, 10, 78, 8
  53. ctext "Version 2.0", idiNil, 60, 44, 40, 8
  54. #else
  55. ctext "Microsoft Windows", idiNil, 41, 10, 78, 8
  56. ctext "Version 3.0", idiNil, 60, 44, 40, 8
  57. #endif
  58. ctext "Write", idiNil, 70, 20, 20, 8
  59. ctext "Copyright \0251 1985-1990 Microsoft Corp." idiNil, 12, 56, 136, 8
  60. icon "mw_icon", idiNil, 12, 24, 0, 0
  61. defpushbutton "OK", idiOk, 60, 75, 40, 14, WS_TABONLY
  62. end
  63. #endif
  64. dlgCancelPrint WDialog 20,20,90, 64
  65. WStyle WS_BORDER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  66. FONT 8 "Helv"
  67. CAPTION "Write"
  68. begin
  69. ctext "Now Printing", -1, 0, 8, 90, 8
  70. ctext "", idiPrCancelName, 0, 18, 90, 8, SS_NOPREFIX
  71. defpushbutton "Cancel", idiCancel, 29, 44, 32, 14, WS_TABONLY
  72. end
  73. dlgRepaginate WDialog 90, 100, 155, 45
  74. WStyle WS_DLGFRAME | WS_POPUP
  75. FONT 8 "Helv"
  76. CAPTION "Repaginate Document"
  77. begin
  78. checkbox "Confirm Page &Breaks", idiRepageConfirm, 5, 15, 100, 12, WS_TABONLY
  79. defpushbutton "OK", idiOk, 110, 5, 40, 14, WS_TABONLY
  80. pushbutton "Cancel", idiCancel, 110, 25, 40, 14, WS_TABONLY
  81. end
  82. dlgCancelRepage WDialog 15, 50, 94, 50
  83. WStyle WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  84. FONT 8 "Helv"
  85. CAPTION "Write"
  86. begin
  87. ctext "Repaginating", idiNil, 5, 5, 84, 8
  88. ctext "document", idiNil, 5, 14, 84, 8
  89. defpushbutton "Cancel", idiCancel, 27, 28, 40, 14, WS_TABONLY
  90. end
  91. dlgSetPage WDialog 90, 120, 192, 50
  92. WStyle WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  93. FONT 8 "Helv"
  94. CAPTION "Repaginating Document"
  95. begin
  96. ltext "Use up and down buttons", idiNil, 5, 5, 92, 8
  97. ltext "to move page break", idiNil, 5, 14, 72, 8
  98. ltext "if necessary,", idiNil, 5, 23, 52, 8
  99. ltext "then confirm.", idiNil, 5, 32, 52, 8
  100. pushbutton "&Up", idiRepUp, 102, 8, 40, 14, WS_TABONLY
  101. pushbutton "&Down", idiRepDown, 102, 28, 40, 14, WS_TABONLY
  102. defpushbutton "&Confirm", idiOk, 147, 8, 40, 14, WS_TABONLY
  103. pushbutton "Cancel", idiCancel, 147, 28, 40, 14, WS_TABONLY
  104. end
  105. dlgPageMark WDialog 90, 100, 135, 58
  106. WStyle WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  107. FONT 8 "Helv"
  108. CAPTION "Repaginating Document"
  109. begin
  110. icon DI_EXCLAMATION, idiNil, 5, 5, 0, 0
  111. ltext "Would you like to keep", idiNil, 30, 7, 92, 12
  112. ltext "this existing page break?", idiNil, 30, 19, 100, 12
  113. pushbutton "Cancel", idiCancel, 7, 35, 35, 14, WS_TABONLY
  114. defpushbutton "&Keep", idiKeepPgMark, 49, 35, 35, 14, WS_TABONLY
  115. pushbutton "&Remove", idiRemovePgMark, 91, 35, 35, 14, WS_TABONLY
  116. end
  117. dlgFind DIALOG LOADONCALL MOVEABLE DISCARDABLE
  118. 30, 73, 236, 62
  119. CAPTION "Find"
  120. STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_POPUP | WS_SYSMENU | WS_VISIBLE
  121. FONT 8, "Helv"
  122. BEGIN
  123. CONTROL "Fi&nd What:", idiNil, "static", SS_LEFT | WS_CHILD,
  124. 4, 8, 42, 8
  125. CONTROL "", idiFind, "edit", ES_LEFT | ES_AUTOHSCROLL | WS_BORDER | WS_GROUP |
  126. WS_TABSTOP | WS_CHILD | WS_BORDER,
  127. 47, 7, 128, 12
  128. CONTROL "Match &Whole Word Only", idiWholeWord, "button", WS_TABSTOP | WS_CHILD | WS_GROUP | BS_CHECKBOX,
  129. 4, 26, 100, 12
  130. CONTROL "Match &Case", idiMatchCase, "button", WS_TABSTOP | WS_CHILD | BS_CHECKBOX,
  131. 4, 42, 64, 12
  132. CONTROL "&Find Next", idiFindNext, "button", BS_DEFPUSHBUTTON | WS_CHILD |
  133. WS_TABSTOP | WS_GROUP,
  134. 182, 5, 50, 14
  135. CONTROL "Cancel", idiCancel, "button", BS_PUSHBUTTON | WS_CHILD |
  136. WS_TABSTOP | WS_GROUP,
  137. 182, 23, 50, 14
  138. END
  139. dlgChange DIALOG LOADONCALL MOVEABLE DISCARDABLE
  140. 36, 44, 257, 80
  141. CAPTION "Replace"
  142. STYLE WS_BORDER | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | WS_POPUP | WS_VISIBLE
  143. FONT 8, "Helv"
  144. BEGIN
  145. CONTROL "Fi&nd What:", idiNil, "static", SS_LEFT | WS_CHILD,
  146. 4, 9, 48, 8
  147. CONTROL "", idiFind, "edit", ES_LEFT | ES_AUTOHSCROLL | WS_BORDER |
  148. WS_TABSTOP | WS_CHILD | WS_GROUP,
  149. 54, 7, 114, 12
  150. CONTROL "Re&place With:", idiNil, "static", SS_LEFT | WS_CHILD,
  151. 4, 26, 48, 8
  152. CONTROL "", idiChangeTo, "edit", ES_LEFT | ES_AUTOHSCROLL | WS_BORDER |
  153. WS_TABSTOP | WS_CHILD | WS_GROUP,
  154. 54, 24, 114, 12
  155. CONTROL "Match &Whole Word Only", idiWholeWord, "button", WS_TABSTOP | WS_CHILD | WS_GROUP | BS_CHECKBOX,
  156. 5, 46, 104, 12
  157. CONTROL "Match &Case", idiMatchCase, "button", WS_TABSTOP | BS_CHECKBOX | WS_CHILD,
  158. 5, 62, 59, 12
  159. CONTROL "&Find Next", idiFindNext, "button", BS_DEFPUSHBUTTON | WS_CHILD |
  160. WS_TABSTOP | WS_GROUP,
  161. 174, 4, 77, 14
  162. CONTROL "&Replace", idiChangeThenFind, "button", BS_PUSHBUTTON | WS_CHILD |
  163. WS_TABSTOP | WS_GROUP,
  164. 174, 21, 77, 14
  165. CONTROL "Replace &All", idiChangeAll, "button", BS_PUSHBUTTON | WS_CHILD |
  166. WS_TABSTOP | WS_GROUP,
  167. 174, 38, 77, 14
  168. CONTROL "C&lose", idiCancel, "button", BS_PUSHBUTTON | WS_CHILD |
  169. WS_TABSTOP | WS_GROUP,
  170. 174, 55, 77, 14
  171. END
  172. dlgGoTo WDialog 87, 63, 95, 40
  173. WStyle WS_POPUP | WS_DLGFRAME
  174. FONT 8 "Helv"
  175. CAPTION "Go To"
  176. begin
  177. ltext "&Page Number:", idiNil, 5, 7, 55, 12
  178. edittext idiGtoPage, 69, 5, 21, 12, WS_TABSTOP | ES_AUTOHSCROLL
  179. defpushbutton "OK", idiOk, 5, 22, 40, 14, WS_TABONLY
  180. pushbutton "Cancel", idiCancel, 50, 22, 40, 14, WS_TABONLY
  181. end
  182. dlgCharFormats WDialog 80, 36, 180, 100
  183. WStyle WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  184. FONT 8 "Helv"
  185. CAPTION "Fonts"
  186. begin
  187. ltext "Font &Name:", idiNil, 5, 5, 45, 12
  188. edittext idiChrFontName, 5, 16, 125, 12, WS_TABSTOP | ES_AUTOHSCROLL
  189. ltext "&Fonts:", idiNil, 5, 33, 24, 12
  190. listbox idiChrLBFontName, 5, 47, 105, 48, LBS_STANDARD | WS_VISIBLE | WS_TABSTOP
  191. ltext "&Sizes:", idiNil, 115, 41, 24, 12
  192. listbox idiChrLBFontSize, 115, 55, 24, 40, LBS_STANDARD | WS_VISIBLE | WS_TABSTOP
  193. ltext "&Point", idiNil, 144, 61, 20, 12
  194. edittext idiChrFontSize, 144, 83, 30, 12, WS_TABSTOP | ES_AUTOHSCROLL
  195. ltext "Size:", idiNil, 144, 70, 20, 12
  196. defpushbutton "OK", idiOk, 135, 5, 40, 14, WS_TABONLY
  197. pushbutton "Cancel", idiCancel, 135, 25, 40, 14, WS_TABONLY
  198. end
  199. dlgParaFormats WDialog 28, 36, 150, 52
  200. WStyle WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  201. FONT 8 "Helv"
  202. CAPTION "Indents"
  203. begin
  204. ltext "&Left Indent:", idiNil, 3, 7, 48, 12
  205. edittext idiParLfIndent, 56, 5, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  206. ltext "&First Line:", idiNil, 3, 22, 44, 12
  207. edittext idiParFirst, 56, 20, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  208. ltext "&Right Indent:", idiNil, 3, 37, 52, 12
  209. edittext idiParRtIndent, 56, 35, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  210. defpushbutton "OK", idiOk, 105, 8, 40, 14, WS_TABONLY
  211. pushbutton "Cancel", idiCancel, 105, 27, 40, 14, WS_TABONLY
  212. end
  213. dlgRunningHead WDialog 80, 110, 228, 42
  214. WStyle WS_POPUP | WS_CAPTION | WS_BORDER | WS_SYSMENU | WS_VISIBLE
  215. FONT 8 "Helv"
  216. CAPTION "Page Header"
  217. begin
  218. ltext "&Distance from Top:", idiNil, 5, 7, 70, 12
  219. edittext idiRHDx, 85, 5, 33, 12, WS_TABSTOP | ES_AUTOHSCROLL
  220. checkbox "&Print on First Page", idiRHFirst, 133, 5, 90, 12, WS_TABONLY
  221. pushbutton "&Insert Page #", idiRHInsertPage, 12, 22, 64, 14, WS_TABONLY
  222. pushbutton "&Clear", idiRHClear, 88, 22, 30, 14, WS_TABONLY
  223. defpushbutton "&Return to Document", idiOk, 130, 22, 85, 14, WS_TABONLY
  224. end
  225. dlgFooter WDialog 80, 110, 228, 42
  226. WStyle WS_POPUP | WS_CAPTION | WS_BORDER | WS_SYSMENU | WS_VISIBLE
  227. FONT 8 "Helv"
  228. CAPTION "Page Footer"
  229. begin
  230. ltext "&Distance from Bottom:", idiNil, 5, 7, 80, 12
  231. edittext idiRHDx, 95, 5, 33, 12, WS_TABSTOP | ES_AUTOHSCROLL
  232. checkbox "&Print on First Page", idiRHFirst, 133, 5, 90, 12, WS_TABONLY
  233. pushbutton "&Insert Page #", idiRHInsertPage, 12, 22, 64, 14, WS_TABONLY
  234. pushbutton "&Clear", idiRHClear, 88, 22, 30, 14, WS_TABONLY
  235. defpushbutton "&Return to Document", idiOk, 130, 22, 85, 14, WS_TABONLY
  236. end
  237. dlgTabs WDialog 26, 41, 278, 97
  238. WStyle WS_POPUP | WS_BORDER | WS_CAPTION | WS_SYSMENU
  239. FONT 8 "Helv"
  240. CAPTION "Tabs"
  241. begin
  242. ltext "&Positions:", idiNil, 3, 7, 40, 12
  243. edittext idiTabPos0, 45, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  244. ltext "&Decimal:", idiNil, 3, 22, 40, 12
  245. checkbox ".", idiTabDec0, 51, 20, 18, 12, WS_TABONLY
  246. edittext idiTabPos1, 83, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  247. checkbox ".", idiTabDec1, 89, 20, 18, 12, WS_TABONLY
  248. edittext idiTabPos2, 121, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  249. checkbox ".", idiTabDec2, 127, 20, 18, 12, WS_TABONLY
  250. edittext idiTabPos3, 159, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  251. checkbox ".", idiTabDec3, 165, 20, 18, 12, WS_TABONLY
  252. edittext idiTabPos4, 197, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  253. checkbox ".", idiTabDec4, 203, 20, 18, 12, WS_TABONLY
  254. edittext idiTabPos5, 235, 5, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  255. checkbox ".", idiTabDec5, 241, 20, 18, 12, WS_TABONLY
  256. ltext "&Positions:", idiNil, 3, 42, 40, 12
  257. edittext idiTabPos6, 45, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  258. ltext "&Decimal:", idiNil, 3, 57, 40, 12
  259. checkbox ".", idiTabDec6, 51, 55, 18, 12, WS_TABONLY
  260. edittext idiTabPos7, 83, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  261. checkbox ".", idiTabDec7, 89, 55, 18, 12, WS_TABONLY
  262. edittext idiTabPos8, 121, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  263. checkbox ".", idiTabDec8, 127, 55, 18, 12, WS_TABONLY
  264. edittext idiTabPos9, 159, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  265. checkbox ".", idiTabDec9, 165, 55, 18, 12, WS_TABONLY
  266. edittext idiTabPos10, 197, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  267. checkbox ".", idiTabDec10, 203, 55, 18, 12, WS_TABONLY
  268. edittext idiTabPos11, 235, 40, 38, 12, WS_TABONLY | ES_AUTOHSCROLL
  269. checkbox ".", idiTabDec11, 241, 55, 18, 12, WS_TABONLY
  270. defpushbutton "OK", idiOk, 20, 75, 50, 14, WS_TABONLY
  271. pushbutton "Cancel", idiCancel, 90, 75, 50, 14, WS_TABONLY
  272. pushbutton "Clear &All", idiTabClearAll, 160, 75, 50, 14, WS_TABONLY
  273. end
  274. dlgDivision WDialog 26, 30, 180, 110
  275. WStyle WS_POPUP | WS_DLGFRAME
  276. FONT 8 "Helv"
  277. CAPTION "Page Layout"
  278. begin
  279. ltext "&Start Page Numbers At:", idiNil, 5, 7, 88, 12
  280. edittext idiDivPNStart, 95, 5, 30, 12, WS_TABSTOP | ES_AUTOHSCROLL
  281. ltext "Margins:", idiNil, 5, 33, 40, 12
  282. ltext "&Left:", idiNil, 12, 48, 20, 12
  283. edittext idiDivLMarg, 35, 46, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  284. ltext "&Right:", idiNil, 85, 48, 30, 12
  285. edittext idiDivRMarg, 117, 46, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  286. ltext "&Top:", idiNil, 12, 65, 20, 12
  287. edittext idiDivTMarg, 35, 63, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  288. ltext "&Bottom:", idiNil, 85, 65, 30, 12
  289. edittext idiDivBMarg, 117, 63, 40, 12, WS_TABSTOP | ES_AUTOHSCROLL
  290. ltext "Measurements:", idiNil, 5, 84, 63, 12
  291. radiobutton "&inch", idiDivInch, 12, 94, 27, 12, WS_TABSTOP | WS_GROUP
  292. radiobutton "&cm", idiDivCm, 44, 94, 26, 12
  293. defpushbutton "OK", idiOk, 135, 5, 40, 14, WS_TABONLY
  294. pushbutton "Cancel", idiCancel, 135, 23, 40, 14, WS_TABONLY
  295. end
  296. dlgBadMargins WDialog 50, 20, 235, 65
  297. WStyle WS_POPUP | WS_BORDER | WS_CAPTION
  298. FONT 8 "Helv"
  299. CAPTION "Write"
  300. begin
  301. icon DI_EXCLAMATION, idiNil, 5, 5, 0, 0
  302. ltext "Current printer cannot print outside these margins", idiNil, 30, 5, 200, 12
  303. ltext "Left:", idiNil, 30, 17, 20, 12
  304. ltext "", idiBMrgLeft, 60, 17, 40, 12
  305. ltext "Right:", idiNil, 130, 17, 24, 12
  306. ltext "", idiBMrgRight, 168, 17, 40, 12
  307. ltext "Top:", idiNil, 30, 29, 16, 12
  308. ltext "", idiBMrgTop, 60, 29, 40, 12
  309. ltext "Bottom:", idiNil, 130, 29, 28, 12
  310. ltext "", idiBMrgBottom, 168, 29, 40, 12
  311. defpushbutton "OK", idiOk, 97, 44, 40, 14, WS_TABSTOP
  312. end
  313. 
  314.