home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LBR Archive
(archive/lbr).
You can browse this item here: PTOOLWI3.LBR
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LBR Archive (archive/lbr)
| magic
| Supported |
1%
| dexvert
| EAGLE Library (other/eaglePCBLibrary)
| ext
| Unsupported |
1%
| dexvert
| Micro Focus COBOL library (other/microFocusCobolLibrary)
| ext
| Unsupported |
1%
| dexvert
| Micro Focus COBOL Library (other/microFocusCOBOLLibrary)
| ext
| Unsupported |
100%
| file
| LBR archive data
| default
| |
99%
| file
| data
| default
| |
87%
| TrID
| LU library
| default
| |
12%
| TrID
| C64 Hires bitmap
| default (weak)
| |
100%
| lsar
| LBR
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 20 20 20 20 20 20 20 | 20 20 20 20 00 00 01 00 |. | ....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 50 54 4f 4f 4c 57 49 | 33 49 4e 43 01 00 65 00 |.PTOOLWI|3INC..e.|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 50 54 4f 4f 4c 57 49 | 33 44 4f 43 66 00 37 00 |.PTOOLWI|3DOCf.7.|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 50 54 4f 4f 4c 57 49 | 33 50 41 53 9d 00 24 00 |.PTOOLWI|3PAS..$.|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 20 7b 20 50 54 4f 4f 4c | 57 49 32 2e 49 4e 43 20 | { PTOOL|WI2.INC |
|00000090| 20 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 38 34 | Copyri|ght 1984|
|000000a0| 20 20 52 20 44 20 4f 73 | 74 72 61 6e 64 65 72 20 | R D Os|trander |
|000000b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000c0| 20 20 56 65 72 73 69 6f | 6e 20 33 2e 30 0d 0a 20 | Versio|n 3.0.. |
|000000d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000f0| 4f 73 74 72 61 6e 64 65 | 72 20 44 61 74 61 20 53 |Ostrande|r Data S|
|00000100| 65 72 76 69 63 65 73 20 | 20 20 20 20 20 20 20 20 |ervices | |
|00000110| 20 20 20 20 20 6f 66 0d | 0a 20 20 20 20 20 20 20 | of.|. |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 35 34 33 37 20 48 | | 5437 H|
|00000140| 6f 6e 65 79 20 4d 61 6e | 6f 72 20 44 72 20 20 20 |oney Man|or Dr |
|00000150| 20 20 20 20 20 20 20 20 | 20 20 20 50 54 4f 4f 4c | | PTOOL|
|00000160| 57 49 4e 2e 49 4e 43 0d | 0a 20 20 20 20 20 20 20 |WIN.INC.|. |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 49 6e 64 69 61 6e | | Indian|
|00000190| 61 70 6f 6c 69 73 20 20 | 49 4e 20 20 34 36 32 34 |apolis |IN 4624|
|000001a0| 31 0d 0a 0d 0a 20 54 68 | 65 73 65 20 54 75 72 62 |1.... Th|ese Turb|
|000001b0| 6f 20 50 61 73 63 61 6c | 20 70 72 6f 63 65 64 75 |o Pascal| procedu|
|000001c0| 72 65 73 20 61 72 65 20 | 74 65 78 74 20 77 69 6e |res are |text win|
|000001d0| 64 6f 77 20 6d 61 6e 69 | 70 75 6c 61 74 69 6f 6e |dow mani|pulation|
|000001e0| 20 74 6f 6f 6c 73 20 75 | 73 65 64 20 74 6f 20 65 | tools u|sed to e|
|000001f0| 61 73 65 0d 0a 20 74 68 | 65 20 6d 61 6e 69 70 75 |ase.. th|e manipu|
|00000200| 6c 61 74 69 6f 6e 20 6f | 66 20 57 69 6e 64 6f 77 |lation o|f Window|
|00000210| 73 20 69 6e 20 61 6e 20 | 49 42 4d 20 50 43 20 65 |s in an |IBM PC e|
|00000220| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 20 54 68 65 79 |nvironme|nt. They|
|00000230| 20 61 72 65 20 75 73 65 | 64 20 74 6f 20 6f 70 65 | are use|d to ope|
|00000240| 6e 0d 0a 20 61 6e 64 20 | 63 6c 6f 73 65 20 77 69 |n.. and |close wi|
|00000250| 6e 64 6f 77 73 20 77 68 | 69 6c 65 20 73 61 76 69 |ndows wh|ile savi|
|00000260| 6e 67 20 74 68 65 20 64 | 61 74 61 20 63 6f 76 65 |ng the d|ata cove|
|00000270| 72 65 64 20 62 79 20 74 | 68 65 20 77 69 6e 64 6f |red by t|he windo|
|00000280| 77 2e 20 42 6f 72 64 65 | 72 73 20 61 72 6f 75 6e |w. Borde|rs aroun|
|00000290| 64 0d 0a 20 77 69 6e 64 | 6f 77 73 20 61 72 65 20 |d.. wind|ows are |
|000002a0| 61 6c 73 6f 20 73 75 70 | 70 6f 72 74 65 64 2e 0d |also sup|ported..|
|000002b0| 0a 0d 0a 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |... This| program|
|000002c0| 20 68 61 73 20 62 65 65 | 6e 20 70 6c 61 63 65 64 | has bee|n placed|
|000002d0| 20 69 6e 20 74 68 65 20 | 50 75 62 6c 69 63 20 44 | in the |Public D|
|000002e0| 6f 6d 61 69 6e 20 62 79 | 20 74 68 65 20 61 75 74 |omain by| the aut|
|000002f0| 68 6f 72 20 61 6e 64 20 | 63 6f 70 69 65 73 0d 0a |hor and |copies..|
|00000300| 20 6d 61 79 20 62 65 20 | 66 72 65 65 6c 79 20 6d | may be |freely m|
|00000310| 61 64 65 20 66 6f 72 20 | 6e 6f 6e 2d 63 6f 6d 6d |ade for |non-comm|
|00000320| 65 72 63 69 61 6c 2c 20 | 64 65 6d 6f 6e 73 74 72 |ercial, |demonstr|
|00000330| 61 74 69 6f 6e 2c 20 6f | 72 20 65 76 61 6c 75 61 |ation, o|r evalua|
|00000340| 74 69 6f 6e 20 70 75 72 | 70 6f 73 65 73 2e 0d 0a |tion pur|poses...|
|00000350| 20 55 73 65 20 6f 66 20 | 74 68 65 73 65 20 73 75 | Use of |these su|
|00000360| 62 72 6f 75 74 69 6e 65 | 73 20 69 6e 20 61 20 70 |broutine|s in a p|
|00000370| 72 6f 67 72 61 6d 20 66 | 6f 72 20 73 61 6c 65 20 |rogram f|or sale |
|00000380| 6f 72 20 66 6f 72 20 63 | 6f 6d 6d 65 72 63 69 61 |or for c|ommercia|
|00000390| 6c 20 70 75 72 70 6f 73 | 65 73 20 69 6e 0d 0a 20 |l purpos|es in.. |
|000003a0| 61 20 70 6c 61 63 65 20 | 6f 66 20 62 75 73 69 6e |a place |of busin|
|000003b0| 65 73 73 20 72 65 71 75 | 69 72 65 73 20 61 20 24 |ess requ|ires a $|
|000003c0| 32 30 20 66 65 65 20 62 | 65 20 70 61 69 64 20 74 |20 fee b|e paid t|
|000003d0| 6f 20 74 68 65 20 61 75 | 74 68 6f 72 20 61 74 20 |o the au|thor at |
|000003e0| 74 68 65 20 61 64 64 72 | 65 73 73 0d 0a 20 61 62 |the addr|ess.. ab|
|000003f0| 6f 76 65 2e 20 20 50 65 | 72 73 6f 6e 61 6c 20 6e |ove. Pe|rsonal n|
|00000400| 6f 6e 2d 63 6f 6d 6d 65 | 72 63 69 61 6c 20 75 73 |on-comme|rcial us|
|00000410| 65 72 73 20 6d 61 79 20 | 61 6c 73 6f 20 65 6c 65 |ers may |also ele|
|00000420| 63 74 20 74 6f 20 70 61 | 79 20 74 68 65 20 24 32 |ct to pa|y the $2|
|00000430| 30 20 66 65 65 20 74 6f | 0d 0a 20 65 6e 63 6f 75 |0 fee to|.. encou|
|00000440| 72 61 67 65 20 66 75 72 | 74 68 65 72 20 64 65 76 |rage fur|ther dev|
|00000450| 65 6c 6f 70 6d 65 6e 74 | 20 6f 66 20 74 68 69 73 |elopment| of this|
|00000460| 20 61 6e 64 20 73 69 6d | 69 6c 61 72 20 70 72 6f | and sim|ilar pro|
|00000470| 67 72 61 6d 73 2e 20 57 | 69 74 68 20 70 61 79 6d |grams. W|ith paym|
|00000480| 65 6e 74 20 79 6f 75 0d | 0a 20 77 69 6c 6c 20 62 |ent you.|. will b|
|00000490| 65 20 61 62 6c 65 20 74 | 6f 20 72 65 63 65 69 76 |e able t|o receiv|
|000004a0| 65 20 75 70 64 61 74 65 | 20 6e 6f 74 69 63 65 73 |e update| notices|
|000004b0| 2c 20 64 69 73 6b 65 74 | 74 65 73 20 61 6e 64 20 |, disket|tes and |
|000004c0| 70 72 69 6e 74 65 64 20 | 64 6f 63 75 6d 65 6e 74 |printed |document|
|000004d0| 61 74 69 6f 6e 0d 0a 20 | 6f 66 20 74 68 69 73 20 |ation.. |of this |
|000004e0| 61 6e 64 20 6f 74 68 65 | 72 20 50 54 4f 4f 4c 73 |and othe|r PTOOLs|
|000004f0| 20 66 72 6f 6d 20 4f 73 | 74 72 61 6e 64 65 72 20 | from Os|trander |
|00000500| 44 61 74 61 20 53 65 72 | 76 69 63 65 73 2e 0d 0a |Data Ser|vices...|
|00000510| 0d 0a 20 50 54 4f 4f 4c | 2c 20 61 6e 64 20 50 54 |.. PTOOL|, and PT|
|00000520| 4f 4f 4c 78 78 78 20 61 | 72 65 20 43 6f 70 79 72 |OOLxxx a|re Copyr|
|00000530| 69 67 68 74 20 54 72 61 | 64 65 6d 61 72 6b 73 20 |ight Tra|demarks |
|00000540| 6f 66 20 4f 73 74 72 61 | 6e 64 65 72 20 44 61 74 |of Ostra|nder Dat|
|00000550| 61 20 53 65 72 76 69 63 | 65 73 0d 0a 0d 0a 20 54 |a Servic|es.... T|
|00000560| 75 72 62 6f 20 50 61 73 | 63 61 6c 20 69 73 20 61 |urbo Pas|cal is a|
|00000570| 20 43 6f 70 79 72 69 67 | 68 74 20 6f 66 20 42 6f | Copyrig|ht of Bo|
|00000580| 72 6c 61 6e 64 20 49 6e | 74 65 72 6e 61 74 69 6f |rland In|ternatio|
|00000590| 6e 61 6c 20 49 6e 63 2e | 0d 0a 0d 0a 20 56 65 72 |nal Inc.|.... Ver|
|000005a0| 73 69 6f 6e 20 32 2e 30 | 20 61 64 64 73 20 73 75 |sion 2.0| adds su|
|000005b0| 70 70 6f 72 74 20 66 6f | 72 20 73 74 61 63 6b 20 |pport fo|r stack |
|000005c0| 6f 70 65 72 61 74 69 6f | 6e 73 20 66 6f 72 20 68 |operatio|ns for h|
|000005d0| 6f 6c 64 69 6e 67 20 73 | 63 72 65 65 6e 20 69 6d |olding s|creen im|
|000005e0| 61 67 65 20 64 61 74 61 | 2e 0d 0a 0d 0a 20 56 65 |age data|..... Ve|
|000005f0| 72 73 69 6f 6e 20 33 2e | 30 20 61 75 74 6f 6d 61 |rsion 3.|0 automa|
|00000600| 74 69 63 61 6c 6c 79 20 | 64 65 74 65 72 6d 69 6e |tically |determin|
|00000610| 65 73 20 77 68 65 74 68 | 65 72 20 74 6f 20 75 73 |es wheth|er to us|
|00000620| 65 20 43 2f 47 20 6f 72 | 20 4d 6f 6e 6f 63 68 72 |e C/G or| Monochr|
|00000630| 6f 6d 65 0d 0a 20 6d 6f | 6e 69 74 6f 72 20 63 61 |ome.. mo|nitor ca|
|00000640| 72 64 20 69 66 20 74 68 | 65 20 50 54 4f 4f 4c 57 |rd if th|e PTOOLW|
|00000650| 49 4e 5f 53 63 72 65 65 | 6e 5f 54 79 70 65 20 76 |IN_Scree|n_Type v|
|00000660| 61 72 69 61 62 6c 65 20 | 69 73 20 6c 65 66 74 20 |ariable |is left |
|00000670| 61 73 20 61 6e 20 27 58 | 27 2e 0d 0a 20 54 68 69 |as an 'X|'... Thi|
|00000680| 73 20 77 61 73 20 77 72 | 69 74 74 65 6e 20 62 79 |s was wr|itten by|
|00000690| 20 4c 65 77 20 50 61 70 | 65 72 20 75 73 69 6e 67 | Lew Pap|er using|
|000006a0| 20 72 6f 75 74 69 6e 65 | 73 20 64 65 76 65 6c 6f | routine|s develo|
|000006b0| 70 65 64 20 62 79 20 42 | 65 6c 61 20 4c 75 62 6b |ped by B|ela Lubk|
|000006c0| 69 6e 2e 0d 0a 0d 0a 0d | 0a 50 72 6f 63 65 64 75 |in......|.Procedu|
|000006d0| 72 65 73 20 61 6e 64 20 | 46 75 6e 63 74 69 6f 6e |res and |Function|
|000006e0| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 50 |s availa|ble in P|
|000006f0| 54 4f 4f 4c 57 49 32 2e | 49 4e 43 20 61 72 65 3a |TOOLWI2.|INC are:|
|00000700| 0d 0a 0d 0a 20 50 54 57 | 53 65 74 20 20 28 53 63 |.... PTW|Set (Sc|
|00000710| 72 65 65 6e 23 2c 20 58 | 31 2c 20 59 31 2c 20 58 |reen#, X|1, Y1, X|
|00000720| 32 2c 20 59 32 2c 20 20 | 2d 20 53 65 74 73 20 75 |2, Y2, |- Sets u|
|00000730| 70 20 77 69 6e 64 6f 77 | 20 63 6f 6f 72 64 69 6e |p window| coordin|
|00000740| 61 74 65 73 20 73 6f 20 | 74 68 61 74 20 6c 61 74 |ates so |that lat|
|00000750| 65 72 0d 0a 20 20 20 20 | 20 20 20 20 20 42 6f 72 |er.. | Bor|
|00000760| 64 65 72 53 77 69 74 63 | 68 2c 20 20 20 20 20 20 |derSwitc|h, |
|00000770| 20 20 20 20 20 20 20 20 | 20 20 72 65 66 65 72 65 | | refere|
|00000780| 6e 63 65 73 20 63 61 6e | 20 62 65 20 6d 61 64 65 |nces can| be made|
|00000790| 20 62 79 20 4d 6e 65 6d | 6f 6e 69 63 20 6f 6e 6c | by Mnem|onic onl|
|000007a0| 79 2e 0d 0a 20 20 20 20 | 20 20 20 20 20 42 61 63 |y... | Bac|
|000007b0| 6b 67 72 6f 75 6e 64 43 | 6f 6c 6f 72 2c 20 20 20 |kgroundC|olor, |
|000007c0| 20 20 20 20 20 20 20 20 | 20 20 50 54 57 53 65 74 | | PTWSet|
|000007d0| 20 6d 75 73 74 20 62 65 | 20 64 6f 6e 65 20 6f 6e | must be| done on|
|000007e0| 63 65 20 66 6f 72 20 65 | 61 63 68 20 77 69 6e 64 |ce for e|ach wind|
|000007f0| 6f 77 0d 0a 20 20 20 20 | 20 20 20 20 20 46 6f 72 |ow.. | For|
|00000800| 65 67 72 6f 75 6e 64 43 | 6f 6c 6f 72 29 20 20 20 |egroundC|olor) |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 62 65 66 6f 72 65 | | before|
|00000820| 20 69 74 20 69 73 20 4f | 70 65 6e 65 64 2e 0d 0a | it is O|pened...|
|00000830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000850| 20 20 20 20 20 20 54 68 | 65 20 53 63 72 65 65 6e | Th|e Screen|
|00000860| 23 20 69 73 20 61 20 6e | 75 6d 62 65 72 20 62 65 |# is a n|umber be|
|00000870| 74 77 65 65 6e 20 31 20 | 61 6e 64 0d 0a 20 20 20 |tween 1 |and.. |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008a0| 20 20 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 6e | the m|aximum n|
|000008b0| 75 6d 62 65 72 20 6f 66 | 20 77 69 6e 64 6f 77 73 |umber of| windows|
|000008c0| 20 61 6c 6c 6f 77 61 62 | 6c 65 0d 0a 20 20 20 20 | allowab|le.. |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008f0| 20 20 73 65 74 20 69 6e | 20 74 68 65 20 43 6f 6e | set in| the Con|
|00000900| 73 74 61 6e 74 73 20 42 | 6c 6f 63 6b 20 62 65 6c |stants B|lock bel|
|00000910| 6f 77 2e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ow... | |
|00000920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000930| 20 20 20 20 20 20 20 20 | 20 20 20 54 68 65 20 58 | | The X|
|00000940| 20 61 6e 64 20 59 20 43 | 6f 6f 72 64 69 6e 61 74 | and Y C|oordinat|
|00000950| 65 73 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 20 |es are t|he same |
|00000960| 61 73 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |as.. | |
|00000970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000980| 20 20 20 20 20 20 20 20 | 20 20 66 6f 72 20 74 68 | | for th|
|00000990| 65 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 20 57 |e Turbo |Pascal W|
|000009a0| 69 6e 64 6f 77 20 70 72 | 6f 63 65 64 75 72 65 2e |indow pr|ocedure.|
|000009b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009d0| 20 20 20 20 20 20 20 20 | 41 20 62 6f 72 64 65 72 | |A border|
|000009e0| 20 6d 61 79 20 62 65 20 | 70 6c 61 63 65 64 20 61 | may be |placed a|
|000009f0| 72 6f 75 6e 64 20 74 68 | 65 20 77 69 6e 64 6f 77 |round th|e window|
|00000a00| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a20| 20 20 20 20 20 20 20 20 | 61 6e 64 20 74 68 65 20 | |and the |
|00000a30| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |size of |the wind|
|00000a40| 6f 77 20 77 69 6c 6c 20 | 62 65 0d 0a 20 20 20 20 |ow will |be.. |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a70| 20 20 64 65 63 72 65 61 | 73 65 64 20 74 6f 20 66 | decrea|sed to f|
|00000a80| 69 74 20 69 6e 73 69 64 | 65 20 74 68 65 20 62 6f |it insid|e the bo|
|00000a90| 72 64 65 72 2e 20 54 68 | 65 0d 0a 20 20 20 20 20 |rder. Th|e.. |
|00000aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ac0| 20 42 6f 72 64 65 72 53 | 77 69 74 63 68 20 66 75 | BorderS|witch fu|
|00000ad0| 6e 63 74 69 6f 6e 73 20 | 61 72 65 3a 0d 0a 20 20 |nctions |are:.. |
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b00| 20 20 20 20 20 20 20 30 | 20 2d 20 4e 6f 20 62 6f | 0| - No bo|
|00000b10| 72 64 65 72 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |rder.. | |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 | | 1|
|00000b40| 20 2d 20 53 69 6e 67 6c | 65 20 6c 69 6e 65 20 62 | - Singl|e line b|
|00000b50| 6c 6f 63 6b 20 67 72 61 | 70 68 69 63 73 20 62 6f |lock gra|phics bo|
|00000b60| 72 64 65 72 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |rder.. | |
|00000b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 32 | | 2|
|00000b90| 20 2d 20 44 6f 75 62 6c | 65 20 6c 69 6e 65 20 62 | - Doubl|e line b|
|00000ba0| 6c 6f 63 6b 20 67 72 61 | 70 68 69 63 73 20 62 6f |lock gra|phics bo|
|00000bb0| 72 64 65 72 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |rder.. | |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 31 | | -1|
|00000be0| 20 2d 20 53 69 6e 67 6c | 65 20 6c 69 6e 65 20 52 | - Singl|e line R|
|00000bf0| 65 76 65 72 73 65 64 20 | 63 6f 6c 6f 72 20 62 6f |eversed |color bo|
|00000c00| 72 64 65 72 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |rder.. | |
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 32 | | -2|
|00000c30| 20 2d 20 44 6f 75 62 6c | 65 20 6c 69 6e 65 20 52 | - Doubl|e line R|
|00000c40| 65 76 65 72 73 65 64 20 | 63 6f 6c 6f 72 20 62 6f |eversed |color bo|
|00000c50| 72 64 65 72 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |rder.. | |
|00000c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 68 65 20 | | The |
|00000c80| 42 61 63 6b 67 72 6f 75 | 6e 64 43 6f 6c 6f 72 20 |Backgrou|ndColor |
|00000c90| 61 6e 64 20 46 6f 72 65 | 67 72 6f 75 6e 64 43 6f |and Fore|groundCo|
|00000ca0| 6c 6f 72 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |lor.. | |
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 70 61 72 61 6d | | param|
|00000cd0| 65 74 65 72 73 20 61 72 | 65 20 74 68 65 20 73 61 |eters ar|e the sa|
|00000ce0| 6d 65 20 61 73 20 66 6f | 72 20 74 68 65 20 54 75 |me as fo|r the Tu|
|00000cf0| 72 62 6f 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |rbo.. | |
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d10| 20 20 20 20 20 20 20 20 | 20 20 20 50 61 73 63 61 | | Pasca|
|00000d20| 6c 20 54 65 78 74 43 6f | 6c 6f 72 20 61 6e 64 20 |l TextCo|lor and |
|00000d30| 54 65 78 74 42 61 63 6b | 67 72 6f 75 6e 64 0d 0a |TextBack|ground..|
|00000d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d60| 20 20 20 20 20 20 70 72 | 6f 63 65 64 75 72 65 73 | pr|ocedures|
|00000d70| 2e 0d 0a 0d 0a 20 50 54 | 57 4f 70 65 6e 20 28 53 |..... PT|WOpen (S|
|00000d80| 63 72 65 65 6e 23 29 20 | 20 20 20 20 20 20 20 20 |creen#) | |
|00000d90| 20 20 20 20 20 20 20 20 | 20 2d 20 41 63 74 69 76 | | - Activ|
|00000da0| 61 74 65 73 20 61 20 77 | 69 6e 64 6f 77 20 28 70 |ates a w|indow (p|
|00000db0| 72 65 76 69 6f 75 73 6c | 79 20 73 65 74 20 62 79 |reviousl|y set by|
|00000dc0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000de0| 20 20 20 20 20 20 20 20 | 50 54 57 53 65 74 29 20 | |PTWSet) |
|00000df0| 61 6e 64 20 73 61 76 65 | 73 20 74 68 65 20 73 63 |and save|s the sc|
|00000e00| 72 65 65 6e 20 63 6f 76 | 65 72 65 64 20 62 79 0d |reen cov|ered by.|
|00000e10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e30| 20 20 20 20 20 20 20 74 | 68 65 20 77 69 6e 64 6f | t|he windo|
|00000e40| 77 2e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |w... | |
|00000e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e60| 20 20 20 20 20 20 20 20 | 20 20 49 6e 20 74 68 65 | | In the|
|00000e70| 20 43 6f 6e 73 74 61 6e | 74 73 20 42 6c 6f 63 6b | Constan|ts Block|
|00000e80| 20 66 6f 6c 6c 6f 77 69 | 6e 67 2c 20 74 68 65 72 | followi|ng, ther|
|00000e90| 65 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.. | |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000eb0| 20 20 20 20 20 20 20 20 | 20 69 73 20 61 20 70 61 | | is a pa|
|00000ec0| 72 61 6d 65 74 65 72 20 | 74 68 61 74 20 73 65 74 |rameter |that set|
|00000ed0| 73 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 0d 0a 20 |s the ma|ximum.. |
|00000ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f00| 20 20 20 20 20 6e 75 6d | 62 65 72 20 6f 66 20 77 | num|ber of w|
|00000f10| 69 6e 64 6f 77 73 20 74 | 68 61 74 20 6d 61 79 20 |indows t|hat may |
|00000f20| 62 65 20 6f 70 65 6e 20 | 61 74 0d 0a 20 20 20 20 |be open |at.. |
|00000f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f50| 20 20 61 6e 79 20 6f 6e | 65 20 74 69 6d 65 2e 0d | any on|e time..|
|00000f60| 0a 0d 0a 20 50 54 57 43 | 6c 6f 73 65 20 20 20 20 |... PTWC|lose |
|00000f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f80| 20 20 20 20 20 20 20 2d | 20 44 65 2d 61 63 74 69 | -| De-acti|
|00000f90| 76 61 74 65 73 20 74 68 | 65 20 6f 70 65 6e 20 77 |vates th|e open w|
|00000fa0| 69 6e 64 6f 77 2c 20 61 | 63 74 69 76 61 74 65 73 |indow, a|ctivates|
|00000fb0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fd0| 20 20 20 20 20 20 20 20 | 74 68 65 20 70 72 65 76 | |the prev|
|00000fe0| 69 6f 75 73 20 77 69 6e | 64 6f 77 20 61 6e 64 20 |ious win|dow and |
|00000ff0| 72 65 73 74 6f 72 65 73 | 20 74 68 65 0d 0a 20 20 |restores| the.. |
|00001000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001020| 20 20 20 20 73 63 72 65 | 65 6e 20 63 6f 76 65 72 | scre|en cover|
|00001030| 65 64 20 62 79 20 74 68 | 65 20 63 6c 6f 73 65 64 |ed by th|e closed|
|00001040| 20 77 69 6e 64 6f 77 2e | 0d 0a 20 20 20 20 20 20 | window.|.. |
|00001050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001070| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 50 54 |Note tha|t the PT|
|00001080| 57 4f 70 65 6e 20 26 20 | 50 54 57 43 6c 6f 73 65 |WOpen & |PTWClose|
|00001090| 20 68 61 76 65 20 61 0d | 0a 20 20 20 20 20 20 20 | have a.|. |
|000010a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 22 | | "|
|000010c0| 50 75 73 68 2f 50 6f 70 | 22 20 74 79 70 65 20 6f |Push/Pop|" type o|
|000010d0| 66 20 61 63 74 69 6f 6e | 2e 0d 0a 20 20 20 20 20 |f action|... |
|000010e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001120| 20 20 20 20 20 20 20 7d | 0d 0a 0d 0a 0d 0a 7b 20 | }|......{ |
|00001130| 43 6f 6e 73 74 61 6e 74 | 20 56 61 6c 75 65 73 20 |Constant| Values |
|00001140| 28 50 61 72 61 6d 65 74 | 65 72 73 29 20 54 68 61 |(Paramet|ers) Tha|
|00001150| 74 20 6d 75 73 74 20 62 | 65 20 69 6e 63 6c 75 64 |t must b|e includ|
|00001160| 65 64 20 69 6e 20 79 6f | 75 72 20 73 6f 75 72 63 |ed in yo|ur sourc|
|00001170| 65 20 70 72 6f 67 72 61 | 6d 20 7d 0d 0a 0d 0a 28 |e progra|m }....(|
|00001180| 2a 0d 0a 43 4f 4e 53 54 | 0d 0a 0d 0a 20 20 20 50 |*..CONST|.... P|
|00001190| 54 4f 4f 4c 57 49 4e 5f | 4e 75 6d 62 65 72 5f 6f |TOOLWIN_|Number_o|
|000011a0| 66 5f 57 69 6e 64 6f 77 | 73 20 3d 20 6e 6e 3b 20 |f_Window|s = nn; |
|000011b0| 20 20 20 7b 20 54 68 69 | 73 20 64 65 74 65 72 6d | { Thi|s determ|
|000011c0| 69 6e 65 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |ines the| number |
|000011d0| 6f 66 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 20 |of |}.. |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001200| 20 20 7b 20 77 69 6e 64 | 6f 77 73 20 74 68 61 74 | { wind|ows that|
|00001210| 20 6d 61 79 20 62 65 20 | 73 65 74 20 77 69 74 68 | may be |set with|
|00001220| 20 74 68 65 20 20 20 7d | 0d 0a 20 20 20 20 20 20 | the }|.. |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001250| 20 7b 20 50 54 57 53 65 | 74 20 70 72 6f 63 65 64 | { PTWSe|t proced|
|00001260| 75 72 65 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |ure. | |
|00001270| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 20 20 20 | }.|. |
|00001280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012a0| 7b 20 54 68 69 73 20 61 | 6c 73 6f 20 64 65 74 65 |{ This a|lso dete|
|000012b0| 72 6d 69 6e 65 73 20 74 | 68 65 20 6d 61 78 69 6d |rmines t|he maxim|
|000012c0| 75 6d 20 20 20 7d 0d 0a | 20 20 20 20 20 20 20 20 |um }..| |
|000012d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|000012f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 77 69 6e 64 6f | number |of windo|
|00001300| 77 73 20 74 68 61 74 20 | 6d 61 79 20 62 65 20 6f |ws that |may be o|
|00001310| 70 65 6e 20 7d 0d 0a 20 | 20 20 20 20 20 20 20 20 |pen }.. | |
|00001320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 20 | | { |
|00001340| 61 74 20 61 6e 79 20 6f | 6e 65 20 74 69 6d 65 2e |at any o|ne time.|
|00001350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001360| 20 20 20 7d 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | }.. | |
|00001370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 20 55 | | { U|
|00001390| 73 65 20 74 68 65 20 67 | 72 65 61 74 65 72 20 6f |se the g|reater o|
|000013a0| 66 20 74 68 65 20 74 77 | 6f 2e 20 20 20 20 20 20 |f the tw|o. |
|000013b0| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 | }.... | |
|000013c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001400| 20 20 2a 29 0d 0a 0d 0a | 7b 20 41 72 65 61 73 20 | *)....|{ Areas |
|00001410| 66 6f 72 20 69 6e 74 65 | 72 6e 61 6c 20 75 73 65 |for inte|rnal use|
|00001420| 20 42 65 67 69 6e 20 48 | 65 72 65 20 2a 2a 2a 2a | Begin H|ere ****|
|00001430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001440| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001450| 2a 2a 2a 2a 20 7d 0d 0a | 0d 0a 54 59 50 45 0d 0a |**** }..|..TYPE..|
|00001460| 0d 0a 20 20 20 20 20 50 | 54 4f 4f 4c 57 49 4e 5f |.. P|TOOLWIN_|
|00001470| 53 65 74 5f 49 6e 66 6f | 20 20 3d 20 52 65 63 6f |Set_Info| = Reco|
|00001480| 72 64 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |rd.. | |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014a0| 50 54 4f 4f 4c 57 49 4e | 5f 58 31 20 20 20 20 20 |PTOOLWIN|_X1 |
|000014b0| 20 20 3a 20 49 6e 74 65 | 67 65 72 3b 0d 0a 20 20 | : Inte|ger;.. |
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 50 54 4f 4f 4c 57 | | PTOOLW|
|000014e0| 49 4e 5f 59 31 20 20 20 | 20 20 20 20 3a 20 49 6e |IN_Y1 | : In|
|000014f0| 74 65 67 65 72 3b 0d 0a | 20 20 20 20 20 20 20 20 |teger;..| |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001510| 20 20 20 20 50 54 4f 4f | 4c 57 49 4e 5f 58 32 20 | PTOO|LWIN_X2 |
|00001520| 20 20 20 20 20 20 3a 20 | 49 6e 74 65 67 65 72 3b | : |Integer;|
|00001530| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 54 | | PT|
|00001550| 4f 4f 4c 57 49 4e 5f 59 | 32 20 20 20 20 20 20 20 |OOLWIN_Y|2 |
|00001560| 3a 20 49 6e 74 65 67 65 | 72 3b 0d 0a 20 20 20 20 |: Intege|r;.. |
|00001570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001580| 20 20 20 20 20 20 20 20 | 50 54 4f 4f 4c 57 49 4e | |PTOOLWIN|
|00001590| 5f 42 6f 72 64 65 72 20 | 20 20 3a 20 49 6e 74 65 |_Border | : Inte|
|000015a0| 67 65 72 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ger;.. | |
|000015b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015c0| 20 20 50 54 4f 4f 4c 57 | 49 4e 5f 42 61 63 6b 20 | PTOOLW|IN_Back |
|000015d0| 20 20 20 20 3a 20 49 6e | 74 65 67 65 72 3b 0d 0a | : In|teger;..|
|000015e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 54 4f 4f | | PTOO|
|00001600| 4c 57 49 4e 5f 46 6f 72 | 65 20 20 20 20 20 3a 20 |LWIN_For|e : |
|00001610| 49 6e 74 65 67 65 72 3b | 0d 0a 20 20 20 20 20 20 |Integer;|.. |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001630| 20 20 20 20 45 6e 64 3b | 0d 0a 0d 0a 20 20 20 20 | End;|.... |
|00001640| 20 50 54 4f 4f 4c 57 49 | 4e 5f 53 74 61 63 6b 73 | PTOOLWI|N_Stacks|
|00001650| 20 20 20 20 3d 20 41 72 | 72 61 79 20 5b 31 2e 2e | = Ar|ray [1..|
|00001660| 32 35 5d 20 6f 66 20 53 | 74 72 69 6e 67 20 5b 31 |25] of S|tring [1|
|00001670| 36 30 5d 3b 0d 0a 0d 0a | 0d 0a 43 4f 4e 53 54 0d |60];....|..CONST.|
|00001680| 0a 20 20 20 20 20 50 54 | 4f 4f 4c 57 49 4e 5f 53 |. PT|OOLWIN_S|
|00001690| 63 72 65 65 6e 5f 54 79 | 70 65 20 3a 20 43 68 61 |creen_Ty|pe : Cha|
|000016a0| 72 20 3d 20 27 58 27 3b | 20 7b 49 6e 69 74 69 61 |r = 'X';| {Initia|
|000016b0| 6c 20 76 61 6c 75 65 20 | 6e 65 69 74 68 65 72 20 |l value |neither |
|000016c0| 27 4d 27 20 6f 72 20 27 | 43 27 2c 20 4c 50 7d 0d |'M' or '|C', LP}.|
|000016d0| 0a 0d 0a 0d 0a 56 41 52 | 0d 0a 0d 0a 20 20 20 20 |.....VAR|.... |
|000016e0| 20 50 54 4f 4f 4c 57 49 | 4e 5f 43 5f 53 63 72 65 | PTOOLWI|N_C_Scre|
|000016f0| 65 6e 20 20 20 3a 20 43 | 68 61 72 20 61 62 73 6f |en : C|har abso|
|00001700| 6c 75 74 65 20 24 42 38 | 30 30 3a 24 30 30 30 30 |lute $B8|00:$0000|
|00001710| 3b 0d 0a 20 20 20 20 20 | 50 54 4f 4f 4c 57 49 4e |;.. |PTOOLWIN|
|00001720| 5f 4d 5f 53 63 72 65 65 | 6e 20 20 20 3a 20 43 68 |_M_Scree|n : Ch|
|00001730| 61 72 20 61 62 73 6f 6c | 75 74 65 20 24 42 30 30 |ar absol|ute $B00|
|00001740| 30 3a 24 30 30 30 30 3b | 0d 0a 0d 0a 20 20 20 20 |0:$0000;|.... |
|00001750| 20 50 54 4f 4f 4c 57 49 | 4e 5f 53 65 74 20 20 20 | PTOOLWI|N_Set |
|00001760| 20 20 20 20 20 3a 20 41 | 72 72 61 79 20 5b 31 2e | : A|rray [1.|
|00001770| 2e 50 54 4f 4f 4c 57 49 | 4e 5f 4e 75 6d 62 65 72 |.PTOOLWI|N_Number|
|00001780| 5f 6f 66 5f 57 69 6e 64 | 6f 77 73 5d 0d 0a 20 20 |_of_Wind|ows].. |
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017b0| 6f 66 20 50 54 4f 4f 4c | 57 49 4e 5f 53 65 74 5f |of PTOOL|WIN_Set_|
|000017c0| 49 6e 66 6f 3b 0d 0a 0d | 0a 20 20 20 20 20 50 54 |Info;...|. PT|
|000017d0| 4f 4f 4c 57 49 4e 5f 53 | 74 61 63 6b 5f 4e 75 6d |OOLWIN_S|tack_Num|
|000017e0| 20 20 3a 20 41 72 72 61 | 79 20 5b 31 2e 2e 50 54 | : Arra|y [1..PT|
|000017f0| 4f 4f 4c 57 49 4e 5f 4e | 75 6d 62 65 72 5f 6f 66 |OOLWIN_N|umber_of|
|00001800| 5f 57 69 6e 64 6f 77 73 | 5d 20 6f 66 20 49 6e 74 |_Windows|] of Int|
|00001810| 65 67 65 72 3b 0d 0a 20 | 20 20 20 20 50 54 4f 4f |eger;.. | PTOO|
|00001820| 4c 57 49 4e 5f 53 74 61 | 63 6b 5f 58 20 20 20 20 |LWIN_Sta|ck_X |
|00001830| 3a 20 41 72 72 61 79 20 | 5b 31 2e 2e 50 54 4f 4f |: Array |[1..PTOO|
|00001840| 4c 57 49 4e 5f 4e 75 6d | 62 65 72 5f 6f 66 5f 57 |LWIN_Num|ber_of_W|
|00001850| 69 6e 64 6f 77 73 5d 20 | 6f 66 20 49 6e 74 65 67 |indows] |of Integ|
|00001860| 65 72 3b 0d 0a 20 20 20 | 20 20 50 54 4f 4f 4c 57 |er;.. | PTOOLW|
|00001870| 49 4e 5f 53 74 61 63 6b | 5f 59 20 20 20 20 3a 20 |IN_Stack|_Y : |
|00001880| 41 72 72 61 79 20 5b 31 | 2e 2e 50 54 4f 4f 4c 57 |Array [1|..PTOOLW|
|00001890| 49 4e 5f 4e 75 6d 62 65 | 72 5f 6f 66 5f 57 69 6e |IN_Numbe|r_of_Win|
|000018a0| 64 6f 77 73 5d 20 6f 66 | 20 49 6e 74 65 67 65 72 |dows] of| Integer|
|000018b0| 3b 0d 0a 20 20 20 20 20 | 50 54 4f 4f 4c 57 49 4e |;.. |PTOOLWIN|
|000018c0| 5f 53 74 61 63 6b 20 20 | 20 20 20 20 3a 20 41 72 |_Stack | : Ar|
|000018d0| 72 61 79 20 5b 31 2e 2e | 50 54 4f 4f 4c 57 49 4e |ray [1..|PTOOLWIN|
|000018e0| 5f 4e 75 6d 62 65 72 5f | 6f 66 5f 57 69 6e 64 6f |_Number_|of_Windo|
|000018f0| 77 73 5d 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ws].. | |
|00001900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001910| 20 20 20 20 20 20 20 6f | 66 20 5e 50 54 4f 4f 4c | o|f ^PTOOL|
|00001920| 57 49 4e 5f 53 74 61 63 | 6b 73 3b 0d 0a 0d 0a 20 |WIN_Stac|ks;.... |
|00001930| 20 20 20 20 50 54 4f 4f | 4c 57 49 4e 5f 43 75 72 | PTOO|LWIN_Cur|
|00001940| 72 20 20 20 20 20 20 20 | 3a 20 50 54 4f 4f 4c 57 |r |: PTOOLW|
|00001950| 49 4e 5f 53 65 74 5f 49 | 6e 66 6f 3b 0d 0a 0d 0a |IN_Set_I|nfo;....|
|00001960| 0d 0a 43 4f 4e 53 54 0d | 0a 0d 0a 20 20 20 20 20 |..CONST.|... |
|00001970| 50 54 4f 4f 4c 57 49 4e | 5f 53 74 61 63 6b 5f 53 |PTOOLWIN|_Stack_S|
|00001980| 69 7a 65 20 3a 20 42 79 | 74 65 20 3d 20 30 3b 0d |ize : By|te = 0;.|
|00001990| 0a 0d 0a 20 20 20 20 20 | 50 54 4f 4f 4c 57 49 4e |... |PTOOLWIN|
|000019a0| 5f 46 75 6c 6c 5f 53 63 | 72 65 65 6e 20 3a 20 50 |_Full_Sc|reen : P|
|000019b0| 54 4f 4f 4c 57 49 4e 5f | 53 65 74 5f 49 6e 66 6f |TOOLWIN_|Set_Info|
|000019c0| 20 3d 20 28 50 54 4f 4f | 4c 57 49 4e 5f 58 31 20 | = (PTOO|LWIN_X1 |
|000019d0| 20 20 20 20 3a 20 31 3b | 0d 0a 20 20 20 20 20 20 | : 1;|.. |
|000019e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 20 50 54 4f 4f 4c | | PTOOL|
|00001a10| 57 49 4e 5f 59 31 20 20 | 20 20 20 3a 20 31 3b 0d |WIN_Y1 | : 1;.|
|00001a20| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a50| 20 20 50 54 4f 4f 4c 57 | 49 4e 5f 58 32 20 20 20 | PTOOLW|IN_X2 |
|00001a60| 20 20 3a 20 38 30 3b 0d | 0a 20 20 20 20 20 20 20 | : 80;.|. |
|00001a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a90| 20 20 20 20 20 20 20 20 | 20 20 50 54 4f 4f 4c 57 | | PTOOLW|
|00001aa0| 49 4e 5f 59 32 20 20 20 | 20 20 3a 20 32 35 3b 0d |IN_Y2 | : 25;.|
|00001ab0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ae0| 20 20 50 54 4f 4f 4c 57 | 49 4e 5f 42 6f 72 64 65 | PTOOLW|IN_Borde|
|00001af0| 72 20 3a 20 30 3b 0d 0a | 20 20 20 20 20 20 20 20 |r : 0;..| |
|00001b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b20| 20 20 20 20 20 20 20 20 | 20 50 54 4f 4f 4c 57 49 | | PTOOLWI|
|00001b30| 4e 5f 42 61 63 6b 20 20 | 20 3a 20 30 3b 0d 0a 20 |N_Back | : 0;.. |
|00001b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b70| 50 54 4f 4f 4c 57 49 4e | 5f 46 6f 72 65 20 20 20 |PTOOLWIN|_Fore |
|00001b80| 3a 20 31 35 29 3b 0d 0a | 0d 0a 7b 20 49 6e 74 65 |: 15);..|..{ Inte|
|00001b90| 72 6e 61 6c 20 50 72 6f | 63 65 64 75 72 65 73 20 |rnal Pro|cedures |
|00001ba0| 42 65 67 69 6e 20 48 65 | 72 65 20 2a 2a 2a 2a 2a |Begin He|re *****|
|00001bb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001bc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001bd0| 2a 2a 2a 2a 2a 20 7d 0d | 0a 0d 0a 0d 0a 7b 20 2a |***** }.|.....{ *|
|00001be0| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00001bf0| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00001c00| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00001c10| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00001c20| 20 2a 20 2a 20 2a 20 2a | 0d 0a 0d 0a 20 41 64 61 | * * * *|.... Ada|
|00001c30| 70 74 65 64 20 66 72 6f | 6d 20 57 49 4e 44 4f 57 |pted fro|m WINDOW|
|00001c40| 2e 50 41 53 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |.PAS.. | |
|00001c50| 20 20 20 20 62 79 20 42 | 65 6c 61 20 4c 75 62 6b | by B|ela Lubk|
|00001c60| 69 6e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |in.. | |
|00001c70| 20 20 42 6f 72 6c 61 6e | 64 20 49 6e 74 65 72 6e | Borlan|d Intern|
|00001c80| 61 74 69 6f 6e 61 6c 20 | 54 65 63 68 6e 69 63 61 |ational |Technica|
|00001c90| 6c 20 53 75 70 70 6f 72 | 74 0d 0a 0d 0a 20 4c 65 |l Suppor|t.... Le|
|00001ca0| 77 20 50 61 70 65 72 2c | 20 35 2f 31 32 2f 38 35 |w Paper,| 5/12/85|
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ce0| 20 20 20 20 20 20 20 20 | 7d 0d 0a 0d 0a 50 72 6f | |}....Pro|
|00001cf0| 63 65 64 75 72 65 20 44 | 65 74 65 72 6d 69 6e 65 |cedure D|etermine|
|00001d00| 44 69 73 70 6c 61 79 3b | 0d 0a 7b 20 53 65 74 20 |Display;|..{ Set |
|00001d10| 53 63 72 65 65 6e 42 61 | 73 65 20 74 6f 20 24 42 |ScreenBa|se to $B|
|00001d20| 30 30 30 20 6f 72 20 24 | 42 38 30 30 2c 20 64 65 |000 or $|B800, de|
|00001d30| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 77 68 69 63 68 |pending |on which|
|00001d40| 20 64 69 73 70 6c 61 79 | 20 69 73 20 69 6e 20 75 | display| is in u|
|00001d50| 73 65 2e 0d 0a 20 20 41 | 20 73 69 64 65 20 65 66 |se... A| side ef|
|00001d60| 66 65 63 74 20 69 73 20 | 74 68 61 74 20 74 68 65 |fect is |that the|
|00001d70| 20 63 75 72 73 6f 72 20 | 69 73 20 6c 65 66 74 20 | cursor |is left |
|00001d80| 61 74 20 28 31 2c 31 29 | 20 6f 6e 20 74 68 65 20 |at (1,1)| on the |
|00001d90| 73 63 72 65 65 6e 2e 20 | 7d 0d 0a 0d 0a 20 20 56 |screen. |}.... V|
|00001da0| 61 72 0d 0a 20 20 20 20 | 4d 2c 43 3a 20 49 6e 74 |ar.. |M,C: Int|
|00001db0| 65 67 65 72 3b 0d 0a 20 | 20 20 20 54 3a 20 42 79 |eger;.. | T: By|
|00001dc0| 74 65 3b 0d 0a 0d 0a 20 | 20 42 65 67 69 6e 0d 0a |te;.... | Begin..|
|00001dd0| 20 20 20 20 4d 3a 3d 4d | 65 6d 57 5b 24 42 30 30 | M:=M|emW[$B00|
|00001de0| 30 3a 30 5d 3b 20 7b 4d | 6f 6e 6f 20 31 2c 31 7d |0:0]; {M|ono 1,1}|
|00001df0| 0d 0a 20 20 20 20 43 3a | 3d 4d 65 6d 57 5b 24 42 |.. C:|=MemW[$B|
|00001e00| 38 30 30 3a 30 5d 3b 20 | 7b 43 6f 6c 6f 72 20 31 |800:0]; |{Color 1|
|00001e10| 2c 31 7d 0d 0a 20 20 20 | 20 7b 53 65 74 20 54 20 |,1}.. | {Set T |
|00001e20| 74 6f 20 61 20 76 61 6c | 75 65 20 77 68 69 63 68 |to a val|ue which|
|00001e30| 20 69 73 20 64 69 66 66 | 65 72 65 6e 74 20 74 68 | is diff|erent th|
|00001e40| 61 6e 20 65 69 74 68 65 | 72 20 48 69 28 4d 29 20 |an eithe|r Hi(M) |
|00001e50| 6f 72 20 48 69 28 43 29 | 2e 0d 0a 20 20 20 20 20 |or Hi(C)|... |
|00001e60| 54 68 65 20 74 68 72 65 | 65 20 76 61 6c 75 65 73 |The thre|e values|
|00001e70| 20 6f 66 20 54 2c 20 36 | 34 2c 20 36 35 20 61 6e | of T, 6|4, 65 an|
|00001e80| 64 20 36 36 20 61 72 65 | 20 61 72 62 69 74 72 61 |d 66 are| arbitra|
|00001e90| 72 79 2e 7d 0d 0a 20 20 | 20 20 54 3a 3d 36 34 3b |ry.}.. | T:=64;|
|00001ea0| 0d 0a 20 20 20 20 49 66 | 20 28 48 69 28 4d 29 3d |.. If| (Hi(M)=|
|00001eb0| 54 29 20 4f 72 20 28 48 | 69 28 43 29 3d 54 29 20 |T) Or (H|i(C)=T) |
|00001ec0| 54 68 65 6e 20 54 3a 3d | 36 35 3b 20 7b 49 66 20 |Then T:=|65; {If |
|00001ed0| 6e 6f 74 2c 20 6e 65 69 | 74 68 65 72 20 69 73 20 |not, nei|ther is |
|00001ee0| 36 34 7d 0d 0a 20 20 20 | 20 49 66 20 28 48 69 28 |64}.. | If (Hi(|
|00001ef0| 4d 29 3d 54 29 20 4f 72 | 20 28 48 69 28 43 29 3d |M)=T) Or| (Hi(C)=|
|00001f00| 54 29 20 54 68 65 6e 20 | 54 3a 3d 36 36 3b 20 7b |T) Then |T:=66; {|
|00001f10| 49 66 20 6e 6f 74 2c 20 | 6f 6e 65 20 69 73 20 36 |If not, |one is 6|
|00001f20| 34 2c 20 74 68 65 20 6f | 74 68 65 72 20 69 73 20 |4, the o|ther is |
|00001f30| 6e 6f 74 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |not.. | |
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f60| 36 35 2e 20 20 49 66 20 | 73 6f 2c 20 6f 6e 65 20 |65. If |so, one |
|00001f70| 69 73 20 36 34 2c 20 74 | 68 65 20 6f 74 68 65 72 |is 64, t|he other|
|00001f80| 20 69 73 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | is.. | |
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fb0| 36 35 2c 20 73 6f 20 6e | 65 69 74 68 65 72 20 69 |65, so n|either i|
|00001fc0| 73 20 36 36 7d 0d 0a 20 | 20 20 20 47 6f 74 6f 58 |s 66}.. | GotoX|
|00001fd0| 59 28 31 2c 31 29 3b 20 | 7b 54 6f 20 24 42 30 30 |Y(1,1); |{To $B00|
|00001fe0| 30 20 69 66 20 6d 6f 6e | 6f 2c 20 24 42 38 30 30 |0 if mon|o, $B800|
|00001ff0| 20 69 66 20 63 6f 6c 6f | 72 7d 0d 0a 20 20 20 20 | if colo|r}.. |
|00002000| 57 72 69 74 65 28 43 68 | 72 28 54 29 29 3b 0d 0a |Write(Ch|r(T));..|
|00002010| 20 20 20 20 47 6f 74 6f | 58 59 28 31 2c 31 29 3b | Goto|XY(1,1);|
|00002020| 0d 0a 20 20 20 20 49 66 | 20 4d 65 6d 5b 24 42 30 |.. If| Mem[$B0|
|00002030| 30 30 3a 30 5d 3d 54 20 | 54 68 65 6e 20 50 54 4f |00:0]=T |Then PTO|
|00002040| 4f 4c 57 49 4e 5f 53 63 | 72 65 65 6e 5f 54 79 70 |OLWIN_Sc|reen_Typ|
|00002050| 65 20 3a 3d 20 27 4d 27 | 20 7b 4c 50 20 6d 6f 64 |e := 'M'| {LP mod|
|00002060| 69 66 69 63 61 74 69 6f | 6e 7d 0d 0a 20 20 20 20 |ificatio|n}.. |
|00002070| 45 6c 73 65 20 50 54 4f | 4f 4c 57 49 4e 5f 53 63 |Else PTO|OLWIN_Sc|
|00002080| 72 65 65 6e 5f 54 79 70 | 65 20 3a 3d 20 27 43 27 |reen_Typ|e := 'C'|
|00002090| 3b 20 7b 4c 50 20 6d 6f | 64 69 66 69 63 61 74 69 |; {LP mo|dificati|
|000020a0| 6f 6e 7d 0d 0a 20 20 20 | 20 4d 65 6d 57 5b 24 42 |on}.. | MemW[$B|
|000020b0| 30 30 30 3a 30 5d 3a 3d | 4d 3b 0d 0a 20 20 20 20 |000:0]:=|M;.. |
|000020c0| 4d 65 6d 57 5b 24 42 38 | 30 30 3a 30 5d 3a 3d 43 |MemW[$B8|00:0]:=C|
|000020d0| 3b 0d 0a 20 20 45 6e 64 | 3b 0d 0a 0d 0a 7b 20 2a |;.. End|;....{ *|
|000020e0| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|000020f0| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00002100| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00002110| 20 2a 20 2a 20 2a 20 2a | 20 2a 20 2a 20 2a 20 2a | * * * *| * * * *|
|00002120| 20 2a 20 2a 20 2a 20 2a | 7d 0d 0a 0d 0a 50 72 6f | * * * *|}....Pro|
|00002130| 63 65 64 75 72 65 20 50 | 54 4f 4f 4c 57 49 4e 5f |cedure P|TOOLWIN_|
|00002140| 4f 70 65 6e 5f 57 69 6e | 64 6f 77 20 28 53 63 72 |Open_Win|dow (Scr|
|00002150| 65 65 6e 20 3a 20 49 6e | 74 65 67 65 72 3b 20 4f |een : In|teger; O|
|00002160| 70 65 6e 54 79 70 65 20 | 3a 20 43 68 61 72 29 3b |penType |: Char);|
|00002170| 0d 0a 0d 0a 56 61 72 0d | 0a 20 20 20 49 20 20 3a |....Var.|. I :|
|00002180| 20 42 79 74 65 3b 0d 0a | 0d 0a 42 65 67 69 6e 0d | Byte;..|..Begin.|
|00002190| 0a 20 20 20 20 20 49 66 | 20 28 53 63 72 65 65 6e |. If| (Screen|
|000021a0| 20 3d 20 30 29 20 6f 72 | 0d 0a 20 20 20 20 20 20 | = 0) or|.. |
|000021b0| 20 20 28 50 54 4f 4f 4c | 57 49 4e 5f 53 74 61 63 | (PTOOL|WIN_Stac|
|000021c0| 6b 5f 53 69 7a 65 20 3d | 20 30 29 20 74 68 65 6e |k_Size =| 0) then|
|000021d0| 20 50 54 4f 4f 4c 57 49 | 4e 5f 43 75 72 72 20 3a | PTOOLWI|N_Curr :|
|000021e0| 3d 20 50 54 4f 4f 4c 57 | 49 4e 5f 46 75 6c 6c 5f |= PTOOLW|IN_Full_|
|000021f0| 53 63 72 65 65 6e 0d 0a | 20 20 20 20 20 20 20 20 |Screen..| |
|00002200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 20 50 | | else P|
|00002220| 54 4f 4f 4c 57 49 4e 5f | 43 75 72 72 20 3a 3d 20 |TOOLWIN_|Curr := |
|00002230| 50 54 4f 4f 4c 57 49 4e | 5f 53 65 74 20 5b 53 63 |PTOOLWIN|_Set [Sc|
|00002240| 72 65 65 6e 5d 3b 0d 0a | 20 20 20 20 20 57 69 74 |reen];..| Wit|
|00002250| 68 20 50 54 4f 4f 4c 57 | 49 4e 5f 43 75 72 72 20 |h PTOOLW|IN_Curr |
|00002260| 64 6f 0d 0a 20 20 20 20 | 20 42 65 67 69 6e 0d 0a |do.. | Begin..|
|00002270| 20 20 20 20 20 20 20 20 | 20 20 57 69 6e 64 6f 77 | | Window|
|00002280| 20 28 50 54 4f 4f 4c 57 | 49 4e 5f 58 31 2c 20 50 | (PTOOLW|IN_X1, P|
|00002290| 54 4f 4f 4c 57 49 4e 5f | 59 31 2c 0d 0a 20 20 20 |TOOLWIN_|Y1,.. |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 | | P|
|000022b0| 54 4f 4f 4c 57 49 4e 5f | 58 32 2c 20 50 54 4f 4f |TOOLWIN_|X2, PTOO|
|000022c0| 4c 57 49 4e 5f 59 32 29 | 3b 0d 0a 20 20 20 20 20 |LWIN_Y2)|;.. |
|000022d0| 20 20 20 20 20 49 66 20 | 50 54 4f 4f 4c 57 49 4e | If |PTOOLWIN|
|000022e0| 5f 42 6f 72 64 65 72 20 | 3e 3d 20 30 20 74 68 65 |_Border |>= 0 the|
|000022f0| 6e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |n.. | B|
|00002300| 65 67 69 6e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |egin.. | |
|00002310| 20 20 20 20 20 20 20 20 | 54 65 78 74 42 61 63 6b | |TextBack|
|00002320| 67 72 6f 75 6e 64 20 28 | 50 54 4f 4f 4c 57 49 4e |ground (|PTOOLWIN|
|00002330| 5f 42 61 63 6b 29 3b 0d | 0a 20 20 20 20 20 20 20 |_Back);.|. |
|00002340| 20 20 20 20 20 20 20 20 | 20 20 20 54 65 78 74 43 | | TextC|
|00002350| 6f 6c 6f 72 20 20 20 20 | 20 20 28 50 54 4f 4f 4c |olor | (PTOOL|
|00002360| 57 49 4e 5f 46 6f 72 65 | 29 3b 0d 0a 20 20 20 20 |WIN_Fore|);.. |
|00002370| 20 20 20 20 20 20 20 20 | 45 6e 64 0d 0a 20 20 20 | |End.. |
|00002380| 20 20 20 20 20 20 20 65 | 6c 73 65 0d 0a 20 20 20 | e|lse.. |
|00002390| 20 20 20 20 20 20 20 20 | 20 42 65 67 69 6e 0d 0a | | Begin..|
|000023a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023b0| 20 54 65 78 74 42 61 63 | 6b 67 72 6f 75 6e 64 20 | TextBac|kground |
|000023c0| 28 50 54 4f 4f 4c 57 49 | 4e 5f 46 6f 72 65 29 3b |(PTOOLWI|N_Fore);|
|000023d0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000023e0| 20 20 20 54 65 78 74 43 | 6f 6c 6f 72 20 20 20 20 | TextC|olor |
|000023f0| 20 20 28 50 54 4f 4f 4c | 57 49 4e 5f 42 61 63 6b | (PTOOL|WIN_Back|
|00002400| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00002410| 45 6e 64 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 49 |End;.. | I|
|00002420| 66 20 28 41 62 73 20 28 | 50 54 4f 4f 4c 57 49 4e |f (Abs (|PTOOLWIN|
|00002430| 5f 42 6f 72 64 65 72 29 | 20 3d 20 31 29 20 61 6e |_Border)| = 1) an|
|00002440| 64 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 28 |d.. | (|
|00002450| 4f 70 65 6e 54 79 70 65 | 20 3d 20 27 4e 27 29 20 |OpenType| = 'N') |
|00002460| 74 68 65 6e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |then.. | |
|00002470| 20 20 42 65 67 69 6e 0d | 0a 20 20 20 20 20 20 20 | Begin.|. |
|00002480| 20 20 20 20 20 20 20 20 | 20 20 47 6f 74 6f 78 79 | | Gotoxy|
|00002490| 20 28 31 2c 31 29 3b 20 | 57 72 69 74 65 20 28 27 | (1,1); |Write ('|
|000024a0| da 27 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |.');.. | |
|000024b0| 20 20 20 20 20 20 20 46 | 6f 72 20 49 20 3a 3d 20 | F|or I := |
|000024c0| 32 20 74 6f 20 50 54 4f | 4f 4c 57 49 4e 5f 58 32 |2 to PTO|OLWIN_X2|
|000024d0| 20 2d 20 50 54 4f 4f 4c | 57 49 4e 5f 58 31 20 64 | - PTOOL|WIN_X1 d|
|000024e0| 6f 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o.. | |
|000024f0| 20 20 20 20 20 20 20 20 | 57 72 69 74 65 20 28 27 | |Write ('|
|00002500| c4 27 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |.');.. | |
|00002510| 20 20 20 20 20 20 20 57 | 72 69 74 65 20 28 27 bf | W|rite ('.|
|00002520| 27 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |');.. | |
|00002530| 20 20 20 20 20 20 46 6f | 72 20 49 20 3a 3d 20 32 | Fo|r I := 2|
|00002540| 20 74 6f 20 50 54 4f 4f | 4c 57 49 4e 5f 59 32 20 | to PTOO|LWIN_Y2 |
|00002550| 2d 20 50 54 4f 4f 4c 57 | 49 4e 5f 59 31 20 64 6f |- PTOOLW|IN_Y1 do|
|00002560| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002570| 20 20 20 20 20 20 20 42 | 65 67 69 6e 0d 0a 20 20 | B|egin.. |
|00002580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002590| 20 20 20 20 20 20 20 20 | 47 6f 74 6f 78 79 20 28 | |Gotoxy (|
|000025a0| 31 2c 20 49 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |1, I);..| |
|000025b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025c0| 20 20 57 72 69 74 65 20 | 28 27 b3 27 29 3b 0d 0a | Write |('.');..|
|000025d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025e0| 20 20 20 20 20 20 20 20 | 20 20 47 6f 74 6f 78 79 | | Gotoxy|
|000025f0| 20 28 50 54 4f 4f 4c 57 | 49 4e 5f 58 32 20 2d 20 | (PTOOLW|IN_X2 - |
|00002600| 50 54 4f 4f 4c 57 49 4e | 5f 58 31 20 2b 20 31 2c |PTOOLWIN|_X1 + 1,|
|00002610| 20 49 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | I);.. | |
|00002620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002630| 57 72 69 74 65 20 28 27 | b3 27 29 3b 0d 0a 20 20 |Write ('|.');.. |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002650| 20 20 20 45 6e 64 3b 0d | 0a 20 20 20 20 20 20 20 | End;.|. |
|00002660| 20 20 20 20 20 20 20 20 | 20 20 47 6f 74 6f 78 79 | | Gotoxy|
|00002670| 20 28 31 2c 20 50 54 4f | 4f 4c 57 49 4e 5f 59 32 | (1, PTO|OLWIN_Y2|
|00002680| 20 2d 20 50 54 4f 4f 4c | 57 49 4e 5f 59 31 20 2b | - PTOOL|WIN_Y1 +|
|00002690| 20 31 29 3b 20 57 72 69 | 74 65 20 28 27 c0 27 29 | 1); Wri|te ('.')|
|000026a0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|000026b0| 20 20 20 20 46 6f 72 20 | 49 20 3a 3d 20 32 20 74 | For |I := 2 t|
|000026c0| 6f 20 50 54 4f 4f 4c 57 | 49 4e 5f 58 32 20 2d 20 |o PTOOLW|IN_X2 - |
|000026d0| 50 54 4f 4f 4c 57 49 4e | 5f 58 31 20 64 6f 0d 0a |PTOOLWIN|_X1 do..|
|000026e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026f0| 20 20 20 20 20 57 72 69 | 74 65 20 28 27 c4 27 29 | Wri|te ('.')|
|00002700| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 45 |;.. | E|
|00002710| 6e 64 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 49 66 |nd;.. | If|
|00002720| 20 28 41 62 73 20 28 50 | 54 4f 4f 4c 57 49 4e 5f | (Abs (P|TOOLWIN_|
|00002730| 42 6f 72 64 65 72 29 20 | 3d 20 32 29 20 61 6e 64 |Border) |= 2) and|
|00002740| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 28 4f |.. | (O|
|00002750| 70 65 6e 54 79 70 65 20 | 3d 20 27 4e 27 29 20 74 |penType |= 'N') t|
|00002760| 68 65 6e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |hen.. | |
|00002770| 20 42 65 67 69 6e 0d 0a | 20 20 20 20 20 20 20 20 | Begin..| |
|00002780| 20 20 20 20 20 20 20 20 | 20 47 6f 74 6f 78 79 20 | | Gotoxy |
|00002790| 28 31 2c 31 29 3b 20 57 | 72 69 74 65 20 28 27 c9 |(1,1); W|rite ('.|
|000027a0| 27 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |');.. | |
|000027b0| 20 20 20 20 20 20 46 6f | 72 20 49 20 3a 3d 20 32 | Fo|r I := 2|
|000027c0| 20 74 6f 20 50 54 4f 4f | 4c 57 49 4e 5f 58 32 20 | to PTOO|LWIN_X2 |
|000027d0| 2d 20 50 54 4f 4f 4c 57 | 49 4e 5f 58 31 20 64 6f |- PTOOLW|IN_X1 do|
|000027e0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000027f0| 20 20 20 20 20 20 20 57 | 72 69 74 65 20 28 27 cd | W|rite ('.|
|00002800| 27 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |');.. | |
|00002810| 20 20 20 20 20 20 57 72 | 69 74 65 20 28 27 bb 27 | Wr|ite ('.'|
|00002820| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00002830| 20 20 20 20 20 46 6f 72 | 20 49 20 3a 3d 20 32 20 | For| I := 2 |
|00002840| 74 6f 20 50 54 4f 4f 4c | 57 49 4e 5f 59 32 20 2d |to PTOOL|WIN_Y2 -|
|00002850| 20 50 54 4f 4f 4c 57 49 | 4e 5f 59 31 20 64 6f 0d | PTOOLWI|N_Y1 do.|
|00002860| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002870| 20 20 20 20 20 20 42 65 | 67 69 6e 0d 0a 20 20 20 | Be|gin.. |
|00002880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002890| 20 20 20 20 20 20 20 47 | 6f 74 6f 78 79 20 28 31 | G|otoxy (1|
|000028a0| 2c 20 49 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |, I);.. | |
|000028b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028c0| 20 57 72 69 74 65 20 28 | 27 ba 27 29 3b 0d 0a 20 | Write (|'.');.. |
|000028d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028e0| 20 20 20 20 20 20 20 20 | 20 47 6f 74 6f 78 79 20 | | Gotoxy |
|000028f0| 28 50 54 4f 4f 4c 57 49 | 4e 5f 58 32 20 2d 20 50 |(PTOOLWI|N_X2 - P|
|00002900| 54 4f 4f 4c 57 49 4e 5f | 58 31 20 2b 20 31 2c 20 |TOOLWIN_|X1 + 1, |
|00002910| 49 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |I);.. | |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 57 | | W|
|00002930| 72 69 74 65 20 28 27 ba | 27 29 3b 0d 0a 20 20 20 |rite ('.|');.. |
|00002940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002950| 20 20 45 6e 64 3b 0d 0a | 20 20 20 20 20 20 20 20 | End;..| |
|00002960| 20 20 20 20 20 20 20 20 | 20 47 6f 74 6f 78 79 20 | | Gotoxy |
|00002970| 28 31 2c 20 50 54 4f 4f | 4c 57 49 4e 5f 59 32 20 |(1, PTOO|LWIN_Y2 |
|00002980| 2d 20 50 54 4f 4f 4c 57 | 49 4e 5f 59 31 20 2b 20 |- PTOOLW|IN_Y1 + |
|00002990| 31 29 3b 20 57 72 69 74 | 65 20 28 27 c8 27 29 3b |1); Writ|e ('.');|
|000029a0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000029b0| 20 20 20 46 6f 72 20 49 | 20 3a 3d 20 32 20 74 6f | For I| := 2 to|
|000029c0| 20 50 54 4f 4f 4c 57 49 | 4e 5f 58 32 20 2d 20 50 | PTOOLWI|N_X2 - P|
|000029d0| 54 4f 4f 4c 57 49 4e 5f | 58 31 20 64 6f 0d 0a 20 |TOOLWIN_|X1 do.. |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029f0| 20 20 20 20 57 72 69 74 | 65 20 28 27 cd 27 29 3b | Writ|e ('.');|
|00002a00| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 45 6e |.. | En|
|00002a10| 64 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 49 66 20 |d;.. | If |
|00002a20| 50 54 4f 4f 4c 57 49 4e | 5f 42 6f 72 64 65 72 20 |PTOOLWIN|_Border |
|00002a30| 3c 3e 20 30 20 74 68 65 | 6e 0d 0a 20 20 20 20 20 |<> 0 the|n.. |
|00002a40| 20 20 20 20 20 20 20 42 | 65 67 69 6e 0d 0a 20 20 | B|egin.. |
|00002a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 57 | | W|
|00002a60| 69 6e 64 6f 77 20 28 50 | 54 4f 4f 4c 57 49 4e 5f |indow (P|TOOLWIN_|
|00002a70| 58 31 20 2b 20 31 2c 20 | 50 54 4f 4f 4c 57 49 4e |X1 + 1, |PTOOLWIN|
|00002a80| 5f 59 31 20 2b 20 31 2c | 0d 0a 20 20 20 20 20 20 |_Y1 + 1,|.. |
|00002a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002aa0| 20 20 20 50 54 4f 4f 4c | 57 49 4e 5f 58 32 20 2d | PTOOL|WIN_X2 -|
|00002ab0| 20 31 2c 20 50 54 4f 4f | 4c 57 49 4e 5f 59 32 20 | 1, PTOO|LWIN_Y2 |
|00002ac0| 2d 20 31 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |- 1);.. | |
|00002ad0| 20 20 20 20 20 20 20 20 | 49 66 20 4f 70 65 6e 54 | |If OpenT|
|00002ae0| 79 70 65 20 3d 20 27 4e | 27 20 74 68 65 6e 0d 0a |ype = 'N|' then..|
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b00| 20 20 20 20 49 66 20 41 | 62 73 20 28 50 54 4f 4f | If A|bs (PTOO|
|00002b10| 4c 57 49 4e 5f 42 6f 72 | 64 65 72 29 20 3d 20 31 |LWIN_Bor|der) = 1|
|00002b20| 20 74 68 65 6e 20 57 72 | 69 74 65 20 28 27 d9 27 | then Wr|ite ('.'|
|00002b30| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |).. | |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b60| 20 20 20 20 65 6c 73 65 | 20 57 72 69 74 65 20 28 | else| Write (|
|00002b70| 27 bc 27 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |'.');.. | |
|00002b80| 20 20 20 45 6e 64 3b 0d | 0a 20 20 20 20 20 20 20 | End;.|. |
|00002b90| 20 20 54 65 78 74 42 61 | 63 6b 67 72 6f 75 6e 64 | TextBa|ckground|
|00002ba0| 20 28 50 54 4f 4f 4c 57 | 49 4e 5f 42 61 63 6b 29 | (PTOOLW|IN_Back)|
|00002bb0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 54 65 78 74 |;.. | Text|
|00002bc0| 43 6f 6c 6f 72 20 20 20 | 20 20 20 28 50 54 4f 4f |Color | (PTOO|
|00002bd0| 4c 57 49 4e 5f 46 6f 72 | 65 29 3b 0d 0a 20 20 20 |LWIN_For|e);.. |
|00002be0| 20 20 45 6e 64 3b 0d 0a | 45 6e 64 3b 0d 0a 0d 0a | End;..|End;....|
|00002bf0| 0d 0a 7b 20 43 61 6c 6c | 65 64 20 50 72 6f 63 65 |..{ Call|ed Proce|
|00002c00| 64 75 72 65 73 20 42 65 | 67 69 6e 20 48 65 72 65 |dures Be|gin Here|
|00002c10| 20 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *******|********|
|00002c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 7d 0d |********|***** }.|
|00002c40| 0a 0d 0a 0d 0a 50 52 4f | 43 45 44 55 52 45 20 50 |.....PRO|CEDURE P|
|00002c50| 54 57 53 65 74 20 28 57 | 69 6e 64 6f 77 2c 20 58 |TWSet (W|indow, X|
|00002c60| 31 2c 20 59 31 2c 20 58 | 32 2c 20 59 32 2c 20 42 |1, Y1, X|2, Y2, B|
|00002c70| 6f 72 64 65 72 2c 20 42 | 61 63 6b 2c 20 46 6f 72 |order, B|ack, For|
|00002c80| 65 20 20 3a 20 49 6e 74 | 65 67 65 72 29 3b 0d 0a |e : Int|eger);..|
|00002c90| 0d 0a 42 45 47 49 4e 0d | 0a 0d 0a 20 20 20 20 20 |..BEGIN.|... |
|00002ca0| 49 46 20 50 54 4f 4f 4c | 57 49 4e 5f 53 63 72 65 |IF PTOOL|WIN_Scre|
|00002cb0| 65 6e 5f 54 79 70 65 20 | 3d 20 27 58 27 20 54 48 |en_Type |= 'X' TH|
|00002cc0| 45 4e 20 44 65 74 65 72 | 6d 69 6e 65 44 69 73 70 |EN Deter|mineDisp|
|00002cd0| 6c 61 79 3b 20 7b 4c 50 | 20 6d 6f 64 69 66 69 63 |lay; {LP| modific|
|00002ce0| 61 74 69 6f 6e 7d 0d 0a | 0d 0a 20 20 20 20 20 57 |ation}..|.. W|
|00002cf0| 69 74 68 20 50 54 4f 4f | 4c 57 49 4e 5f 43 75 72 |ith PTOO|LWIN_Cur|
|00002d00| 72 20 64 6f 0d 0a 20 20 | 20 20 20 42 65 67 69 6e |r do.. | Begin|
|00002d10| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 50 54 4f 4f |.. | PTOO|
|00002d20| 4c 57 49 4e 5f 58 31 20 | 20 20 20 20 3a 3d 20 58 |LWIN_X1 | := X|
|00002d30| 31 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 50 54 |1;.. | PT|
|00002d40| 4f 4f 4c 57 49 4e 5f 59 | 31 20 20 20 20 20 3a 3d |OOLWIN_Y|1 :=|
|00002d50| 20 59 31 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | Y1;.. | |
|00002d60| 50 54 4f 4f 4c 57 49 4e | 5f 58 32 20 20 20 20 20 |PTOOLWIN|_X2 |
|00002d70| 3a 3d 20 58 32 3b 0d 0a | 20 20 20 20 20 20 20 20 |:= X2;..| |
|00002d80| 20 20 50 54 4f 4f 4c 57 | 49 4e 5f 59 32 20 20 20 | PTOOLW|IN_Y2 |
|00002d90| 20 20 3a 3d 20 59 32 3b | 0d 0a 20 20 20 20 20 20 | := Y2;|.. |
|00002da0| 20 20 20 20 50 54 4f 4f | 4c 57 49 4e 5f 42 6f 72 | PTOO|LWIN_Bor|
|00002db0| 64 65 72 20 3a 3d 20 42 | 6f 72 64 65 72 3b 0d 0a |der := B|order;..|
|00002dc0| 20 20 20 20 20 20 20 20 | 20 20 50 54 4f 4f 4c 57 | | PTOOLW|
|00002dd0| 49 4e 5f 42 61 63 6b 20 | 20 20 3a 3d 20 42 61 63 |IN_Back | := Bac|
|00002de0| 6b 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 50 54 |k;.. | PT|
|00002df0| 4f 4f 4c 57 49 4e 5f 46 | 6f 72 65 20 20 20 3a 3d |OOLWIN_F|ore :=|
|00002e00| 20 46 6f 72 65 3b 0d 0a | 20 20 20 20 20 45 6e 64 | Fore;..| End|
|00002e10| 3b 0d 0a 20 20 20 20 20 | 50 54 4f 4f 4c 57 49 4e |;.. |PTOOLWIN|
|00002e20| 5f 53 65 74 20 5b 57 69 | 6e 64 6f 77 5d 20 3a 3d |_Set [Wi|ndow] :=|
|00002e30| 20 50 54 4f 4f 4c 57 49 | 4e 5f 43 75 72 72 3b 0d | PTOOLWI|N_Curr;.|
|00002e40| 0a 0d 0a 45 4e 44 3b 0d | 0a 0d 0a 0d 0a 50 52 4f |...END;.|.....PRO|
|00002e50| 43 45 44 55 52 45 20 50 | 54 57 4f 70 65 6e 20 28 |CEDURE P|TWOpen (|
|00002e60| 53 63 72 65 65 6e 20 3a | 20 49 6e 74 65 67 65 72 |Screen :| Integer|
|00002e70| 29 3b 0d 0a 0d 0a 42 45 | 47 49 4e 0d 0a 0d 0a 20 |);....BE|GIN.... |
|00002e80| 20 20 20 20 50 54 4f 4f | 4c 57 49 4e 5f 53 74 61 | PTOO|LWIN_Sta|
|00002e90| 63 6b 5f 53 69 7a 65 20 | 3a 3d 20 50 54 4f 4f 4c |ck_Size |:= PTOOL|
|00002ea0| 57 49 4e 5f 53 74 61 63 | 6b 5f 53 69 7a 65 20 2b |WIN_Stac|k_Size +|
|00002eb0| 20 31 3b 0d 0a 20 20 20 | 20 20 50 54 4f 4f 4c 57 | 1;.. | PTOOLW|
|00002ec0| 49 4e 5f 53 74 61 63 6b | 5f 4e 75 6d 20 5b 50 54 |IN_Stack|_Num [PT|
|00002ed0| 4f 4f 4c 57 49 4e 5f 53 | 74 61 63 6b 5f 53 69 7a |OOLWIN_S|tack_Siz|
|00002ee0| 65 5d 20 3a 3d 20 53 63 | 72 65 65 6e 3b 0d 0a 20 |e] := Sc|reen;.. |
|00002ef0| 20 20 20 20 50 54 4f 4f | 4c 57 49 4e 5f 53 74 61 | PTOO|LWIN_Sta|
|00002f00| 63 6b 5f 58 20 20 20 5b | 50 54 4f 4f 4c 57 49 4e |ck_X [|PTOOLWIN|
|00002f10| 5f 53 74 61 63 6b 5f 53 | 69 7a 65 5d 20 3a 3d 20 |_Stack_S|ize] := |
|00002f20| 57 68 65 72 65 58 3b 0d | 0a 20 20 20 20 20 50 54 |WhereX;.|. PT|
|00002f30| 4f 4f 4c 57 49 4e 5f 53 | 74 61 63 6b 5f 59 20 20 |OOLWIN_S|tack_Y |
|00002f40| 20 5b 50 54 4f 4f 4c 57 | 49 4e 5f 53 74 61 63 6b | [PTOOLW|IN_Stack|
|00002f50| 5f 53 69 7a 65 5d 20 3a | 3d 20 57 68 65 72 65 59 |_Size] :|= WhereY|
|00002f60| 3b 0d 0a 20 20 20 20 20 | 4e 65 77 20 28 50 54 4f |;.. |New (PTO|
|00002f70| 4f 4c 57 49 4e 5f 53 74 | 61 63 6b 20 5b 50 54 4f |OLWIN_St|ack [PTO|
|00002f80| 4f 4c 57 49 4e 5f 53 74 | 61 63 6b 5f 53 69 7a 65 |OLWIN_St|ack_Size|
|00002f90| 5d 29 3b 0d 0a 20 20 20 | 20 20 49 66 20 50 54 4f |]);.. | If PTO|
|00002fa0| 4f 4c 57 49 4e 5f 53 63 | 72 65 65 6e 5f 54 79 70 |OLWIN_Sc|reen_Typ|
|00002fb0| 65 20 3d 20 27 43 27 20 | 74 68 65 6e 0d 0a 20 20 |e = 'C' |then.. |
|00002fc0| 20 20 20 20 20 20 4d 6f | 76 65 20 28 50 54 4f 4f | Mo|ve (PTOO|
|00002fd0| 4c 57 49 4e 5f 43 5f 53 | 63 72 65 65 6e 2c 20 50 |LWIN_C_S|creen, P|
|00002fe0| 54 4f 4f 4c 57 49 4e 5f | 53 74 61 63 6b 20 5b 50 |TOOLWIN_|Stack [P|
|00002ff0| 54 4f 4f 4c 57 49 4e 5f | 53 74 61 63 6b 5f 53 69 |TOOLWIN_|Stack_Si|
|00003000| 7a 65 5d 5e 2c 20 34 30 | 30 30 29 0d 0a 20 20 20 |ze]^, 40|00).. |
|00003010| 20 20 65 6c 73 65 0d 0a | 20 20 20 20 20 20 20 20 | else..| |
|00003020| 4d 6f 76 65 20 28 50 54 | 4f 4f 4c 57 49 4e 5f 4d |Move (PT|OOLWIN_M|
|00003030| 5f 53 63 72 65 65 6e 2c | 20 50 54 4f 4f 4c 57 49 |_Screen,| PTOOLWI|
|00003040| 4e 5f 53 74 61 63 6b 20 | 5b 50 54 4f 4f 4c 57 49 |N_Stack |[PTOOLWI|
|00003050| 4e 5f 53 74 61 63 6b 5f | 53 69 7a 65 5d 5e 2c 20 |N_Stack_|Size]^, |
|00003060| 34 30 30 30 29 3b 0d 0a | 20 20 20 20 20 50 54 4f |4000);..| PTO|
|00003070| 4f 4c 57 49 4e 5f 4f 70 | 65 6e 5f 57 69 6e 64 6f |OLWIN_Op|en_Windo|
|00003080| 77 20 28 53 63 72 65 65 | 6e 2c 20 27 4e 27 29 3b |w (Scree|n, 'N');|
|00003090| 0d 0a 0d 0a 45 4e 44 3b | 0d 0a 0d 0a 0d 0a 50 52 |....END;|......PR|
|000030a0| 4f 43 45 44 55 52 45 20 | 50 54 57 43 6c 6f 73 65 |OCEDURE |PTWClose|
|000030b0| 3b 0d 0a 0d 0a 42 45 47 | 49 4e 0d 0a 20 20 20 20 |;....BEG|IN.. |
|000030c0| 20 49 66 20 50 54 4f 4f | 4c 57 49 4e 5f 53 63 72 | If PTOO|LWIN_Scr|
|000030d0| 65 65 6e 5f 54 79 70 65 | 20 3d 20 27 43 27 20 74 |een_Type| = 'C' t|
|000030e0| 68 65 6e 0d 0a 20 20 20 | 20 20 20 20 20 4d 6f 76 |hen.. | Mov|
|000030f0| 65 20 28 50 54 4f 4f 4c | 57 49 4e 5f 53 74 61 63 |e (PTOOL|WIN_Stac|
|00003100| 6b 20 5b 50 54 4f 4f 4c | 57 49 4e 5f 53 74 61 63 |k [PTOOL|WIN_Stac|
|00003110| 6b 5f 53 69 7a 65 5d 5e | 2c 20 50 54 4f 4f 4c 57 |k_Size]^|, PTOOLW|
|00003120| 49 4e 5f 43 5f 53 63 72 | 65 65 6e 2c 20 34 30 30 |IN_C_Scr|een, 400|
|00003130| 30 29 0d 0a 20 20 20 20 | 20 65 6c 73 65 0d 0a 20 |0).. | else.. |
|00003140| 20 20 20 20 20 20 20 4d | 6f 76 65 20 28 50 54 4f | M|ove (PTO|
|00003150| 4f 4c 57 49 4e 5f 53 74 | 61 63 6b 20 5b 50 54 4f |OLWIN_St|ack [PTO|
|00003160| 4f 4c 57 49 4e 5f 53 74 | 61 63 6b 5f 53 69 7a 65 |OLWIN_St|ack_Size|
|00003170| 5d 5e 2c 20 50 54 4f 4f | 4c 57 49 4e 5f 4d 5f 53 |]^, PTOO|LWIN_M_S|
|00003180| 63 72 65 65 6e 2c 20 34 | 30 30 30 29 3b 0d 0a 20 |creen, 4|000);.. |
|00003190| 20 20 20 20 44 69 73 70 | 6f 73 65 20 28 50 54 4f | Disp|ose (PTO|
|000031a0| 4f 4c 57 49 4e 5f 53 74 | 61 63 6b 20 5b 50 54 4f |OLWIN_St|ack [PTO|
|000031b0| 4f 4c 57 49 4e 5f 53 74 | 61 63 6b 5f 53 69 7a 65 |OLWIN_St|ack_Size|
|000031c0| 5d 29 3b 0d 0a 20 20 20 | 20 20 50 54 4f 4f 4c 57 |]);.. | PTOOLW|
|000031d0| 49 4e 5f 53 74 61 63 6b | 5f 53 69 7a 65 20 3a 3d |IN_Stack|_Size :=|
|000031e0| 20 50 54 4f 4f 4c 57 49 | 4e 5f 53 74 61 63 6b 5f | PTOOLWI|N_Stack_|
|000031f0| 53 69 7a 65 20 2d 20 31 | 3b 0d 0a 20 20 20 20 20 |Size - 1|;.. |
|00003200| 50 54 4f 4f 4c 57 49 4e | 5f 4f 70 65 6e 5f 57 69 |PTOOLWIN|_Open_Wi|
|00003210| 6e 64 6f 77 20 28 50 54 | 4f 4f 4c 57 49 4e 5f 53 |ndow (PT|OOLWIN_S|
|00003220| 74 61 63 6b 5f 4e 75 6d | 20 5b 50 54 4f 4f 4c 57 |tack_Num| [PTOOLW|
|00003230| 49 4e 5f 53 74 61 63 6b | 5f 53 69 7a 65 5d 2c 20 |IN_Stack|_Size], |
|00003240| 27 52 27 29 3b 0d 0a 20 | 20 20 20 20 47 6f 74 6f |'R');.. | Goto|
|00003250| 78 79 20 28 50 54 4f 4f | 4c 57 49 4e 5f 53 74 61 |xy (PTOO|LWIN_Sta|
|00003260| 63 6b 5f 58 20 5b 50 54 | 4f 4f 4c 57 49 4e 5f 53 |ck_X [PT|OOLWIN_S|
|00003270| 74 61 63 6b 5f 53 69 7a | 65 20 2b 20 31 5d 2c 0d |tack_Siz|e + 1],.|
|00003280| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 54 |. | PT|
|00003290| 4f 4f 4c 57 49 4e 5f 53 | 74 61 63 6b 5f 59 20 5b |OOLWIN_S|tack_Y [|
|000032a0| 50 54 4f 4f 4c 57 49 4e | 5f 53 74 61 63 6b 5f 53 |PTOOLWIN|_Stack_S|
|000032b0| 69 7a 65 20 2b 20 31 5d | 29 3b 0d 0a 0d 0a 45 4e |ize + 1]|);....EN|
|000032c0| 44 3b 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |D;......|........|
|000032d0| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
|000032e0| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
|000032f0| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
|00003300| 20 50 54 4f 4f 4c 57 49 | 33 2e 49 4e 43 20 20 20 | PTOOLWI|3.INC |
|00003310| 43 6f 70 79 72 69 67 68 | 74 20 31 39 38 34 20 20 |Copyrigh|t 1984 |
|00003320| 52 20 44 20 4f 73 74 72 | 61 6e 64 65 72 20 20 20 |R D Ostr|ander |
|00003330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003340| 56 65 72 73 69 6f 6e 20 | 33 2e 30 0d 0a 20 20 20 |Version |3.0.. |
|00003350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 73 74 | | Ost|
|00003370| 72 61 6e 64 65 72 20 44 | 61 74 61 20 53 65 72 76 |rander D|ata Serv|
|00003380| 69 63 65 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |ices | |
|00003390| 20 6f 66 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | of.. | |
|000033a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033b0| 20 20 20 20 20 35 34 33 | 37 20 48 6f 6e 65 79 20 | 543|7 Honey |
|000033c0| 4d 61 6e 6f 72 20 44 72 | 20 20 20 20 20 20 20 20 |Manor Dr| |
|000033d0| 20 20 20 20 20 50 54 4f | 4f 4c 57 49 4e 2e 49 4e | PTO|OLWIN.IN|
|000033e0| 43 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |C.. | |
|000033f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003400| 20 20 20 49 6e 64 69 61 | 6e 61 70 6f 6c 69 73 20 | India|napolis |
|00003410| 20 49 4e 20 20 34 36 32 | 34 31 0d 0a 0d 0a 20 54 | IN 462|41.... T|
|00003420| 68 65 73 65 20 54 75 72 | 62 6f 20 50 61 73 63 61 |hese Tur|bo Pasca|
|00003430| 6c 20 70 72 6f 63 65 64 | 75 72 65 73 20 61 72 65 |l proced|ures are|
|00003440| 20 74 65 78 74 20 77 69 | 6e 64 6f 77 20 6d 61 6e | text wi|ndow man|
|00003450| 69 70 75 6c 61 74 69 6f | 6e 20 74 6f 6f 6c 73 20 |ipulatio|n tools |
|00003460| 75 73 65 64 20 74 6f 20 | 65 61 73 65 0d 0a 20 74 |used to |ease.. t|
|00003470| 68 65 20 6d 61 6e 69 70 | 75 6c 61 74 69 6f 6e 20 |he manip|ulation |
|00003480| 6f 66 20 57 69 6e 64 6f | 77 73 20 69 6e 20 61 6e |of Windo|ws in an|
|00003490| 20 49 42 4d 20 50 43 20 | 65 6e 76 69 72 6f 6e 6d | IBM PC |environm|
|000034a0| 65 6e 74 2e 20 54 68 65 | 79 20 61 72 65 20 75 73 |ent. The|y are us|
|000034b0| 65 64 20 74 6f 20 6f 70 | 65 6e 0d 0a 20 61 6e 64 |ed to op|en.. and|
|000034c0| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 73 20 77 | close w|indows w|
|000034d0| 68 69 6c 65 20 73 61 76 | 69 6e 67 20 74 68 65 20 |hile sav|ing the |
|000034e0| 64 61 74 61 20 63 6f 76 | 65 72 65 64 20 62 79 20 |data cov|ered by |
|000034f0| 74 68 65 20 77 69 6e 64 | 6f 77 2e 20 42 6f 72 64 |the wind|ow. Bord|
|00003500| 65 72 73 20 61 72 6f 75 | 6e 64 0d 0a 20 77 69 6e |ers arou|nd.. win|
|00003510| 64 6f 77 73 20 61 72 65 | 20 61 6c 73 6f 20 73 75 |dows are| also su|
|00003520| 70 70 6f 72 74 65 64 2e | 0d 0a 0d 0a 20 54 68 69 |pported.|.... Thi|
|00003530| 73 20 70 72 6f 67 72 61 | 6d 20 68 61 73 20 62 65 |s progra|m has be|
|00003540| 65 6e 20 70 6c 61 63 65 | 64 20 69 6e 20 74 68 65 |en place|d in the|
|00003550| 20 50 75 62 6c 69 63 20 | 44 6f 6d 61 69 6e 20 62 | Public |Domain b|
|00003560| 79 20 74 68 65 20 61 75 | 74 68 6f 72 20 61 6e 64 |y the au|thor and|
|00003570| 20 63 6f 70 69 65 73 0d | 0a 20 6d 61 79 20 62 65 | copies.|. may be|
|00003580| 20 66 72 65 65 6c 79 20 | 6d 61 64 65 20 66 6f 72 | freely |made for|
|00003590| 20 6e 6f 6e 2d 63 6f 6d | 6d 65 72 63 69 61 6c 2c | non-com|mercial,|
|000035a0| 20 64 65 6d 6f 6e 73 74 | 72 61 74 69 6f 6e 2c 20 | demonst|ration, |
|000035b0| 6f 72 20 65 76 61 6c 75 | 61 74 69 6f 6e 20 70 75 |or evalu|ation pu|
|000035c0| 72 70 6f 73 65 73 2e 0d | 0a 20 55 73 65 20 6f 66 |rposes..|. Use of|
|000035d0| 20 74 68 65 73 65 20 73 | 75 62 72 6f 75 74 69 6e | these s|ubroutin|
|000035e0| 65 73 20 69 6e 20 61 20 | 70 72 6f 67 72 61 6d 20 |es in a |program |
|000035f0| 66 6f 72 20 73 61 6c 65 | 20 6f 72 20 66 6f 72 20 |for sale| or for |
|00003600| 63 6f 6d 6d 65 72 63 69 | 61 6c 20 70 75 72 70 6f |commerci|al purpo|
|00003610| 73 65 73 20 69 6e 0d 0a | 20 61 20 70 6c 61 63 65 |ses in..| a place|
|00003620| 20 6f 66 20 62 75 73 69 | 6e 65 73 73 20 72 65 71 | of busi|ness req|
|00003630| 75 69 72 65 73 20 61 20 | 24 32 30 20 66 65 65 20 |uires a |$20 fee |
|00003640| 62 65 20 70 61 69 64 20 | 74 6f 20 74 68 65 20 61 |be paid |to the a|
|00003650| 75 74 68 6f 72 20 61 74 | 20 74 68 65 20 61 64 64 |uthor at| the add|
|00003660| 72 65 73 73 0d 0a 20 61 | 62 6f 76 65 2e 20 20 50 |ress.. a|bove. P|
|00003670| 65 72 73 6f 6e 61 6c 20 | 6e 6f 6e 2d 63 6f 6d 6d |ersonal |non-comm|
|00003680| 65 72 63 69 61 6c 20 75 | 73 65 72 73 20 6d 61 79 |ercial u|sers may|
|00003690| 20 61 6c 73 6f 20 65 6c | 65 63 74 20 74 6f 20 70 | also el|ect to p|
|000036a0| 61 79 20 74 68 65 20 24 | 32 30 20 66 65 65 20 74 |ay the $|20 fee t|
|000036b0| 6f 0d 0a 20 65 6e 63 6f | 75 72 61 67 65 20 66 75 |o.. enco|urage fu|
|000036c0| 72 74 68 65 72 20 64 65 | 76 65 6c 6f 70 6d 65 6e |rther de|velopmen|
|000036d0| 74 20 6f 66 20 74 68 69 | 73 20 61 6e 64 20 73 69 |t of thi|s and si|
|000036e0| 6d 69 6c 61 72 20 70 72 | 6f 67 72 61 6d 73 2e 20 |milar pr|ograms. |
|000036f0| 57 69 74 68 20 70 61 79 | 6d 65 6e 74 20 79 6f 75 |With pay|ment you|
|00003700| 0d 0a 20 77 69 6c 6c 20 | 62 65 20 61 62 6c 65 20 |.. will |be able |
|00003710| 74 6f 20 72 65 63 65 69 | 76 65 20 75 70 64 61 74 |to recei|ve updat|
|00003720| 65 20 6e 6f 74 69 63 65 | 73 2c 20 64 69 73 6b 65 |e notice|s, diske|
|00003730| 74 74 65 73 20 61 6e 64 | 20 70 72 69 6e 74 65 64 |ttes and| printed|
|00003740| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 0d 0a | documen|tation..|
|00003750| 20 6f 66 20 74 68 69 73 | 20 61 6e 64 20 6f 74 68 | of this| and oth|
|00003760| 65 72 20 50 54 4f 4f 4c | 73 20 66 72 6f 6d 20 4f |er PTOOL|s from O|
|00003770| 73 74 72 61 6e 64 65 72 | 20 44 61 74 61 20 53 65 |strander| Data Se|
|00003780| 72 76 69 63 65 73 2e 0d | 0a 0d 0a 0d 0a 20 50 54 |rvices..|..... PT|
|00003790| 4f 4f 4c 2c 20 61 6e 64 | 20 50 54 4f 4f 4c 78 78 |OOL, and| PTOOLxx|
|000037a0| 78 20 61 72 65 20 43 6f | 70 79 72 69 67 68 74 20 |x are Co|pyright |
|000037b0| 54 72 61 64 65 6d 61 72 | 6b 73 20 6f 66 20 4f 73 |Trademar|ks of Os|
|000037c0| 74 72 61 6e 64 65 72 20 | 44 61 74 61 20 53 65 72 |trander |Data Ser|
|000037d0| 76 69 63 65 73 0d 0a 0d | 0a 20 54 75 72 62 6f 20 |vices...|. Turbo |
|000037e0| 50 61 73 63 61 6c 20 69 | 73 20 61 20 43 6f 70 79 |Pascal i|s a Copy|
|000037f0| 72 69 67 68 74 20 6f 66 | 20 42 6f 72 6c 61 6e 64 |right of| Borland|
|00003800| 20 49 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 20 49 | Interna|tional I|
|00003810| 6e 63 2e 0d 0a 0d 0a 56 | 65 72 73 69 6f 6e 20 32 |nc.....V|ersion 2|
|00003820| 2e 30 20 6f 66 20 50 54 | 4f 4f 4c 57 49 4e 20 28 |.0 of PT|OOLWIN (|
|00003830| 61 6b 61 20 50 54 4f 4f | 4c 57 49 32 29 20 73 75 |aka PTOO|LWI2) su|
|00003840| 70 70 6f 72 74 73 20 73 | 74 61 63 6b 20 6f 70 65 |pports s|tack ope|
|00003850| 72 61 74 69 6f 6e 73 20 | 66 6f 72 20 68 6f 6c 64 |rations |for hold|
|00003860| 69 6e 67 0d 0a 73 63 72 | 65 65 6e 20 69 6d 61 67 |ing..scr|een imag|
|00003870| 65 20 64 61 74 61 2e 20 | 45 61 63 68 20 73 63 72 |e data. |Each scr|
|00003880| 65 65 6e 20 6f 70 65 6e | 65 64 20 61 62 73 6f 72 |een open|ed absor|
|00003890| 62 73 20 34 30 30 36 20 | 62 79 74 65 73 20 6f 66 |bs 4006 |bytes of|
|000038a0| 20 48 65 61 70 2f 53 74 | 61 63 6b 20 77 68 69 6c | Heap/St|ack whil|
|000038b0| 65 0d 0a 69 74 20 69 73 | 20 6f 70 65 6e 20 66 6f |e..it is| open fo|
|000038c0| 72 20 74 68 65 20 73 74 | 6f 72 61 67 65 20 6f 66 |r the st|orage of|
|000038d0| 20 74 68 65 20 69 6d 61 | 67 65 20 6f 6e 20 74 68 | the ima|ge on th|
|000038e0| 65 20 73 63 72 65 65 6e | 20 62 65 66 6f 72 65 20 |e screen| before |
|000038f0| 74 68 65 20 6e 65 77 20 | 73 63 72 65 65 6e 0d 0a |the new |screen..|
|00003900| 77 61 73 20 6f 70 65 6e | 65 64 2e 20 54 68 69 73 |was open|ed. This|
|00003910| 20 61 72 65 61 20 69 73 | 20 66 72 65 65 64 20 75 | area is| freed u|
|00003920| 70 20 77 68 65 6e 20 74 | 68 65 20 77 69 6e 64 6f |p when t|he windo|
|00003930| 77 20 69 73 20 63 6c 6f | 73 65 64 2e 20 4e 6f 20 |w is clo|sed. No |
|00003940| 63 68 65 63 6b 73 20 61 | 72 65 0d 0a 6d 61 64 65 |checks a|re..made|
|00003950| 20 77 69 74 68 69 6e 20 | 50 54 4f 4f 4c 57 49 4e | within |PTOOLWIN|
|00003960| 20 74 6f 20 65 6e 73 75 | 72 65 20 74 68 61 74 20 | to ensu|re that |
|00003970| 74 68 65 72 65 20 69 73 | 20 73 75 66 66 69 63 69 |there is| suffici|
|00003980| 65 6e 74 20 73 70 61 63 | 65 20 6f 6e 20 74 68 65 |ent spac|e on the|
|00003990| 0d 0a 48 65 61 70 2f 53 | 74 61 63 6b 20 66 6f 72 |..Heap/S|tack for|
|000039a0| 20 50 54 4f 4f 4c 57 49 | 4e 20 74 6f 20 65 78 65 | PTOOLWI|N to exe|
|000039b0| 63 75 74 65 20 70 72 6f | 70 65 72 6c 79 2e 20 54 |cute pro|perly. T|
|000039c0| 68 65 20 63 61 6c 6c 69 | 6e 67 20 70 72 6f 67 72 |he calli|ng progr|
|000039d0| 61 6d 20 6d 75 73 74 20 | 64 6f 20 74 68 69 73 0d |am must |do this.|
|000039e0| 0a 76 69 61 20 61 20 4d | 61 78 41 76 61 69 6c 20 |.via a M|axAvail |
|000039f0| 63 61 6c 6c 20 73 75 63 | 68 20 61 73 0d 0a 0d 0a |call suc|h as....|
|00003a00| 20 20 20 20 49 66 20 4d | 61 78 41 76 61 69 6c 20 | If M|axAvail |
|00003a10| 3c 20 30 20 6f 72 20 4d | 61 78 41 76 61 69 6c 20 |< 0 or M|axAvail |
|00003a20| 3e 20 34 30 30 36 20 74 | 68 65 6e 20 50 54 57 4f |> 4006 t|hen PTWO|
|00003a30| 70 65 6e 20 28 31 29 0d | 0a 20 20 20 20 20 20 20 |pen (1).|. |
|00003a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003a60| 65 6c 73 65 20 28 28 28 | 28 28 45 52 52 4f 52 20 |else (((|((ERROR |
|00003a70| 52 4f 55 54 49 4e 45 29 | 29 29 29 29 3b 0d 0a 0d |ROUTINE)|))));...|
|00003a80| 0a 56 65 72 73 69 6f 6e | 20 33 2e 30 20 6f 66 20 |.Version| 3.0 of |
|00003a90| 50 54 4f 4f 4c 57 49 4e | 20 28 61 6b 61 20 50 54 |PTOOLWIN| (aka PT|
|00003aa0| 4f 4f 4c 57 49 33 29 20 | 61 75 74 6f 6d 61 74 69 |OOLWI3) |automati|
|00003ab0| 63 61 6c 6c 79 20 64 65 | 74 65 72 6d 69 6e 65 20 |cally de|termine |
|00003ac0| 77 68 65 74 68 65 72 20 | 61 0d 0a 43 6f 6c 6f 72 |whether |a..Color|
|00003ad0| 2f 47 72 61 70 68 69 63 | 73 20 6f 72 20 61 20 4d |/Graphic|s or a M|
|00003ae0| 6f 6e 6f 63 68 72 6f 6d | 65 20 64 69 73 70 6c 61 |onochrom|e displa|
|00003af0| 79 20 63 61 72 64 20 61 | 72 65 20 61 63 74 69 76 |y card a|re activ|
|00003b00| 65 20 61 6e 64 20 73 65 | 74 73 20 74 68 65 20 6f |e and se|ts the o|
|00003b10| 75 74 70 75 74 0d 0a 61 | 63 63 6f 72 64 69 6e 67 |utput..a|ccording|
|00003b20| 6c 79 20 49 46 20 50 54 | 4f 4f 4c 57 49 4e 5f 53 |ly IF PT|OOLWIN_S|
|00003b30| 63 72 65 65 6e 5f 54 79 | 70 65 20 49 53 20 41 4e |creen_Ty|pe IS AN|
|00003b40| 20 27 58 27 20 57 48 45 | 4e 20 50 54 57 53 45 54 | 'X' WHE|N PTWSET|
|00003b50| 20 69 73 20 66 69 72 73 | 74 20 63 61 6c 6c 65 64 | is firs|t called|
|00003b60| 2e 0d 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |...This |variable|
|00003b70| 20 73 74 69 6c 6c 20 68 | 61 73 20 61 6c 6c 20 74 | still h|as all t|
|00003b80| 68 65 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |he funct|ionality|
|00003b90| 20 69 6e 20 56 65 72 73 | 69 6f 6e 20 31 2e 30 20 | in Vers|ion 1.0 |
|00003ba0| 61 6e 64 20 32 2e 30 20 | 2d 20 69 66 0d 0a 50 54 |and 2.0 |- if..PT|
|00003bb0| 4f 4f 4c 57 49 4e 5f 53 | 63 72 65 65 6e 5f 54 79 |OOLWIN_S|creen_Ty|
|00003bc0| 70 65 20 69 73 20 73 65 | 74 20 74 6f 20 61 20 27 |pe is se|t to a '|
|00003bd0| 43 27 20 6f 72 20 27 4d | 27 20 62 79 20 74 68 65 |C' or 'M|' by the|
|00003be0| 20 63 61 6c 6c 69 6e 67 | 20 70 72 6f 67 72 61 6d | calling| program|
|00003bf0| 2c 20 69 74 20 77 69 6c | 6c 0d 0a 74 61 6b 65 20 |, it wil|l..take |
|00003c00| 70 72 65 63 65 64 65 6e | 63 65 20 61 6e 64 20 74 |preceden|ce and t|
|00003c10| 68 65 20 73 77 69 74 63 | 68 69 6e 67 20 6f 66 20 |he switc|hing of |
|00003c20| 73 63 72 65 65 6e 73 20 | 63 61 6e 20 73 74 69 6c |screens |can stil|
|00003c30| 6c 20 62 65 20 64 6f 6e | 65 20 74 68 69 73 20 77 |l be don|e this w|
|00003c40| 61 79 2e 0d 0a 0d 0a 20 | 20 20 20 20 56 65 72 73 |ay..... | Vers|
|00003c50| 69 6f 6e 20 33 2e 30 20 | 77 61 73 20 64 65 76 65 |ion 3.0 |was deve|
|00003c60| 6c 6f 70 65 64 20 62 79 | 20 4c 45 57 20 50 41 50 |loped by| LEW PAP|
|00003c70| 45 52 20 6f 66 20 53 74 | 2e 20 50 61 75 6c 20 4d |ER of St|. Paul M|
|00003c80| 4e 20 75 73 69 6e 67 20 | 74 68 65 0d 0a 20 20 20 |N using |the.. |
|00003c90| 20 20 63 61 72 64 20 72 | 6f 75 74 69 6e 65 20 22 | card r|outine "|
|00003ca0| 57 49 4e 44 4f 57 2e 50 | 41 53 22 20 64 65 76 65 |WINDOW.P|AS" deve|
|00003cb0| 6c 6f 70 65 64 20 62 79 | 20 42 45 4c 41 20 4c 55 |loped by| BELA LU|
|00003cc0| 42 4b 49 4e 20 6f 66 20 | 42 6f 72 6c 61 6e 64 2e |BKIN of |Borland.|
|00003cd0| 0d 0a 0d 0a 20 20 20 20 | 20 54 68 61 6e 6b 73 20 |.... | Thanks |
|00003ce0| 74 6f 20 62 6f 74 68 20 | 6f 66 20 74 68 65 73 65 |to both |of these|
|00003cf0| 20 70 65 6f 70 6c 65 20 | 62 79 20 74 68 65 20 6f | people |by the o|
|00003d00| 72 69 67 69 6e 61 6c 20 | 61 75 74 68 6f 72 2e 20 |riginal |author. |
|00003d10| 41 20 67 6f 6f 64 0d 0a | 20 20 20 20 20 65 78 61 |A good..| exa|
|00003d20| 6d 70 6c 65 20 6f 66 20 | 55 73 65 72 20 53 75 70 |mple of |User Sup|
|00003d30| 70 6f 72 74 65 64 20 53 | 6f 66 74 77 61 72 65 20 |ported S|oftware |
|00003d40| 61 74 20 77 6f 72 6b 2e | 0d 0a 20 20 20 20 20 20 |at work.|.. |
|00003d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d70| 20 20 20 20 20 20 20 20 | 20 20 52 44 4f 2e 0d 0a | | RDO...|
|00003d80| 0d 0a 0d 0a 0d 0a 50 72 | 6f 63 65 64 75 72 65 73 |......Pr|ocedures|
|00003d90| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 20 50 54 | availab|le in PT|
|00003da0| 4f 4f 4c 57 49 4e 2e 49 | 4e 43 20 61 72 65 3a 0d |OOLWIN.I|NC are:.|
|00003db0| 0a 0d 0a 0d 0a 20 50 54 | 57 53 65 74 20 20 28 53 |..... PT|WSet (S|
|00003dc0| 63 72 65 65 6e 23 2c 20 | 58 31 2c 20 59 31 2c 20 |creen#, |X1, Y1, |
|00003dd0| 58 32 2c 20 59 32 2c 20 | 20 2d 20 53 65 74 73 20 |X2, Y2, | - Sets |
|00003de0| 75 70 20 77 69 6e 64 6f | 77 20 63 6f 6f 72 64 69 |up windo|w coordi|
|00003df0| 6e 61 74 65 73 20 73 6f | 20 74 68 61 74 20 6c 61 |nates so| that la|
|00003e00| 74 65 72 0d 0a 20 20 20 | 20 20 20 20 20 20 42 6f |ter.. | Bo|
|00003e10| 72 64 65 72 53 77 69 74 | 63 68 2c 20 20 20 20 20 |rderSwit|ch, |
|00003e20| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 66 65 72 | | refer|
|00003e30| 65 6e 63 65 73 20 63 61 | 6e 20 62 65 20 6d 61 64 |ences ca|n be mad|
|00003e40| 65 20 62 79 20 4d 6e 65 | 6d 6f 6e 69 63 20 6f 6e |e by Mne|monic on|
|00003e50| 6c 79 2e 0d 0a 20 20 20 | 20 20 20 20 20 20 42 61 |ly... | Ba|
|00003e60| 63 6b 67 72 6f 75 6e 64 | 43 6f 6c 6f 72 2c 20 20 |ckground|Color, |
|00003e70| 20 20 20 20 20 20 20 20 | 20 20 20 50 54 57 53 65 | | PTWSe|
|00003e80| 74 20 6d 75 73 74 20 62 | 65 20 64 6f 6e 65 20 6f |t must b|e done o|
|00003e90| 6e 63 65 20 66 6f 72 20 | 65 61 63 68 20 77 69 6e |nce for |each win|
|00003ea0| 64 6f 77 0d 0a 20 20 20 | 20 20 20 20 20 20 46 6f |dow.. | Fo|
|00003eb0| 72 65 67 72 6f 75 6e 64 | 43 6f 6c 6f 72 29 20 20 |reground|Color) |
|00003ec0| 20 20 20 20 20 20 20 20 | 20 20 20 62 65 66 6f 72 | | befor|
|00003ed0| 65 20 69 74 20 69 73 20 | 4f 70 65 6e 65 64 2e 0d |e it is |Opened..|
|00003ee0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f00| 20 20 20 20 20 20 20 54 | 68 65 20 53 63 72 65 65 | T|he Scree|
|00003f10| 6e 23 20 69 73 20 61 20 | 6e 75 6d 62 65 72 20 62 |n# is a |number b|
|00003f20| 65 74 77 65 65 6e 20 31 | 20 61 6e 64 0d 0a 20 20 |etween 1| and.. |
|00003f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f50| 20 20 20 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 | the |maximum |
|00003f60| 6e 75 6d 62 65 72 20 6f | 66 20 77 69 6e 64 6f 77 |number o|f window|
|00003f70| 73 20 61 6c 6c 6f 77 61 | 62 6c 65 0d 0a 20 20 20 |s allowa|ble.. |
|00003f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003fa0| 20 20 20 73 65 74 20 69 | 6e 20 74 68 65 20 43 6f | set i|n the Co|
|00003fb0| 6e 73 74 61 6e 74 73 20 | 42 6c 6f 63 6b 20 62 65 |nstants |Block be|
|00003fc0| 6c 6f 77 2e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |low... | |
|00003fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 68 65 20 | | The |
|00003ff0| 58 20 61 6e 64 20 59 20 | 43 6f 6f 72 64 69 6e 61 |X and Y |Coordina|
|00004000| 74 65 73 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |tes are |the same|
|00004010| 20 61 73 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | as.. | |
|00004020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004030| 20 20 20 20 20 20 20 20 | 20 20 20 66 6f 72 20 74 | | for t|
|00004040| 68 65 20 54 75 72 62 6f | 20 50 61 73 63 61 6c 20 |he Turbo| Pascal |
|00004050| 57 69 6e 64 6f 77 20 70 | 72 6f 63 65 64 75 72 65 |Window p|rocedure|
|00004060| 2e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00004070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004080| 20 20 20 20 20 20 20 20 | 20 41 20 62 6f 72 64 65 | | A borde|
|00004090| 72 20 6d 61 79 20 62 65 | 20 70 6c 61 63 65 64 20 |r may be| placed |
|000040a0| 61 72 6f 75 6e 64 20 74 | 68 65 20 77 69 6e 64 6f |around t|he windo|
|000040b0| 77 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |w.. | |
|000040c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040d0| 20 20 20 20 20 20 20 20 | 20 61 6e 64 20 74 68 65 | | and the|
|000040e0| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 77 69 6e | size of| the win|
|000040f0| 64 6f 77 20 77 69 6c 6c | 20 62 65 0d 0a 20 20 20 |dow will| be.. |
|00004100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004120| 20 20 20 64 65 63 72 65 | 61 73 65 64 20 74 6f 20 | decre|ased to |
|00004130| 66 69 74 20 69 6e 73 69 | 64 65 20 74 68 65 20 62 |fit insi|de the b|
|00004140| 6f 72 64 65 72 2e 20 54 | 68 65 0d 0a 20 20 20 20 |order. T|he.. |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004170| 20 20 42 6f 72 64 65 72 | 53 77 69 74 63 68 20 66 | Border|Switch f|
|00004180| 75 6e 63 74 69 6f 6e 73 | 20 61 72 65 3a 0d 0a 20 |unctions| are:.. |
|00004190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041b0| 20 20 20 20 20 20 20 20 | 30 20 2d 20 4e 6f 20 62 | |0 - No b|
|000041c0| 6f 72 64 65 72 0d 0a 20 | 20 20 20 20 20 20 20 20 |order.. | |
|000041d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041f0| 31 20 2d 20 53 69 6e 67 | 6c 65 20 6c 69 6e 65 20 |1 - Sing|le line |
|00004200| 62 6c 6f 63 6b 20 67 72 | 61 70 68 69 63 73 20 62 |block gr|aphics b|
|00004210| 6f 72 64 65 72 0d 0a 20 | 20 20 20 20 20 20 20 20 |order.. | |
|00004220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004240| 32 20 2d 20 44 6f 75 62 | 6c 65 20 6c 69 6e 65 20 |2 - Doub|le line |
|00004250| 62 6c 6f 63 6b 20 67 72 | 61 70 68 69 63 73 20 62 |block gr|aphics b|
|00004260| 6f 72 64 65 72 0d 0a 20 | 20 20 20 20 20 20 20 20 |order.. | |
|00004270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00004290| 31 20 2d 20 53 69 6e 67 | 6c 65 20 6c 69 6e 65 20 |1 - Sing|le line |
|000042a0| 52 65 76 65 72 73 65 64 | 20 63 6f 6c 6f 72 20 62 |Reversed| color b|
|000042b0| 6f 72 64 65 72 0d 0a 20 | 20 20 20 20 20 20 20 20 |order.. | |
|000042c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|000042e0| 32 20 2d 20 44 6f 75 62 | 6c 65 20 6c 69 6e 65 20 |2 - Doub|le line |
|000042f0| 52 65 76 65 72 73 65 64 | 20 63 6f 6c 6f 72 20 62 |Reversed| color b|
|00004300| 6f 72 64 65 72 0d 0a 20 | 20 20 20 20 20 20 20 20 |order.. | |
|00004310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 54 68 65 | | The|
|00004330| 20 42 61 63 6b 67 72 6f | 75 6e 64 43 6f 6c 6f 72 | Backgro|undColor|
|00004340| 20 61 6e 64 20 46 6f 72 | 65 67 72 6f 75 6e 64 43 | and For|egroundC|
|00004350| 6f 6c 6f 72 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |olor.. | |
|00004360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 61 72 61 | | para|
|00004380| 6d 65 74 65 72 73 20 61 | 72 65 20 74 68 65 20 73 |meters a|re the s|
|00004390| 61 6d 65 20 61 73 20 66 | 6f 72 20 74 68 65 20 54 |ame as f|or the T|
|000043a0| 75 72 62 6f 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |urbo.. | |
|000043b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 61 73 63 | | Pasc|
|000043d0| 61 6c 20 54 65 78 74 43 | 6f 6c 6f 72 20 61 6e 64 |al TextC|olor and|
|000043e0| 20 54 65 78 74 42 61 63 | 6b 67 72 6f 75 6e 64 0d | TextBac|kground.|
|000043f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004410| 20 20 20 20 20 20 20 70 | 72 6f 63 65 64 75 72 65 | p|rocedure|
|00004420| 73 2e 0d 0a 0d 0a 20 50 | 54 57 4f 70 65 6e 20 28 |s..... P|TWOpen (|
|00004430| 53 63 72 65 65 6e 23 29 | 20 20 20 20 20 20 20 20 |Screen#)| |
|00004440| 20 20 20 20 20 20 20 20 | 20 20 2d 20 41 63 74 69 | | - Acti|
|00004450| 76 61 74 65 73 20 61 20 | 77 69 6e 64 6f 77 20 28 |vates a |window (|
|00004460| 70 72 65 76 69 6f 75 73 | 6c 79 20 73 65 74 20 62 |previous|ly set b|
|00004470| 79 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y.. | |
|00004480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004490| 20 20 20 20 20 20 20 20 | 20 50 54 57 53 65 74 29 | | PTWSet)|
|000044a0| 20 61 6e 64 20 73 61 76 | 65 73 20 74 68 65 20 73 | and sav|es the s|
|000044b0| 63 72 65 65 6e 20 63 6f | 76 65 72 65 64 20 62 79 |creen co|vered by|
|000044c0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000044d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044e0| 20 20 20 20 20 20 20 20 | 74 68 65 20 77 69 6e 64 | |the wind|
|000044f0| 6f 77 2e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ow... | |
|00004500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004510| 20 20 20 20 20 20 20 20 | 20 20 20 49 6e 20 74 68 | | In th|
|00004520| 65 20 43 6f 6e 73 74 61 | 6e 74 73 20 42 6c 6f 63 |e Consta|nts Bloc|
|00004530| 6b 20 66 6f 6c 6c 6f 77 | 69 6e 67 2c 20 74 68 65 |k follow|ing, the|
|00004540| 72 65 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |re.. | |
|00004550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004560| 20 20 20 20 20 20 20 20 | 20 20 69 73 20 61 20 70 | | is a p|
|00004570| 61 72 61 6d 65 74 65 72 | 20 74 68 61 74 20 73 65 |arameter| that se|
|00004580| 74 73 20 74 68 65 20 6d | 61 78 69 6d 75 6d 0d 0a |ts the m|aximum..|
|00004590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045b0| 20 20 20 20 20 20 6e 75 | 6d 62 65 72 20 6f 66 20 | nu|mber of |
|000045c0| 77 69 6e 64 6f 77 73 20 | 74 68 61 74 20 6d 61 79 |windows |that may|
|000045d0| 20 62 65 20 6f 70 65 6e | 20 61 74 0d 0a 20 20 20 | be open| at.. |
|000045e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004600| 20 20 20 61 6e 79 20 6f | 6e 65 20 74 69 6d 65 2e | any o|ne time.|
|00004610| 0d 0a 0d 0a 20 50 54 57 | 43 6c 6f 73 65 20 20 20 |.... PTW|Close |
|00004620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004630| 20 20 20 20 20 20 20 20 | 2d 20 44 65 2d 61 63 74 | |- De-act|
|00004640| 69 76 61 74 65 73 20 74 | 68 65 20 6f 70 65 6e 20 |ivates t|he open |
|00004650| 77 69 6e 64 6f 77 2c 20 | 61 63 74 69 76 61 74 65 |window, |activate|
|00004660| 73 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.. | |
|00004670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004680| 20 20 20 20 20 20 20 20 | 20 74 68 65 20 70 72 65 | | the pre|
|00004690| 76 69 6f 75 73 20 77 69 | 6e 64 6f 77 20 61 6e 64 |vious wi|ndow and|
|000046a0| 20 72 65 73 74 6f 72 65 | 73 20 74 68 65 0d 0a 20 | restore|s the.. |
|000046b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046d0| 20 20 20 20 20 73 63 72 | 65 65 6e 20 63 6f 76 65 | scr|een cove|
|000046e0| 72 65 64 20 62 79 20 74 | 68 65 20 63 6c 6f 73 65 |red by t|he close|
|000046f0| 64 20 77 69 6e 64 6f 77 | 2e 0d 0a 20 20 20 20 20 |d window|... |
|00004700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004720| 20 4e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 50 | Note th|at the P|
|00004730| 54 57 4f 70 65 6e 20 26 | 20 50 54 57 43 6c 6f 73 |TWOpen &| PTWClos|
|00004740| 65 20 68 61 76 65 20 61 | 0d 0a 20 20 20 20 20 20 |e have a|.. |
|00004750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004770| 22 50 75 73 68 2f 50 6f | 70 22 20 74 79 70 65 20 |"Push/Po|p" type |
|00004780| 6f 66 20 61 63 74 69 6f | 6e 2e 0d 0a 0d 0a 0d 0a |of actio|n.......|
|00004790| 0d 0a 43 6f 6e 73 74 61 | 6e 74 73 20 69 6e 20 74 |..Consta|nts in t|
|000047a0| 68 65 20 50 54 4f 4f 4c | 57 49 4e 2e 49 4e 43 20 |he PTOOL|WIN.INC |
|000047b0| 66 69 6c 65 20 74 68 61 | 74 20 6d 75 73 74 20 62 |file tha|t must b|
|000047c0| 65 20 73 65 74 20 62 79 | 20 74 68 65 20 70 72 6f |e set by| the pro|
|000047d0| 67 72 61 6d 6d 65 72 20 | 62 65 66 6f 72 65 0d 0a |grammer |before..|
|000047e0| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 61 72 65 3a |compilat|ion are:|
|000047f0| 0d 0a 0d 0a 0d 0a 20 20 | 20 50 54 4f 4f 4c 57 49 |...... | PTOOLWI|
|00004800| 4e 5f 4e 75 6d 62 65 72 | 5f 6f 66 5f 57 69 6e 64 |N_Number|_of_Wind|
|00004810| 6f 77 73 20 3d 20 6e 6e | 3b 0d 0a 0d 0a 20 20 20 |ows = nn|;.... |
|00004820| 20 20 20 20 20 54 68 69 | 73 20 64 65 74 65 72 6d | Thi|s determ|
|00004830| 69 6e 65 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |ines the| number |
|00004840| 6f 66 20 77 69 6e 64 6f | 77 73 20 74 68 61 74 20 |of windo|ws that |
|00004850| 6d 61 79 20 62 65 20 73 | 65 74 20 77 69 74 68 20 |may be s|et with |
|00004860| 74 68 65 0d 0a 20 20 20 | 20 20 20 20 20 50 54 57 |the.. | PTW|
|00004870| 53 65 74 20 70 72 6f 63 | 65 64 75 72 65 2e 20 54 |Set proc|edure. T|
|00004880| 68 69 73 20 69 73 20 65 | 61 73 69 6c 79 20 64 65 |his is e|asily de|
|00004890| 74 65 72 6d 69 6e 65 64 | 20 77 68 65 6e 20 74 68 |termined| when th|
|000048a0| 65 20 63 61 6c 6c 69 6e | 67 0d 0a 20 20 20 20 20 |e callin|g.. |
|000048b0| 20 20 20 70 72 6f 67 72 | 61 6d 20 69 73 20 64 65 | progr|am is de|
|000048c0| 73 69 67 6e 65 64 2e 0d | 0a 0d 0a 20 20 20 20 20 |signed..|... |
|000048d0| 20 20 20 49 74 20 61 6c | 73 6f 20 64 65 74 65 72 | It al|so deter|
|000048e0| 6d 69 6e 65 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |mines th|e number|
|000048f0| 20 6f 66 20 77 69 6e 64 | 6f 77 73 20 74 68 61 74 | of wind|ows that|
|00004900| 20 6d 61 79 20 62 65 20 | 6f 70 65 6e 20 61 74 20 | may be |open at |
|00004910| 61 6e 79 20 6f 6e 65 0d | 0a 20 20 20 20 20 20 20 |any one.|. |
|00004920| 20 74 69 6d 65 2e 0d 0a | 0d 0a 20 20 20 20 20 20 | time...|.. |
|00004930| 20 20 55 73 65 20 74 68 | 65 20 6c 61 72 67 65 73 | Use th|e larges|
|00004940| 74 20 6f 66 20 74 68 65 | 20 74 77 6f 20 66 69 67 |t of the| two fig|
|00004950| 75 72 65 73 20 74 68 61 | 74 20 79 6f 75 20 65 78 |ures tha|t you ex|
|00004960| 70 65 63 74 2e 0d 0a 0d | 0a 54 68 65 72 65 20 69 |pect....|.There i|
|00004970| 73 20 61 20 63 6f 6e 73 | 74 61 6e 74 20 74 68 61 |s a cons|tant tha|
|00004980| 74 20 6d 75 73 74 20 62 | 65 20 73 65 74 20 62 65 |t must b|e set be|
|00004990| 66 6f 72 65 20 74 68 65 | 20 50 54 57 4f 70 65 6e |fore the| PTWOpen|
|000049a0| 20 6f 72 20 50 54 57 43 | 6c 6f 73 65 20 70 72 6f | or PTWC|lose pro|
|000049b0| 63 65 64 75 72 65 73 0d | 0a 61 72 65 20 63 61 6c |cedures.|.are cal|
|000049c0| 6c 65 64 3a 0d 0a 0d 0a | 0d 0a 20 20 20 50 54 4f |led:....|.. PTO|
|000049d0| 4f 4c 57 49 4e 5f 53 63 | 72 65 65 6e 5f 54 79 70 |OLWIN_Sc|reen_Typ|
|000049e0| 65 20 3a 20 43 68 61 72 | 20 3d 20 27 43 27 3b 0d |e : Char| = 'C';.|
|000049f0| 0a 0d 0a 20 20 20 20 20 | 20 20 20 49 66 20 74 68 |... | If th|
|00004a00| 65 20 66 69 6e 61 6c 20 | 70 72 6f 67 72 61 6d 20 |e final |program |
|00004a10| 69 73 20 67 6f 69 6e 67 | 20 74 6f 20 62 65 20 72 |is going| to be r|
|00004a20| 75 6e 20 6f 6e 20 61 6e | 20 49 42 4d 20 50 43 20 |un on an| IBM PC |
|00004a30| 77 69 74 68 20 61 20 4d | 6f 6e 6f 63 68 72 6f 6d |with a M|onochrom|
|00004a40| 65 0d 0a 20 20 20 20 20 | 20 20 20 76 69 64 65 6f |e.. | video|
|00004a50| 20 63 61 72 64 20 74 68 | 65 6e 20 74 68 69 73 20 | card th|en this |
|00004a60| 70 61 72 61 6d 65 74 65 | 72 20 6d 75 73 74 20 62 |paramete|r must b|
|00004a70| 65 20 73 65 74 20 74 6f | 20 27 4d 27 2e 20 49 66 |e set to| 'M'. If|
|00004a80| 20 74 68 65 20 50 43 20 | 68 61 73 0d 0a 20 20 20 | the PC |has.. |
|00004a90| 20 20 20 20 20 61 20 43 | 6f 6c 6f 72 2f 47 72 61 | a C|olor/Gra|
|00004aa0| 70 68 69 63 73 20 63 61 | 72 64 20 74 68 65 6e 20 |phics ca|rd then |
|00004ab0| 69 74 20 6d 75 73 74 20 | 62 65 20 73 65 74 20 74 |it must |be set t|
|00004ac0| 6f 20 27 43 27 2e 20 54 | 68 69 73 20 73 65 74 74 |o 'C'. T|his sett|
|00004ad0| 69 6e 67 20 6d 61 79 20 | 62 65 0d 0a 20 20 20 20 |ing may |be.. |
|00004ae0| 20 20 20 20 64 6f 6e 65 | 20 61 74 20 72 75 6e 20 | done| at run |
|00004af0| 74 69 6d 65 20 72 61 74 | 68 65 72 20 74 68 61 6e |time rat|her than|
|00004b00| 20 61 74 20 63 6f 6d 70 | 69 6c 65 20 74 69 6d 65 | at comp|ile time|
|00004b10| 20 73 69 6e 63 65 20 74 | 68 65 20 64 69 66 66 65 | since t|he diffe|
|00004b20| 72 65 6e 63 65 20 74 68 | 61 74 0d 0a 20 20 20 20 |rence th|at.. |
|00004b30| 20 20 20 20 74 68 69 73 | 20 70 61 72 61 6d 65 74 | this| paramet|
|00004b40| 65 72 20 6d 61 6b 65 73 | 20 69 73 20 77 68 65 74 |er makes| is whet|
|00004b50| 68 65 72 20 74 6f 20 73 | 74 6f 72 65 20 61 6e 64 |her to s|tore and|
|00004b60| 20 72 65 63 61 6c 6c 20 | 74 68 65 20 73 63 72 65 | recall |the scre|
|00004b70| 65 6e 20 64 61 74 61 20 | 61 74 0d 0a 20 20 20 20 |en data |at.. |
|00004b80| 20 20 20 20 24 42 38 30 | 30 30 20 28 43 6f 6c 6f | $B80|00 (Colo|
|00004b90| 72 20 47 72 61 70 68 69 | 63 73 29 20 6f 72 20 24 |r Graphi|cs) or $|
|00004ba0| 42 30 30 30 30 20 28 4d | 6f 6e 6f 63 68 72 6f 6d |B0000 (M|onochrom|
|00004bb0| 65 29 20 76 69 61 20 74 | 68 65 20 61 62 73 6f 6c |e) via t|he absol|
|00004bc0| 75 74 65 0d 0a 20 20 20 | 20 20 20 20 20 76 61 72 |ute.. | var|
|00004bd0| 69 61 62 6c 65 73 20 3a | 0d 0a 20 20 20 20 20 20 |iables :|.. |
|00004be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 | | P|
|00004bf0| 54 4f 4f 4c 57 49 4e 5f | 43 5f 53 63 72 65 65 6e |TOOLWIN_|C_Screen|
|00004c00| 20 20 20 3a 20 43 68 61 | 72 20 61 62 73 6f 6c 75 | : Cha|r absolu|
|00004c10| 74 65 20 24 42 38 30 30 | 3a 24 30 30 30 30 3b 0d |te $B800|:$0000;.|
|00004c20| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004c30| 20 20 20 20 20 20 50 54 | 4f 4f 4c 57 49 4e 5f 4d | PT|OOLWIN_M|
|00004c40| 5f 53 63 72 65 65 6e 20 | 20 20 3a 20 43 68 61 72 |_Screen | : Char|
|00004c50| 20 61 62 73 6f 6c 75 74 | 65 20 24 42 30 30 30 3a | absolut|e $B000:|
|00004c60| 24 30 30 30 30 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |$0000;..|.. |
|00004c70| 20 20 54 68 69 73 20 6d | 61 79 20 62 65 20 66 6f | This m|ay be fo|
|00004c80| 75 6e 64 20 69 6e 20 74 | 68 65 20 63 61 6c 6c 69 |und in t|he calli|
|00004c90| 6e 67 20 70 72 6f 67 72 | 61 6d 20 62 79 20 75 73 |ng progr|am by us|
|00004ca0| 69 6e 67 20 65 69 74 68 | 65 72 20 74 68 65 0d 0a |ing eith|er the..|
|00004cb0| 20 20 20 20 20 20 20 20 | 50 54 45 4d 6f 6e 6f 41 | |PTEMonoA|
|00004cc0| 74 74 61 63 68 65 64 20 | 6f 72 20 50 54 45 43 6f |ttached |or PTECo|
|00004cd0| 6c 6f 72 41 74 74 61 63 | 68 65 64 20 66 75 6e 63 |lorAttac|hed func|
|00004ce0| 74 69 6f 6e 73 20 66 6f | 75 6e 64 20 69 6e 20 74 |tions fo|und in t|
|00004cf0| 68 65 20 50 54 4f 4f 4c | 45 4e 56 0d 0a 20 20 20 |he PTOOL|ENV.. |
|00004d00| 20 20 20 20 20 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 | Env|ironment|
|00004d10| 20 63 6f 6e 74 72 6f 6c | 2e 0d 0a 0d 0a 0d 0a 0d | control|........|
|00004d20| 0a 20 4e 6f 77 20 67 6f | 20 6f 75 74 20 61 6e 64 |. Now go| out and|
|00004d30| 20 74 72 79 20 50 54 4f | 4f 4c 57 49 4e 20 61 6e | try PTO|OLWIN an|
|00004d40| 64 20 62 79 20 61 6c 6c | 20 6d 65 61 6e 73 2c 20 |d by all| means, |
|00004d50| 6c 6f 6f 6b 20 61 74 20 | 74 68 65 20 63 6f 64 65 |look at |the code|
|00004d60| 20 6f 66 20 62 6f 74 68 | 0d 0a 20 50 54 4f 4f 4c | of both|.. PTOOL|
|00004d70| 57 49 4e 2e 50 41 53 20 | 61 6e 64 20 50 54 4f 4f |WIN.PAS |and PTOO|
|00004d80| 4c 57 49 4e 2e 49 4e 43 | 20 74 6f 20 63 6f 6d 70 |LWIN.INC| to comp|
|00004d90| 6c 65 74 65 6c 79 20 75 | 6e 64 65 72 73 74 61 6e |letely u|nderstan|
|00004da0| 64 20 68 6f 77 20 74 6f | 20 69 6e 63 6f 72 70 6f |d how to| incorpo|
|00004db0| 72 61 74 65 0d 0a 20 74 | 68 65 20 4f 73 74 72 61 |rate.. t|he Ostra|
|00004dc0| 6e 64 65 72 20 44 61 74 | 61 20 53 65 72 76 69 63 |nder Dat|a Servic|
|00004dd0| 65 73 20 70 72 6f 64 75 | 63 74 20 69 6e 74 6f 20 |es produ|ct into |
|00004de0| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 73 2e 0d 0a |your pro|grams...|
|00004df0| 0d 0a 20 57 72 69 74 65 | 20 74 6f 20 66 69 6e 64 |.. Write| to find|
|00004e00| 20 6f 75 74 20 61 62 6f | 75 74 20 6f 74 68 65 72 | out abo|ut other|
|00004e10| 20 4f 44 53 20 73 6f 66 | 74 77 61 72 65 20 61 76 | ODS sof|tware av|
|00004e20| 61 69 6c 61 62 6c 65 20 | 74 68 61 74 20 6d 69 67 |ailable |that mig|
|00004e30| 68 74 20 6e 6f 74 20 62 | 65 0d 0a 20 6f 6e 20 74 |ht not b|e.. on t|
|00004e40| 68 69 73 20 62 75 6c 6c | 65 74 69 6e 20 62 6f 61 |his bull|etin boa|
|00004e50| 72 64 2e 0d 0a 0d 0a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |rd......|........|
|00004e60| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
|00004e70| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
|00004e80| 50 72 6f 67 72 61 6d 20 | 50 54 4f 4f 4c 57 49 33 |Program |PTOOLWI3|
|00004e90| 3b 20 20 7b 43 6f 70 79 | 72 69 67 68 74 20 20 52 |; {Copy|right R|
|00004ea0| 20 44 20 4f 73 74 72 61 | 6e 64 65 72 0d 0a 20 20 | D Ostra|nder.. |
|00004eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 73 74 | | Ost|
|00004ed0| 72 61 6e 64 65 72 20 44 | 61 74 61 20 53 65 72 76 |rander D|ata Serv|
|00004ee0| 69 63 65 73 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ices.. | |
|00004ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f00| 20 20 20 20 20 35 34 33 | 37 20 48 6f 6e 65 79 20 | 543|7 Honey |
|00004f10| 4d 61 6e 6f 72 20 44 72 | 0d 0a 20 20 20 20 20 20 |Manor Dr|.. |
|00004f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f30| 20 20 20 20 20 20 20 20 | 20 49 6e 64 69 61 6e 61 | | Indiana|
|00004f40| 70 6f 6c 69 73 20 20 49 | 4e 20 20 34 36 32 34 31 |polis I|N 46241|
|00004f50| 0d 0a 0d 0a 20 20 20 20 | 20 54 68 69 73 20 69 73 |.... | This is|
|00004f60| 20 61 20 64 65 6d 6f 6e | 73 74 72 61 74 69 6f 6e | a demon|stration|
|00004f70| 20 70 72 6f 67 72 61 6d | 20 66 6f 72 20 74 68 65 | program| for the|
|00004f80| 20 54 75 72 62 6f 20 50 | 61 73 63 61 6c 20 73 75 | Turbo P|ascal su|
|00004f90| 62 72 6f 75 74 69 6e 65 | 20 50 54 4f 4f 4c 57 49 |broutine| PTOOLWI|
|00004fa0| 4e 0d 0a 20 20 20 20 20 | 66 6f 72 20 77 69 6e 64 |N.. |for wind|
|00004fb0| 6f 77 20 6d 61 6e 69 70 | 75 6c 61 74 69 6f 6e 73 |ow manip|ulations|
|00004fc0| 2e 20 41 64 64 72 65 73 | 73 20 61 6e 79 20 71 75 |. Addres|s any qu|
|00004fd0| 65 73 74 69 6f 6e 73 20 | 74 6f 20 74 68 65 20 61 |estions |to the a|
|00004fe0| 75 74 68 6f 72 20 61 74 | 20 74 68 65 0d 0a 20 20 |uthor at| the.. |
|00004ff0| 20 20 20 61 62 6f 76 65 | 20 61 64 64 72 65 73 73 | above| address|
|00005000| 2e 0d 0a 0d 0a 20 20 20 | 20 20 54 68 69 73 20 64 |..... | This d|
|00005010| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 56 65 72 73 |emonstra|tes Vers|
|00005020| 69 6f 6e 20 33 2e 30 20 | 6f 66 20 50 54 4f 4f 4c |ion 3.0 |of PTOOL|
|00005030| 57 49 4e 2e 49 4e 43 20 | 61 6b 61 20 50 54 4f 4f |WIN.INC |aka PTOO|
|00005040| 4c 57 49 33 2e 49 4e 43 | 20 20 20 20 20 20 20 20 |LWI3.INC| |
|00005050| 20 7d 0d 0a 0d 0a 0d 0a | 56 41 52 0d 0a 0d 0a 20 | }......|VAR.... |
|00005060| 20 20 53 63 72 65 65 6e | 54 79 70 65 2c 20 41 6e | Screen|Type, An|
|00005070| 73 20 3a 20 43 68 61 72 | 3b 0d 0a 0d 0a 7b 20 43 |s : Char|;....{ C|
|00005080| 6f 6e 73 74 61 6e 74 20 | 56 61 6c 75 65 73 20 28 |onstant |Values (|
|00005090| 50 61 72 61 6d 65 74 65 | 72 73 29 20 54 68 61 74 |Paramete|rs) That|
|000050a0| 20 6d 75 73 74 20 62 65 | 20 69 6e 63 6c 75 64 65 | must be| include|
|000050b0| 64 20 69 6e 20 79 6f 75 | 72 20 73 6f 75 72 63 65 |d in you|r source|
|000050c0| 20 70 72 6f 67 72 61 6d | 20 7d 0d 0a 0d 0a 43 4f | program| }....CO|
|000050d0| 4e 53 54 0d 0a 0d 0a 20 | 20 20 50 54 4f 4f 4c 57 |NST.... | PTOOLW|
|000050e0| 49 4e 5f 4e 75 6d 62 65 | 72 5f 6f 66 5f 57 69 6e |IN_Numbe|r_of_Win|
|000050f0| 64 6f 77 73 20 3d 20 31 | 30 3b 20 20 20 20 7b 20 |dows = 1|0; { |
|00005100| 54 68 69 73 20 64 65 74 | 65 72 6d 69 6e 65 73 20 |This det|ermines |
|00005110| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 20 20 |the numb|er of |
|00005120| 20 20 20 7d 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | }.. | |
|00005130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 20 77 | | { w|
|00005150| 69 6e 64 6f 77 73 20 74 | 68 61 74 20 6d 61 79 20 |indows t|hat may |
|00005160| 62 65 20 73 65 74 20 77 | 69 74 68 20 74 68 65 20 |be set w|ith the |
|00005170| 20 20 7d 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | }.. | |
|00005180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 20 50 54 | | { PT|
|000051a0| 57 53 65 74 20 70 72 6f | 63 65 64 75 72 65 2e 20 |WSet pro|cedure. |
|000051b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051c0| 20 7d 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | }.. | |
|000051d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051e0| 20 20 20 20 20 20 20 20 | 20 20 20 7b 20 49 74 20 | | { It |
|000051f0| 61 6c 73 6f 20 64 65 74 | 65 72 6d 69 6e 65 73 20 |also det|ermines |
|00005200| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 20 20 |the numb|er of |
|00005210| 7d 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}.. | |
|00005220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005230| 20 20 20 20 20 20 20 20 | 20 20 7b 20 77 69 6e 64 | | { wind|
|00005240| 6f 77 73 20 74 68 61 74 | 20 6d 61 79 20 62 65 20 |ows that| may be |
|00005250| 6f 70 65 6e 20 61 74 20 | 61 6e 79 20 20 20 20 7d |open at |any }|
|00005260| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005280| 20 20 20 20 20 20 20 20 | 20 7b 20 6f 6e 65 20 74 | | { one t|
|00005290| 69 6d 65 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |ime. | |
|000052a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0d | | }.|
|000052b0| 0a 0d 0a 7b 24 49 20 50 | 54 4f 4f 4c 57 49 33 2e |...{$I P|TOOLWI3.|
|000052c0| 49 4e 43 7d 20 20 7b 49 | 6e 63 6c 75 64 65 20 73 |INC} {I|nclude s|
|000052d0| 74 61 74 65 6d 65 6e 74 | 20 66 6f 72 20 50 54 4f |tatement| for PTO|
|000052e0| 4f 4c 57 49 4e 20 66 75 | 6e 63 74 69 6f 6e 73 20 |OLWIN fu|nctions |
|000052f0| 61 6e 64 20 70 61 72 61 | 6d 65 74 65 72 73 20 7d |and para|meters }|
|00005300| 0d 0a 0d 0a 7b 20 49 6e | 74 65 72 6e 61 6c 20 52 |....{ In|ternal R|
|00005310| 6f 75 74 69 6e 65 73 20 | 42 65 67 69 6e 20 48 65 |outines |Begin He|
|00005320| 72 65 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |re *****|********|
|00005330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005340| 2a 20 7d 0d 0a 0d 0a 0d | 0a 50 72 6f 63 65 64 75 |* }.....|.Procedu|
|00005350| 72 65 20 4e 65 77 53 63 | 72 65 65 6e 3b 0d 0a 0d |re NewSc|reen;...|
|00005360| 0a 56 61 72 0d 0a 20 20 | 20 53 63 72 65 65 6e 2c |.Var.. | Screen,|
|00005370| 20 43 6f 64 65 20 3a 20 | 49 6e 74 65 67 65 72 3b | Code : |Integer;|
|00005380| 0d 0a 0d 0a 42 65 67 69 | 6e 0d 0a 20 20 20 20 20 |....Begi|n.. |
|00005390| 56 61 6c 20 28 41 6e 73 | 2c 20 53 63 72 65 65 6e |Val (Ans|, Screen|
|000053a0| 2c 20 43 6f 64 65 29 3b | 0d 0a 20 20 20 20 20 49 |, Code);|.. I|
|000053b0| 66 20 28 43 6f 64 65 20 | 3d 20 30 29 20 61 6e 64 |f (Code |= 0) and|
|000053c0| 0d 0a 20 20 20 20 20 20 | 20 20 28 53 63 72 65 65 |.. | (Scree|
|000053d0| 6e 20 69 6e 20 5b 31 2e | 2e 39 5d 29 20 74 68 65 |n in [1.|.9]) the|
|000053e0| 6e 0d 0a 20 20 20 20 20 | 20 20 20 49 66 20 28 50 |n.. | If (P|
|000053f0| 54 4f 4f 4c 57 49 4e 5f | 53 74 61 63 6b 5f 53 69 |TOOLWIN_|Stack_Si|
|00005400| 7a 65 20 3d 20 39 29 20 | 6f 72 0d 0a 20 20 20 20 |ze = 9) |or.. |
|00005410| 20 20 20 20 20 20 20 28 | 28 4d 61 78 41 76 61 69 | (|(MaxAvai|
|00005420| 6c 20 3e 20 30 29 20 61 | 6e 64 20 28 4d 61 78 41 |l > 0) a|nd (MaxA|
|00005430| 76 61 69 6c 20 3c 20 34 | 30 30 36 29 29 20 74 68 |vail < 4|006)) th|
|00005440| 65 6e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 42 |en.. | B|
|00005450| 65 67 69 6e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |egin.. | |
|00005460| 20 20 20 20 20 20 50 54 | 57 4f 70 65 6e 20 28 31 | PT|WOpen (1|
|00005470| 30 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |0);.. | |
|00005480| 20 20 20 20 20 43 6c 72 | 53 63 72 3b 0d 0a 20 20 | Clr|Scr;.. |
|00005490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 47 6f | | Go|
|000054a0| 74 6f 78 79 20 28 32 30 | 2c 31 29 3b 0d 0a 20 20 |toxy (20|,1);.. |
|000054b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 57 72 | | Wr|
|000054c0| 69 74 65 20 28 27 54 68 | 69 73 20 64 65 6d 6f 6e |ite ('Th|is demon|
|000054d0| 73 74 72 61 74 69 6f 6e | 20 70 72 6f 67 72 61 6d |stration| program|
|000054e0| 20 6f 6e 6c 79 20 61 6c | 6c 6f 77 73 20 39 20 77 | only al|lows 9 w|
|000054f0| 69 6e 64 6f 77 73 2e 27 | 29 3b 0d 0a 20 20 20 20 |indows.'|);.. |
|00005500| 20 20 20 20 20 20 20 20 | 20 20 20 20 47 6f 74 6f | | Goto|
|00005510| 78 79 20 28 32 30 2c 33 | 29 3b 0d 0a 20 20 20 20 |xy (20,3|);.. |
|00005520| 20 20 20 20 20 20 20 20 | 20 20 20 20 57 72 69 74 | | Writ|
|00005530| 65 20 28 27 49 20 77 69 | 6c 6c 20 6e 6f 77 20 63 |e ('I wi|ll now c|
|00005540| 6c 6f 73 65 20 74 68 65 | 20 70 72 65 76 69 6f 75 |lose the| previou|
|00005550| 73 20 77 69 6e 64 6f 77 | 27 29 3b 0d 0a 20 20 20 |s window|');.. |
|00005560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 44 65 6c | | Del|
|00005570| 61 79 20 28 33 30 30 30 | 29 3b 0d 0a 20 20 20 20 |ay (3000|);.. |
|00005580| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 54 57 43 | | PTWC|
|00005590| 6c 6f 73 65 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |lose;.. | |
|000055a0| 20 20 20 20 20 20 20 50 | 54 57 43 6c 6f 73 65 3b | P|TWClose;|
|000055b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 45 6e 64 |.. | End|
|000055c0| 0d 0a 20 20 20 20 20 20 | 20 20 65 6c 73 65 0d 0a |.. | else..|
|000055d0| 20 20 20 20 20 20 20 20 | 20 20 20 42 65 67 69 6e | | Begin|
|000055e0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000055f0| 20 20 50 54 57 4f 70 65 | 6e 20 28 53 63 72 65 65 | PTWOpe|n (Scree|
|00005600| 6e 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |n);.. | |
|00005610| 20 20 20 20 20 43 6c 72 | 53 63 72 3b 0d 0a 20 20 | Clr|Scr;.. |
|00005620| 20 20 20 20 20 20 20 20 | 20 45 6e 64 3b 0d 0a 45 | | End;..E|
|00005630| 6e 64 3b 0d 0a 0d 0a 0d | 0a 7b 20 4d 61 69 6e 20 |nd;.....|.{ Main |
|00005640| 50 72 6f 67 72 61 6d 20 | 42 65 67 69 6e 73 20 48 |Program |Begins H|
|00005650| 65 72 65 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ere ****|********|
|00005660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005670| 2a 2a 2a 2a 2a 2a 20 7d | 0d 0a 0d 0a 0d 0a 42 45 |****** }|......BE|
|00005680| 47 49 4e 0d 0a 0d 0a 20 | 43 6c 72 53 63 72 3b 0d |GIN.... |ClrScr;.|
|00005690| 0a 20 47 6f 74 6f 78 79 | 20 28 31 35 2c 37 29 3b |. Gotoxy| (15,7);|
|000056a0| 20 57 72 69 74 65 20 28 | 27 44 65 6d 6f 6e 73 74 | Write (|'Demonst|
|000056b0| 72 61 74 69 6f 6e 20 6f | 66 20 50 54 4f 4f 4c 57 |ration o|f PTOOLW|
|000056c0| 49 4e 20 70 72 6f 63 65 | 64 75 72 65 2e 27 29 3b |IN proce|dure.');|
|000056d0| 0d 0a 20 47 6f 74 6f 78 | 79 20 28 31 35 2c 39 29 |.. Gotox|y (15,9)|
|000056e0| 3b 20 57 72 69 74 65 20 | 28 27 50 54 4f 4f 4c 57 |; Write |('PTOOLW|
|000056f0| 49 4e 20 61 6e 64 20 74 | 68 69 73 20 70 72 6f 67 |IN and t|his prog|
|00005700| 72 61 6d 20 61 72 65 20 | 63 6f 70 79 72 69 67 68 |ram are |copyrigh|
|00005710| 74 73 27 29 3b 0d 0a 20 | 47 6f 74 6f 78 79 20 28 |ts');.. |Gotoxy (|
|00005720| 31 35 2c 31 30 29 3b 20 | 57 72 69 74 65 20 28 27 |15,10); |Write ('|
|00005730| 6f 66 20 52 20 44 20 4f | 73 74 72 61 6e 64 65 72 |of R D O|strander|
|00005740| 27 29 3b 0d 0a 20 47 6f | 74 6f 78 79 20 28 31 35 |');.. Go|toxy (15|
|00005750| 2c 31 31 29 3b 20 57 72 | 69 74 65 20 28 27 20 20 |,11); Wr|ite (' |
|00005760| 20 4f 73 74 72 61 6e 64 | 65 72 20 44 61 74 61 20 | Ostrand|er Data |
|00005770| 53 65 72 76 69 63 65 73 | 27 29 3b 0d 0a 20 47 6f |Services|');.. Go|
|00005780| 74 6f 78 79 20 28 31 35 | 2c 31 32 29 3b 20 57 72 |toxy (15|,12); Wr|
|00005790| 69 74 65 20 28 27 20 20 | 20 35 34 33 37 20 48 6f |ite (' | 5437 Ho|
|000057a0| 6e 65 79 20 4d 61 6e 6f | 72 20 44 72 27 29 3b 0d |ney Mano|r Dr');.|
|000057b0| 0a 20 47 6f 74 6f 78 79 | 20 28 31 35 2c 31 33 29 |. Gotoxy| (15,13)|
|000057c0| 3b 20 57 72 69 74 65 20 | 28 27 20 20 20 49 6e 64 |; Write |(' Ind|
|000057d0| 69 61 6e 61 70 6f 6c 69 | 73 20 20 49 4e 20 20 34 |ianapoli|s IN 4|
|000057e0| 36 32 34 31 27 29 3b 0d | 0a 20 47 6f 74 6f 78 79 |6241');.|. Gotoxy|
|000057f0| 20 28 31 35 2c 31 34 29 | 3b 20 57 72 69 74 65 20 | (15,14)|; Write |
|00005800| 28 27 61 6e 64 20 68 61 | 76 65 20 62 65 65 6e 20 |('and ha|ve been |
|00005810| 70 6c 61 63 65 64 20 69 | 6e 20 74 68 65 20 70 75 |placed i|n the pu|
|00005820| 62 6c 69 63 20 64 6f 6d | 61 69 6e 2e 27 29 3b 0d |blic dom|ain.');.|
|00005830| 0a 0d 0a 20 53 63 72 65 | 65 6e 54 79 70 65 20 3a |... Scre|enType :|
|00005840| 3d 20 27 20 27 3b 0d 0a | 20 41 6e 73 20 20 20 20 |= ' ';..| Ans |
|00005850| 20 20 20 20 3a 3d 20 27 | 20 27 3b 0d 0a 0d 0a 20 | := '| ';.... |
|00005860| 47 6f 74 6f 78 79 20 28 | 31 30 2c 32 33 29 3b 0d |Gotoxy (|10,23);.|
|00005870| 0a 20 57 72 69 74 65 20 | 28 27 57 6f 75 6c 64 20 |. Write |('Would |
|00005880| 79 6f 75 20 6c 69 6b 65 | 20 74 6f 20 68 61 76 65 |you like| to have|
|00005890| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 72 75 | this pr|ogram ru|
|000058a0| 6e 20 69 6e 20 43 6f 6c | 6f 72 3f 20 28 59 2f 4e |n in Col|or? (Y/N|
|000058b0| 29 27 29 3b 0d 0a 20 47 | 6f 74 6f 78 79 20 28 31 |)');.. G|otoxy (1|
|000058c0| 30 2c 32 34 29 3b 0d 0a | 20 57 72 69 74 65 20 28 |0,24);..| Write (|
|000058d0| 27 53 6f 6d 65 20 4d 6f | 6e 6f 63 68 72 6f 6d 65 |'Some Mo|nochrome|
|000058e0| 20 63 61 72 64 73 20 77 | 69 6c 6c 20 73 68 6f 77 | cards w|ill show|
|000058f0| 20 73 68 61 64 65 73 20 | 6f 66 20 67 72 65 79 2e | shades |of grey.|
|00005900| 20 20 20 20 20 20 20 20 | 27 29 3b 0d 0a 20 57 68 | |');.. Wh|
|00005910| 69 6c 65 20 6e 6f 74 20 | 28 53 63 72 65 65 6e 54 |ile not |(ScreenT|
|00005920| 79 70 65 20 69 6e 20 5b | 27 59 27 2c 20 27 4e 27 |ype in [|'Y', 'N'|
|00005930| 5d 29 20 64 6f 0d 0a 20 | 20 20 20 20 20 20 42 65 |]) do.. | Be|
|00005940| 67 69 6e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |gin.. | |
|00005950| 20 52 65 61 64 20 28 4b | 42 44 2c 20 53 63 72 65 | Read (K|BD, Scre|
|00005960| 65 6e 54 79 70 65 29 3b | 0d 0a 20 20 20 20 20 20 |enType);|.. |
|00005970| 20 20 20 20 20 20 57 72 | 69 74 65 20 28 53 63 72 | Wr|ite (Scr|
|00005980| 65 65 6e 54 79 70 65 29 | 3b 0d 0a 20 20 20 20 20 |eenType)|;.. |
|00005990| 20 20 20 20 20 20 20 53 | 63 72 65 65 6e 54 79 70 | S|creenTyp|
|000059a0| 65 20 3a 3d 20 55 70 43 | 61 73 65 20 28 53 63 72 |e := UpC|ase (Scr|
|000059b0| 65 65 6e 54 79 70 65 29 | 3b 0d 0a 20 20 20 20 20 |eenType)|;.. |
|000059c0| 20 20 45 6e 64 3b 0d 0a | 0d 0a 20 49 66 20 53 63 | End;..|.. If Sc|
|000059d0| 72 65 65 6e 54 79 70 65 | 20 3d 20 27 59 27 20 74 |reenType| = 'Y' t|
|000059e0| 68 65 6e 0d 0a 20 20 20 | 20 42 65 67 69 6e 0d 0a |hen.. | Begin..|
|000059f0| 20 20 20 20 20 20 20 20 | 20 50 54 57 53 65 74 20 | | PTWSet |
|00005a00| 28 31 2c 20 32 2c 20 33 | 2c 20 33 31 2c 20 39 2c |(1, 2, 3|, 31, 9,|
|00005a10| 20 31 2c 20 30 2c 20 31 | 35 29 3b 0d 0a 20 20 20 | 1, 0, 1|5);.. |
|00005a20| 20 20 20 20 20 20 50 54 | 57 53 65 74 20 28 32 2c | PT|WSet (2,|
|00005a30| 20 37 2c 20 34 2c 20 37 | 33 2c 20 32 31 2c 20 32 | 7, 4, 7|3, 21, 2|
|00005a40| 2c 20 31 2c 20 31 34 29 | 3b 0d 0a 20 20 20 20 20 |, 1, 14)|;.. |
|00005a50| 20 20 20 20 50 54 57 53 | 65 74 20 28 33 2c 20 34 | PTWS|et (3, 4|
|00005a60| 30 2c 20 31 2c 20 38 30 | 2c 20 32 35 2c 20 30 2c |0, 1, 80|, 25, 0,|
|00005a70| 20 32 2c 20 31 33 29 3b | 0d 0a 20 20 20 20 20 20 | 2, 13);|.. |
|00005a80| 20 20 20 50 54 57 53 65 | 74 20 28 34 2c 20 31 2c | PTWSe|t (4, 1,|
|00005a90| 20 38 2c 20 38 30 2c 20 | 31 36 2c 20 2d 31 2c 20 | 8, 80, |16, -1, |
|00005aa0| 33 2c 20 31 32 29 3b 0d | 0a 20 20 20 20 20 20 20 |3, 12);.|. |
|00005ab0| 20 20 50 54 57 53 65 74 | 20 28 35 2c 20 38 2c 20 | PTWSet| (5, 8, |
|00005ac0| 31 32 2c 20 35 35 2c 20 | 32 34 2c 20 2d 32 2c 20 |12, 55, |24, -2, |
|00005ad0| 34 2c 20 37 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |4, 7);..| |
|00005ae0| 20 50 54 57 53 65 74 20 | 28 36 2c 20 31 2c 20 31 | PTWSet |(6, 1, 1|
|00005af0| 30 2c 20 34 35 2c 20 32 | 30 2c 20 31 2c 20 35 2c |0, 45, 2|0, 1, 5,|
|00005b00| 20 31 32 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 | 12);.. | |
|00005b10| 50 54 57 53 65 74 20 28 | 37 2c 20 35 2c 20 35 2c |PTWSet (|7, 5, 5,|
|00005b20| 20 37 35 2c 20 31 30 2c | 20 32 2c 20 36 2c 20 39 | 75, 10,| 2, 6, 9|
|00005b30| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 50 54 57 |);.. | PTW|
|00005b40| 53 65 74 20 28 38 2c 20 | 34 30 2c 20 31 31 2c 20 |Set (8, |40, 11, |
|00005b50| 37 30 2c 20 32 34 2c 20 | 30 2c 20 31 35 2c 20 30 |70, 24, |0, 15, 0|
|00005b60| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 50 54 57 |);.. | PTW|
|00005b70| 53 65 74 20 28 39 2c 20 | 31 2c 20 31 2c 20 38 30 |Set (9, |1, 1, 80|
|00005b80| 2c 20 32 35 2c 20 2d 32 | 2c 20 31 2c 20 31 30 29 |, 25, -2|, 1, 10)|
|00005b90| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 50 54 57 53 |;.. | PTWS|
|00005ba0| 65 74 20 28 31 30 2c 20 | 31 2c 20 32 31 2c 20 38 |et (10, |1, 21, 8|
|00005bb0| 30 2c 20 32 35 2c 20 2d | 32 2c 20 34 2c 20 30 29 |0, 25, -|2, 4, 0)|
|00005bc0| 3b 0d 0a 20 20 20 20 45 | 6e 64 0d 0a 20 65 6c 73 |;.. E|nd.. els|
|00005bd0| 65 0d 0a 20 20 20 20 42 | 65 67 69 6e 0d 0a 20 20 |e.. B|egin.. |
|00005be0| 20 20 20 20 20 20 20 50 | 54 57 53 65 74 20 28 31 | P|TWSet (1|
|00005bf0| 2c 20 32 2c 20 33 2c 20 | 33 31 2c 20 39 2c 20 30 |, 2, 3, |31, 9, 0|
|00005c00| 2c 20 31 35 2c 20 30 29 | 3b 0d 0a 20 20 20 20 20 |, 15, 0)|;.. |
|00005c10| 20 20 20 20 50 54 57 53 | 65 74 20 28 32 2c 20 37 | PTWS|et (2, 7|
|00005c20| 2c 20 34 2c 20 37 33 2c | 20 32 31 2c 20 31 2c 20 |, 4, 73,| 21, 1, |
|00005c30| 30 2c 20 31 35 29 3b 0d | 0a 20 20 20 20 20 20 20 |0, 15);.|. |
|00005c40| 20 20 50 54 57 53 65 74 | 20 28 33 2c 20 34 30 2c | PTWSet| (3, 40,|
|00005c50| 20 31 2c 20 38 30 2c 20 | 32 35 2c 20 32 2c 20 30 | 1, 80, |25, 2, 0|
|00005c60| 2c 20 31 35 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |, 15);..| |
|00005c70| 20 50 54 57 53 65 74 20 | 28 34 2c 20 31 2c 20 38 | PTWSet |(4, 1, 8|
|00005c80| 2c 20 38 30 2c 20 31 36 | 2c 20 2d 31 2c 20 30 2c |, 80, 16|, -1, 0,|
|00005c90| 20 31 35 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 | 15);.. | |
|00005ca0| 50 54 57 53 65 74 20 28 | 35 2c 20 38 2c 20 31 32 |PTWSet (|5, 8, 12|
|00005cb0| 2c 20 35 35 2c 20 32 34 | 2c 20 2d 32 2c 20 30 2c |, 55, 24|, -2, 0,|
|00005cc0| 20 31 35 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 | 15);.. | |
|00005cd0| 50 54 57 53 65 74 20 28 | 36 2c 20 31 2c 20 31 30 |PTWSet (|6, 1, 10|
|00005ce0| 2c 20 34 35 2c 20 32 30 | 2c 20 31 2c 20 31 35 2c |, 45, 20|, 1, 15,|
|00005cf0| 20 30 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 50 | 0);.. | P|
|00005d00| 54 57 53 65 74 20 28 37 | 2c 20 35 2c 20 35 2c 20 |TWSet (7|, 5, 5, |
|00005d10| 37 35 2c 20 31 30 2c 20 | 32 2c 20 30 2c 20 31 35 |75, 10, |2, 0, 15|
|00005d20| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 50 54 57 |);.. | PTW|
|00005d30| 53 65 74 20 28 38 2c 20 | 34 30 2c 20 31 31 2c 20 |Set (8, |40, 11, |
|00005d40| 37 30 2c 20 32 34 2c 20 | 2d 31 2c 20 30 2c 20 31 |70, 24, |-1, 0, 1|
|00005d50| 35 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 50 54 |5);.. | PT|
|00005d60| 57 53 65 74 20 28 39 2c | 20 31 2c 20 31 2c 20 38 |WSet (9,| 1, 1, 8|
|00005d70| 30 2c 20 32 35 2c 20 2d | 32 2c 20 30 2c 20 31 35 |0, 25, -|2, 0, 15|
|00005d80| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 50 54 57 |);.. | PTW|
|00005d90| 53 65 74 20 28 31 30 2c | 20 31 2c 20 32 31 2c 20 |Set (10,| 1, 21, |
|00005da0| 38 30 2c 20 32 35 2c 20 | 32 2c 20 31 35 2c 20 30 |80, 25, |2, 15, 0|
|00005db0| 29 3b 0d 0a 20 20 20 20 | 45 6e 64 3b 0d 0a 0d 0a |);.. |End;....|
|00005dc0| 20 57 68 69 6c 65 20 41 | 6e 73 20 3c 3e 20 27 45 | While A|ns <> 'E|
|00005dd0| 27 64 6f 0d 0a 20 20 20 | 20 20 20 20 42 65 67 69 |'do.. | Begi|
|00005de0| 6e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 49 |n.. | I|
|00005df0| 66 20 41 6e 73 20 3c 3e | 20 27 43 27 20 74 68 65 |f Ans <>| 'C' the|
|00005e00| 6e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n.. | |
|00005e10| 20 20 42 65 67 69 6e 0d | 0a 20 20 20 20 20 20 20 | Begin.|. |
|00005e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 47 6f 74 | | Got|
|00005e30| 6f 78 79 20 28 32 2c 32 | 29 3b 20 57 72 69 74 65 |oxy (2,2|); Write|
|00005e40| 20 28 27 50 69 63 6b 20 | 61 20 73 63 72 65 65 6e | ('Pick |a screen|
|00005e50| 20 2d 20 31 20 74 6f 20 | 39 27 29 3b 0d 0a 20 20 | - 1 to |9');.. |
|00005e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e70| 20 20 47 6f 74 6f 78 79 | 20 28 32 2c 33 29 3b 20 | Gotoxy| (2,3); |
|00005e80| 57 72 69 74 65 20 28 27 | 20 6f 72 20 22 43 22 20 |Write ('| or "C" |
|00005e90| 74 6f 20 63 6c 6f 73 65 | 20 61 20 73 63 72 65 65 |to close| a scree|
|00005ea0| 6e 27 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |n');.. | |
|00005eb0| 20 20 20 20 20 20 20 20 | 20 20 47 6f 74 6f 78 79 | | Gotoxy|
|00005ec0| 20 28 32 2c 34 29 3b 20 | 57 72 69 74 65 20 28 27 | (2,4); |Write ('|
|00005ed0| 20 6f 72 20 22 45 22 20 | 74 6f 20 45 6e 64 20 20 | or "E" |to End |
|00005ee0| 20 20 20 20 20 20 20 20 | 20 27 29 3b 0d 0a 20 20 | | ');.. |
|00005ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 45 6e 64 | | End|
|00005f00| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 52 |;.. | R|
|00005f10| 65 61 64 20 28 4b 42 44 | 2c 20 41 6e 73 29 3b 0d |ead (KBD|, Ans);.|
|00005f20| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 57 72 69 |. | Wri|
|00005f30| 74 65 20 28 41 6e 73 29 | 3b 20 47 6f 74 6f 78 79 |te (Ans)|; Gotoxy|
|00005f40| 20 28 57 68 65 72 65 58 | 20 2d 20 31 2c 20 57 68 | (WhereX| - 1, Wh|
|00005f50| 65 72 65 59 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ereY);..| |
|00005f60| 20 20 20 20 41 6e 73 20 | 3a 3d 20 55 70 43 61 73 | Ans |:= UpCas|
|00005f70| 65 20 28 41 6e 73 29 3b | 0d 0a 20 20 20 20 20 20 |e (Ans);|.. |
|00005f80| 20 20 20 20 20 20 49 66 | 20 28 41 6e 73 20 3d 20 | If| (Ans = |
|00005f90| 27 43 27 29 20 61 6e 64 | 20 28 50 54 4f 4f 4c 57 |'C') and| (PTOOLW|
|00005fa0| 49 4e 5f 53 74 61 63 6b | 5f 53 69 7a 65 20 3e 20 |IN_Stack|_Size > |
|00005fb0| 30 29 20 74 68 65 6e 20 | 50 54 57 43 6c 6f 73 65 |0) then |PTWClose|
|00005fc0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 49 |;.. | I|
|00005fd0| 66 20 41 6e 73 20 69 6e | 20 5b 27 31 27 2e 2e 27 |f Ans in| ['1'..'|
|00005fe0| 39 27 5d 20 74 68 65 6e | 20 4e 65 77 53 63 72 65 |9'] then| NewScre|
|00005ff0| 65 6e 3b 0d 0a 20 20 20 | 20 20 20 20 45 6e 64 3b |en;.. | End;|
|00006000| 0d 0a 0d 0a 57 69 6e 64 | 6f 77 20 28 31 2c 31 2c |....Wind|ow (1,1,|
|00006010| 38 30 2c 32 35 29 3b 0d | 0a 43 6c 72 53 63 72 3b |80,25);.|.ClrScr;|
|00006020| 0d 0a 47 6f 74 6f 78 79 | 20 28 31 2c 32 34 29 3b |..Gotoxy| (1,24);|
|00006030| 0d 0a 54 65 78 74 43 6f | 6c 6f 72 28 30 29 3b 0d |..TextCo|lor(0);.|
|00006040| 0a 54 65 78 74 42 61 63 | 6b 67 72 6f 75 6e 64 20 |.TextBac|kground |
|00006050| 28 31 35 29 3b 0d 0a 0d | 0a 45 4e 44 2e 0d 0a 1a |(15);...|.END....|
|00006060| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
|00006070| 1a 1a 1a 1a 1a 1a 1a 1a | 1a 1a 1a 1a 1a 1a 1a 1a |........|........|
+--------+-------------------------+-------------------------+--------+--------+