VWINDOWS.LST 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. Listing:
  2. 1 IMPLEMENTATION MODULE VWindows;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1992 PMI
  8. 7 * Green Bay, Wisconsin
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *
  12. 11 * $Header: D:/logfiles/mods/vwindows.mov 1.7 10 Mar 1991 15:34:42 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 (*EntryDiag:
  18. 17 IMPORT Diagnostics;
  19. 18 :EntryDiag*)
  20. 19
  21. 20 IMPORT LowLevel;
  22. 21 IMPORT MsColors;
  23. 22 IMPORT MsgBox1;
  24. 23 IMPORT SmartScreen;
  25. 24 IMPORT SYSTEM;
  26. 25 IMPORT WindowPrims;
  27. 26
  28. 27 VAR
  29. 28 Initialized : BOOLEAN;
  30. 29 handle: CARDINAL;
  31. 30
  32. 31 TYPE
  33. 32 AWindowHandle = POINTER TO CARDINAL;
  34. ***** ^ not supported yet
  35. 33 VAR
  36. 34 NormalBackGround: MsColors.AColor;
  37. ***** ^ not supported yet
  38. 35 NormalAttrib: MsColors.AMonoAttribute;
  39. ***** ^ not supported yet
  40. 36
  41. 37 PROCEDURE NullScan( StrAddr: SYSTEM.ADDRESS ): CARDINAL;
  42. ***** ^ not supported yet
  43. 38 BEGIN
  44. 39 RETURN LowLevel.ScanEQ( 32767, 0C, StrAddr );
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. 40 END NullScan;
  49. ***** ^ not supported yet
  50. 41
  51. 42
  52. 43 PROCEDURE AtrbSetToAtrb( TheSet: SmartScreen.AttributeSet ):
  53. ***** ^ not supported yet
  54. 44 SmartScreen.TextAttribute;
  55. ***** ^ not supported yet
  56. 45 BEGIN
  57. 46 IF SmartScreen.plain IN TheSet THEN
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. 47 RETURN SmartScreen.plain;
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. 48 ELSIF SmartScreen.bold IN TheSet THEN
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. 49 RETURN SmartScreen.bold;
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. 50 ELSIF SmartScreen.underscored IN TheSet THEN
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. 51 RETURN SmartScreen.underscored;
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. 52 ELSIF SmartScreen.blinking IN TheSet THEN
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. 53 RETURN SmartScreen.blinking;
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. 54 ELSIF SmartScreen.ReverseVideo IN TheSet THEN
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. 55 RETURN SmartScreen.ReverseVideo;
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. 56 ELSE
  93. 57 RETURN SmartScreen.plain;
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. 58 END;
  97. 59 END AtrbSetToAtrb;
  98. ***** ^ not supported yet
  99. 60
  100. 61
  101. 62 PROCEDURE DefaultGetCursorHeight( TheWindow: AWindowHandle ):
  102. 63 CARDINAL;
  103. 64 BEGIN
  104. 65 RETURN WindowPrims.GetCursorHeight();
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. 66 END DefaultGetCursorHeight;
  109. ***** ^ not supported yet
  110. 67
  111. 68
  112. 69 PROCEDURE DefaultSetCursorHeight( TheWindow: AWindowHandle;
  113. 70 LinesInCursor: CARDINAL );
  114. 71 BEGIN
  115. 72 SmartScreen.SetCursorHeight( LinesInCursor );
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. 73 END DefaultSetCursorHeight;
  120. ***** ^ not supported yet
  121. 74
  122. 75
  123. 76 PROCEDURE DefaultGetCursorCoords( TheWindow: AWindowHandle; VAR
  124. 77 x, y: CARDINAL );
  125. 78 BEGIN
  126. 79 WindowPrims.GetCursorCoords( x, y );
  127. ***** ^ not supported yet
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. 80 END DefaultGetCursorCoords;
  131. ***** ^ not supported yet
  132. 81
  133. 82
  134. 83 PROCEDURE DefaultDrawBox( TheWindow: AWindowHandle; BoxChars: BoxStr;
  135. ***** ^ undeclared identifier
  136. 84 col1, row1, col2, row2 : CARDINAL);
  137. 85 BEGIN
  138. 86 WindowPrims.DrawThisBox( BoxStr(BoxChars), col1, row1,
  139. ***** ^ not supported yet
  140. ***** ^ not supported yet
  141. ***** ^ undeclared identifier
  142. ***** ^ not supported yet
  143. 87 col2, row2 );
  144. ***** ^ not supported yet
  145. 88 END DefaultDrawBox;
  146. ***** ^ not supported yet
  147. 89
  148. 90 PROCEDURE DefaultDrawStr( TheWindow: AWindowHandle; x, y:
  149. 91 CARDINAL; StrAddr: SYSTEM.ADDRESS; StrLength: CARDINAL );
  150. ***** ^ not supported yet
  151. 92 BEGIN
  152. 93 IF StrLength = 0 THEN
  153. 94 StrLength := NullScan( StrAddr );
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. 95 END;
  157. 96 SmartScreen.AdrWriteAt( x, y, StrAddr, StrLength );
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. ***** ^ not supported yet
  161. ***** ^ not supported yet
  162. 97 END DefaultDrawStr;
  163. ***** ^ not supported yet
  164. 98
  165. 99
  166. 100 PROCEDURE DefaultClearPart( TheWindow: AWindowHandle;
  167. 101 col1, row1, col2, row2: CARDINAL );
  168. 102 BEGIN
  169. 103 IF (col1 <= 1) AND (col2 >= SmartScreen.EndCol()) AND (row1 <= 1)
  170. ***** ^ not supported yet
  171. ***** ^ not supported yet
  172. ***** ^ not supported yet
  173. 104 AND (row2 >= SmartScreen.EndRow() ) THEN
  174. ***** ^ not supported yet
  175. ***** ^ not supported yet
  176. ***** ^ not supported yet
  177. 105 (*If they're clearing the whole window, we assume they're
  178. 106 changing the NormalBackGround color.*)
  179. 107 NormalBackGround := MsColors.AColor(SmartScreen.BackGround);
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. ***** ^ not supported yet
  185. 108 NormalAttrib := MsColors.AMonoAttribute( AtrbSetToAtrb(
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. ***** ^ not supported yet
  190. 109 SmartScreen.TextModeNow));
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. 110 END;
  194. 111 SmartScreen.ClearPart( col1, row1, col2, row2 );
  195. ***** ^ not supported yet
  196. ***** ^ not supported yet
  197. ***** ^ not supported yet
  198. 112 END DefaultClearPart;
  199. ***** ^ not supported yet
  200. 113
  201. 114
  202. 115 PROCEDURE DefaultEndCol( TheWindow: AWindowHandle ): CARDINAL;
  203. 116 BEGIN
  204. 117 RETURN SmartScreen.EndCol();
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. ***** ^ not supported yet
  208. 118 END DefaultEndCol;
  209. ***** ^ not supported yet
  210. 119
  211. 120
  212. 121 PROCEDURE DefaultEndRow( TheWindow: AWindowHandle ): CARDINAL;
  213. 122 BEGIN
  214. 123 RETURN SmartScreen.EndRow();
  215. ***** ^ not supported yet
  216. ***** ^ not supported yet
  217. ***** ^ not supported yet
  218. 124 END DefaultEndRow;
  219. ***** ^ not supported yet
  220. 125
  221. 126
  222. 127 PROCEDURE DefaultGotoXY( TheWindow: AWindowHandle; x, y: CARDINAL );
  223. 128 BEGIN
  224. 129 SmartScreen.GotoXY( x, y );
  225. ***** ^ not supported yet
  226. ***** ^ not supported yet
  227. ***** ^ not supported yet
  228. 130 END DefaultGotoXY;
  229. ***** ^ not supported yet
  230. 131
  231. 132
  232. 133 PROCEDURE DefaultReverseColors( TheWindow: AWindowHandle );
  233. 134 BEGIN
  234. 135 SmartScreen.ReverseColors();
  235. ***** ^ not supported yet
  236. ***** ^ not supported yet
  237. ***** ^ not supported yet
  238. 136 END DefaultReverseColors;
  239. ***** ^ not supported yet
  240. 137
  241. 138
  242. 139 PROCEDURE DefaultSetMonoAttr( TheWindow: AWindowHandle;
  243. 140 NewMonoAttr : MsColors.AMonoAttribute );
  244. ***** ^ not supported yet
  245. 141 BEGIN
  246. 142 SmartScreen.SetAttribOrColor( SmartScreen.ForeGround,
  247. ***** ^ not supported yet
  248. ***** ^ not supported yet
  249. ***** ^ not supported yet
  250. ***** ^ not supported yet
  251. 143 SmartScreen.BackGround,
  252. ***** ^ not supported yet
  253. ***** ^ not supported yet
  254. 144 SmartScreen.TextAttribute(NewMonoAttr) );
  255. ***** ^ not supported yet
  256. ***** ^ not supported yet
  257. ***** ^ not supported yet
  258. 145 END DefaultSetMonoAttr;
  259. ***** ^ not supported yet
  260. 146
  261. 147
  262. 148 PROCEDURE DefaultSetForeColor( TheWindow: AWindowHandle;
  263. 149 NewForeColor : MsColors.AColor );
  264. ***** ^ not supported yet
  265. 150 BEGIN
  266. 151 SmartScreen.SetAttribOrColor( SmartScreen.Colors( NewForeColor ),
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. ***** ^ not supported yet
  271. ***** ^ not supported yet
  272. 152 SmartScreen.BackGround, AtrbSetToAtrb(SmartScreen.TextModeNow) );
  273. ***** ^ not supported yet
  274. ***** ^ not supported yet
  275. ***** ^ not supported yet
  276. ***** ^ not supported yet
  277. ***** ^ not supported yet
  278. 153 END DefaultSetForeColor;
  279. ***** ^ not supported yet
  280. 154
  281. 155
  282. 156 PROCEDURE DefaultSetBackColor( TheWindow: AWindowHandle;
  283. 157 NewBackColor : MsColors.AColor );
  284. ***** ^ not supported yet
  285. 158 BEGIN
  286. 159 SmartScreen.SetAttribOrColor( SmartScreen.ForeGround,
  287. ***** ^ not supported yet
  288. ***** ^ not supported yet
  289. ***** ^ not supported yet
  290. ***** ^ not supported yet
  291. 160 SmartScreen.Colors( NewBackColor ),
  292. ***** ^ not supported yet
  293. ***** ^ not supported yet
  294. ***** ^ not supported yet
  295. 161 AtrbSetToAtrb(SmartScreen.TextModeNow) );
  296. ***** ^ not supported yet
  297. ***** ^ not supported yet
  298. ***** ^ not supported yet
  299. 162 END DefaultSetBackColor;
  300. ***** ^ not supported yet
  301. 163
  302. 164
  303. 165 PROCEDURE DefaultMsgBox( TheWindow: AWindowHandle;
  304. 166 TextPtr: SYSTEM.ADDRESS; CaptionPtr: SYSTEM.ADDRESS;
  305. ***** ^ not supported yet
  306. ***** ^ not supported yet
  307. 167 WinType: CARDINAL ): CARDINAL;
  308. 168 BEGIN
  309. 169 RETURN MsgBox1.WinMsgBox( TheWindow, TextPtr, CaptionPtr, WinType );
  310. ***** ^ not supported yet
  311. ***** ^ not supported yet
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. ***** ^ not supported yet
  315. ***** ^ not supported yet
  316. 170 END DefaultMsgBox;
  317. ***** ^ not supported yet
  318. 171
  319. 172
  320. 173 PROCEDURE DefaultMonoAttr( TheWindow: AWindowHandle ):
  321. 174 MsColors.AMonoAttribute;
  322. ***** ^ not supported yet
  323. 175 VAR
  324. 176 TmpAttr : MsColors.AMonoAttribute;
  325. ***** ^ not supported yet
  326. 177 BEGIN
  327. 178 (*
  328. 179 TmpAttr := MsColors.AMonoAttribute(
  329. 180 AtrbSetToAtrb(SmartScreen.TextModeNow) );
  330. 181 RETURN TmpAttr;
  331. 182 *)
  332. 183 RETURN NormalAttrib;
  333. ***** ^ not supported yet
  334. 184 END DefaultMonoAttr;
  335. ***** ^ not supported yet
  336. 185
  337. 186
  338. 187 PROCEDURE DefaultForeColor( TheWindow: AWindowHandle ): MsColors.AColor;
  339. ***** ^ not supported yet
  340. 188 BEGIN
  341. 189 RETURN MsColors.AColor( SmartScreen.ForeGround );
  342. ***** ^ not supported yet
  343. ***** ^ not supported yet
  344. ***** ^ not supported yet
  345. ***** ^ not supported yet
  346. 190 END DefaultForeColor;
  347. ***** ^ not supported yet
  348. 191
  349. 192
  350. 193 PROCEDURE DefaultBackColor( TheWindow: AWindowHandle ): MsColors.AColor;
  351. ***** ^ not supported yet
  352. 194 BEGIN
  353. 195 (* We need something that tells us what color to use in
  354. 196 clearing the window, so we hijack this function for that
  355. 197 purpose. Neither it nor the ForeColor function were
  356. 198 particularly useful in their old roles because you
  357. 199 should always know the colors in which you want to
  358. 200 write. You don't need the window manager to tell you
  359. 201 the colors in which you are writing. *)
  360. 202 RETURN NormalBackGround;
  361. ***** ^ not supported yet
  362. 203 (*
  363. 204 RETURN MsColors.AColor( SmartScreen.BackGround );
  364. 205 *)
  365. 206 END DefaultBackColor;
  366. ***** ^ not supported yet
  367. 207
  368. 208
  369. 209 PROCEDURE DefaultScrollVertically( TheWindow: AWindowHandle;
  370. 210 col1, row1, col2, row2: CARDINAL; lines: INTEGER ): BOOLEAN;
  371. 211 BEGIN
  372. 212 WindowPrims.ScrollWindow( col1, row1, col2, row2, lines );
  373. ***** ^ not supported yet
  374. ***** ^ not supported yet
  375. ***** ^ not supported yet
  376. 213 RETURN TRUE;
  377. 214 END DefaultScrollVertically;
  378. ***** ^ not supported yet
  379. 215
  380. 216
  381. 217 PROCEDURE DefaultScrollHorizontally( TheWindow: AWindowHandle;
  382. 218 col1, row1, col2, row2: CARDINAL; lines: INTEGER ): BOOLEAN;
  383. 219 BEGIN
  384. 220 (*We don't have a fast routine to scroll horizontally, so
  385. 221 we leave it to the client module to repaint. *)
  386. 222 RETURN FALSE;
  387. 223 END DefaultScrollHorizontally;
  388. ***** ^ not supported yet
  389. 224
  390. 225
  391. 226 VAR
  392. 227 col1, row1, col2, row2: CARDINAL;
  393. 228
  394. 229 PROCEDURE DefaultSetScrollPos( TheWindow: AWindowHandle;
  395. 230 WhichScrollBar: INTEGER; AmountScrolled: INTEGER );
  396. 231
  397. 232 PROCEDURE DrawMarkedLine( col1, row1, col2, row2:
  398. 233 CARDINAL; LineType: CHAR; TotalLengthOrWidth,
  399. 234 scrolled: CARDINAL);
  400. 235
  401. 236 PROCEDURE FigurePlacement( VisibleUnits, TotalUnits,
  402. 237 ScrolledUnits: CARDINAL; VAR offs1, offs2: CARDINAL );
  403. 238 VAR
  404. 239 ratio: CARDINAL;
  405. 240 BEGIN
  406. 241 (*First we figure out how many lines of TotalUnits a
  407. 242 single line of VisibleUnits corresponds to.*)
  408. 243 IF VisibleUnits >= TotalUnits THEN
  409. 244 offs1 := 1;
  410. 245 offs2 := 2;
  411. 246 RETURN;
  412. 247 END;
  413. 248 ratio := TotalUnits DIV VisibleUnits;
  414. 249 offs1 := ScrolledUnits DIV ratio;
  415. 250 offs2 := ((TotalUnits - VisibleUnits) -
  416. 251 ScrolledUnits);
  417. 252 (*offs2 now represents the number of units in
  418. 253 TotalUnits below those visible.*)
  419. 254 offs2 := VisibleUnits - (offs2 DIV ratio);
  420. 255 IF offs1 = 0 THEN
  421. 256 INC( offs1 );
  422. ***** ^ undeclared identifier
  423. ***** ^ not supported yet
  424. 257 INC( offs2 );
  425. ***** ^ undeclared identifier
  426. ***** ^ not supported yet
  427. 258 END;
  428. 259 IF offs2 = offs1 THEN
  429. 260 (*Now we make sure the marks don't come out on top of
  430. 261 each other.*)
  431. 262 IF offs1 > 1 THEN
  432. 263 DEC(offs1);
  433. ***** ^ undeclared identifier
  434. ***** ^ not supported yet
  435. 264 ELSE
  436. 265 INC(offs2);
  437. ***** ^ undeclared identifier
  438. ***** ^ not supported yet
  439. 266 END
  440. 267 END;
  441. 268 END FigurePlacement;
  442. ***** ^ not supported yet
  443. 269
  444. 270 VAR
  445. 271 LineChar, MarkChar: CHAR;
  446. 272 offs1, offs2: CARDINAL;
  447. 273 BEGIN
  448. 274 (*DrawMarkedLine*)
  449. 275 IF col1 < col2 THEN
  450. 276 (*We're drawing a horizontal line.*)
  451. 277 IF LineType = 'D' THEN
  452. 278 LineChar := 315C;
  453. 279 (*horizontal double-lined char*)
  454. 280 MarkChar := 330C;
  455. 281 ELSE
  456. 282 LineChar := 304C;
  457. 283 (*horizontal single-lined char*)
  458. 284 MarkChar := 305C;
  459. 285 END;
  460. 286 WindowPrims.DrawLine( col1 + 1, row2, col2 - 1, row2,
  461. ***** ^ not supported yet
  462. ***** ^ not supported yet
  463. 287 LineChar);
  464. ***** ^ not supported yet
  465. 288 (*This wipes out any previous marks.*)
  466. 289 FigurePlacement( (col2 - col1) - 1, TotalLengthOrWidth,
  467. ***** ^ not supported yet
  468. 290 scrolled, offs1, offs2 );
  469. ***** ^ not supported yet
  470. 291 DrawStr( TheWindow, col1 + offs1, row2, SYSTEM.ADR(MarkChar), 1 );
  471. ***** ^ undeclared identifier
  472. ***** ^ not supported yet
  473. ***** ^ not supported yet
  474. ***** ^ not supported yet
  475. ***** ^ not supported yet
  476. ***** ^ not supported yet
  477. 292 DrawStr( TheWindow, col1 + offs2, row2, SYSTEM.ADR(MarkChar), 1 );
  478. ***** ^ undeclared identifier
  479. ***** ^ not supported yet
  480. ***** ^ not supported yet
  481. ***** ^ not supported yet
  482. ***** ^ not supported yet
  483. ***** ^ not supported yet
  484. 293 ELSE
  485. 294 (*We're drawing a vertical line.*)
  486. 295 IF LineType = 'D' THEN
  487. 296 LineChar := 272C;
  488. 297 (*vertical double-lined char*)
  489. 298 MarkChar := 327C;
  490. 299 ELSE
  491. 300 LineChar := CHR(179);
  492. ***** ^ undeclared identifier
  493. ***** ^ not supported yet
  494. 301 (*vertical single-lined char*)
  495. 302 MarkChar := CHR(197);
  496. ***** ^ undeclared identifier
  497. ***** ^ not supported yet
  498. 303 END;
  499. 304 WindowPrims.DrawLine( col2, row1 + 1, col2, row2 - 1,
  500. ***** ^ not supported yet
  501. ***** ^ not supported yet
  502. 305 LineChar );
  503. ***** ^ not supported yet
  504. 306 (*This wipes out any previous marks.*)
  505. 307 FigurePlacement( (row2 - row1) - 1, TotalLengthOrWidth,
  506. ***** ^ not supported yet
  507. 308 scrolled, offs1, offs2 );
  508. ***** ^ not supported yet
  509. 309 DrawStr( TheWindow, col2, row1 + offs1,
  510. ***** ^ undeclared identifier
  511. ***** ^ not supported yet
  512. 310 SYSTEM.ADR(MarkChar), 1 );
  513. ***** ^ not supported yet
  514. ***** ^ not supported yet
  515. ***** ^ not supported yet
  516. ***** ^ not supported yet
  517. 311 DrawStr( TheWindow, col2, row1 + offs2,
  518. ***** ^ undeclared identifier
  519. ***** ^ not supported yet
  520. 312 SYSTEM.ADR(MarkChar), 1 );
  521. ***** ^ not supported yet
  522. ***** ^ not supported yet
  523. ***** ^ not supported yet
  524. ***** ^ not supported yet
  525. 313 END;
  526. 314 END DrawMarkedLine;
  527. ***** ^ not supported yet
  528. 315
  529. 316 VAR
  530. 317 box: CHAR;
  531. 318 BEGIN
  532. 319 IF WhichScrollBar = SbVert THEN
  533. ***** ^ undeclared identifier
  534. 320 DrawMarkedLine( col2, row1, col2,
  535. ***** ^ not supported yet
  536. 321 row2, box, row2 - row1 + 1, AmountScrolled );
  537. ***** ^ not supported yet
  538. 322 ELSIF WhichScrollBar = SbHorz THEN
  539. ***** ^ undeclared identifier
  540. 323 DrawMarkedLine( col1, row2, col2,
  541. ***** ^ not supported yet
  542. 324 row2, box, col2 - col1 + 1, AmountScrolled );
  543. ***** ^ not supported yet
  544. 325 END;
  545. 326 END DefaultSetScrollPos;
  546. ***** ^ not supported yet
  547. 327
  548. 328
  549. 329 PROCEDURE DefaultSetScrollRange( TheWindow: AWindowHandle;
  550. 330 WhichScrollBar, MinPos, MaxPos: INTEGER );
  551. 331 BEGIN
  552. 332 IF WhichScrollBar = SbVert THEN
  553. ***** ^ undeclared identifier
  554. 333 row1 := MinPos;
  555. 334 row2 := MaxPos;
  556. 335 ELSIF WhichScrollBar = SbHorz THEN
  557. ***** ^ undeclared identifier
  558. 336 col1 := MinPos;
  559. 337 col2 := MaxPos;
  560. 338 END;
  561. 339 END DefaultSetScrollRange;
  562. ***** ^ not supported yet
  563. 340
  564. 341 PROCEDURE Init();
  565. 342 BEGIN
  566. 343 IF Initialized THEN
  567. 344 RETURN;
  568. 345 ELSE
  569. 346 Initialized := TRUE;
  570. 347 END;
  571. 348 (*EntryDiag:
  572. 349 Diagnostics.Init();
  573. 350 :EntryDiag*)
  574. 351 LowLevel.Init();
  575. ***** ^ not supported yet
  576. ***** ^ not supported yet
  577. ***** ^ not supported yet
  578. 352 MsColors.Init();
  579. ***** ^ not supported yet
  580. ***** ^ not supported yet
  581. ***** ^ not supported yet
  582. 353 MsgBox1.Init();
  583. ***** ^ not supported yet
  584. ***** ^ not supported yet
  585. ***** ^ not supported yet
  586. 354 SmartScreen.Init();
  587. ***** ^ not supported yet
  588. ***** ^ not supported yet
  589. ***** ^ not supported yet
  590. 355 WindowPrims.Init();
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. ***** ^ not supported yet
  594. 356
  595. 357 (*EntryDiag:
  596. 358 Diagnostics.diagS( 'Entering VWindows', '' );
  597. 359 :EntryDiag*)
  598. 360
  599. 361 SingleBox[0] := CHR(218);
  600. ***** ^ undeclared identifier
  601. ***** ^ not supported yet
  602. ***** ^ undeclared identifier
  603. ***** ^ not supported yet
  604. 362 SingleBox[1] := CHR(196);
  605. ***** ^ undeclared identifier
  606. ***** ^ not supported yet
  607. ***** ^ undeclared identifier
  608. ***** ^ not supported yet
  609. 363 SingleBox[2] := CHR(191);
  610. ***** ^ undeclared identifier
  611. ***** ^ not supported yet
  612. ***** ^ undeclared identifier
  613. ***** ^ not supported yet
  614. 364 SingleBox[3] := CHR(179);
  615. ***** ^ undeclared identifier
  616. ***** ^ not supported yet
  617. ***** ^ undeclared identifier
  618. ***** ^ not supported yet
  619. 365 SingleBox[4] := CHR(179);
  620. ***** ^ undeclared identifier
  621. ***** ^ not supported yet
  622. ***** ^ undeclared identifier
  623. ***** ^ not supported yet
  624. 366 SingleBox[5] := CHR(192);
  625. ***** ^ undeclared identifier
  626. ***** ^ not supported yet
  627. ***** ^ undeclared identifier
  628. ***** ^ not supported yet
  629. 367 SingleBox[6] := CHR(196);
  630. ***** ^ undeclared identifier
  631. ***** ^ not supported yet
  632. ***** ^ undeclared identifier
  633. ***** ^ not supported yet
  634. 368 SingleBox[7] := CHR(217);
  635. ***** ^ undeclared identifier
  636. ***** ^ not supported yet
  637. ***** ^ undeclared identifier
  638. ***** ^ not supported yet
  639. 369 SingleBox[8] := 0C;
  640. ***** ^ undeclared identifier
  641. ***** ^ not supported yet
  642. 370 DoubleBox[0] := CHR(201);
  643. ***** ^ undeclared identifier
  644. ***** ^ not supported yet
  645. ***** ^ undeclared identifier
  646. ***** ^ not supported yet
  647. 371 DoubleBox[1] := CHR(205);
  648. ***** ^ undeclared identifier
  649. ***** ^ not supported yet
  650. ***** ^ undeclared identifier
  651. ***** ^ not supported yet
  652. 372 DoubleBox[2] := CHR(187);
  653. ***** ^ undeclared identifier
  654. ***** ^ not supported yet
  655. ***** ^ undeclared identifier
  656. ***** ^ not supported yet
  657. 373 DoubleBox[3] := CHR(186);
  658. ***** ^ undeclared identifier
  659. ***** ^ not supported yet
  660. ***** ^ undeclared identifier
  661. ***** ^ not supported yet
  662. 374 DoubleBox[4] := CHR(186);
  663. ***** ^ undeclared identifier
  664. ***** ^ not supported yet
  665. ***** ^ undeclared identifier
  666. ***** ^ not supported yet
  667. 375 DoubleBox[5] := CHR(200);
  668. ***** ^ undeclared identifier
  669. ***** ^ not supported yet
  670. ***** ^ undeclared identifier
  671. ***** ^ not supported yet
  672. 376 DoubleBox[6] := CHR(205);
  673. ***** ^ undeclared identifier
  674. ***** ^ not supported yet
  675. ***** ^ undeclared identifier
  676. ***** ^ not supported yet
  677. 377 DoubleBox[7] := CHR(188);
  678. ***** ^ undeclared identifier
  679. ***** ^ not supported yet
  680. ***** ^ undeclared identifier
  681. ***** ^ not supported yet
  682. 378 DoubleBox[8] := 0C;
  683. ***** ^ undeclared identifier
  684. ***** ^ not supported yet
  685. 379 NormalBackGround := MsColors.black;
  686. ***** ^ not supported yet
  687. ***** ^ not supported yet
  688. ***** ^ not supported yet
  689. 380 NormalAttrib := MsColors.plain;
  690. ***** ^ not supported yet
  691. ***** ^ not supported yet
  692. ***** ^ not supported yet
  693. 381 BackColor := DefaultBackColor;
  694. ***** ^ undeclared identifier
  695. ***** ^ not supported yet
  696. 382 ClearPart := DefaultClearPart;
  697. ***** ^ undeclared identifier
  698. ***** ^ not supported yet
  699. 383 CurrentWindow := SYSTEM.ADR(handle);
  700. ***** ^ undeclared identifier
  701. ***** ^ not supported yet
  702. ***** ^ not supported yet
  703. ***** ^ not supported yet
  704. 384 handle:=0;
  705. 385 DrawBox := DefaultDrawBox;
  706. ***** ^ undeclared identifier
  707. ***** ^ not supported yet
  708. 386 DrawStr := DefaultDrawStr;
  709. ***** ^ undeclared identifier
  710. ***** ^ not supported yet
  711. 387 EndCol := DefaultEndCol;
  712. ***** ^ undeclared identifier
  713. ***** ^ not supported yet
  714. 388 EndRow := DefaultEndRow;
  715. ***** ^ undeclared identifier
  716. ***** ^ not supported yet
  717. 389 ForeColor := DefaultForeColor;
  718. ***** ^ undeclared identifier
  719. ***** ^ not supported yet
  720. 390 GetCursorHeight := DefaultGetCursorHeight;
  721. ***** ^ undeclared identifier
  722. ***** ^ not supported yet
  723. 391 GetCursorCoords := DefaultGetCursorCoords;
  724. ***** ^ undeclared identifier
  725. ***** ^ not supported yet
  726. 392 GotoXY := DefaultGotoXY;
  727. ***** ^ undeclared identifier
  728. ***** ^ not supported yet
  729. 393 MessageBox := DefaultMsgBox;
  730. ***** ^ undeclared identifier
  731. ***** ^ not supported yet
  732. 394 MonoAttr := DefaultMonoAttr;
  733. ***** ^ undeclared identifier
  734. ***** ^ not supported yet
  735. 395 ReverseColors := DefaultReverseColors;
  736. ***** ^ undeclared identifier
  737. ***** ^ not supported yet
  738. 396 ScrollHorizontally := DefaultScrollHorizontally;
  739. ***** ^ undeclared identifier
  740. ***** ^ not supported yet
  741. 397 ScrollVertically := DefaultScrollVertically;
  742. ***** ^ undeclared identifier
  743. ***** ^ not supported yet
  744. 398 SetBackColor := DefaultSetBackColor;
  745. ***** ^ undeclared identifier
  746. ***** ^ not supported yet
  747. 399 SetCursorHeight := DefaultSetCursorHeight;
  748. ***** ^ undeclared identifier
  749. ***** ^ not supported yet
  750. 400 SetForeColor := DefaultSetForeColor;
  751. ***** ^ undeclared identifier
  752. ***** ^ not supported yet
  753. 401 SetMonoAttr := DefaultSetMonoAttr;
  754. ***** ^ undeclared identifier
  755. ***** ^ not supported yet
  756. 402 SetScrollPos := DefaultSetScrollPos;
  757. ***** ^ undeclared identifier
  758. ***** ^ not supported yet
  759. 403 SetScrollRange := DefaultSetScrollRange;
  760. ***** ^ undeclared identifier
  761. ***** ^ not supported yet
  762. 404
  763. 405 (*EntryDiag:
  764. 406 Diagnostics.diagS( 'Exiting VWindows', '' );
  765. 407 :EntryDiag*)
  766. 408 END Init;
  767. ***** ^ not supported yet
  768. 409
  769. 410 BEGIN
  770. 411 Initialized := FALSE;
  771. 412 Init();
  772. ***** ^ not supported yet
  773. ***** ^ not supported yet
  774. 413 END VWindows.
  775. ***** ^ not supported yet
  776. 361 errors