home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsd / dubmodule / !DUBdemo / Demos / TextArea1 < prev    next >
Unknown  |  1996-02-24  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% xdgMime image/x-tga default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 11 f4 20 3e 20 | 54 65 78 74 41 72 65 61 |..... > |TextArea|
|00000010| 31 0d 00 14 04 0d 00 1e | 13 ee 20 85 20 f6 20 3a |1.......|.. . . :|
|00000020| 20 f1 20 9e 20 3a 20 e0 | 0d 00 28 04 0d 00 32 33 | . . : .|..(...23|
|00000030| f4 20 43 72 65 61 74 69 | 6e 67 20 61 20 74 65 78 |. Creati|ng a tex|
|00000040| 74 20 61 72 65 61 20 6f | 62 6a 65 63 74 20 66 72 |t area o|bject fr|
|00000050| 6f 6d 20 61 20 74 65 78 | 74 20 66 69 6c 65 2e 0d |om a tex|t file..|
|00000060| 00 3c 04 0d 00 46 34 f4 | 20 54 68 69 73 20 65 78 |.<...F4.| This ex|
|00000070| 61 6d 70 6c 65 20 75 73 | 65 73 20 52 32 20 6f 6e |ample us|es R2 on|
|00000080| 20 65 6e 74 72 79 20 74 | 6f 20 61 6e 64 20 65 78 | entry t|o and ex|
|00000090| 69 74 20 66 72 6f 6d 0d | 00 50 37 f4 20 44 46 5f |it from.|.P7. DF_|
|000000a0| 57 72 69 74 65 54 65 78 | 74 41 72 65 61 20 28 52 |WriteTex|tArea (R|
|000000b0| 30 20 62 69 74 73 20 32 | 20 26 20 33 20 73 65 74 |0 bits 2| & 3 set|
|000000c0| 29 20 61 6e 64 20 6f 6e | 20 65 6e 74 72 79 0d 00 |) and on| entry..|
|000000d0| 5a 27 f4 20 74 6f 20 44 | 46 5f 45 6e 64 54 65 78 |Z'. to D|F_EndTex|
|000000e0| 74 41 72 65 61 20 28 52 | 30 20 62 69 74 20 32 20 |tArea (R|0 bit 2 |
|000000f0| 73 65 74 29 2e 0d 00 64 | 04 0d 00 6e 32 f4 20 46 |set)...d|...n2. F|
|00000100| 6f 6e 74 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 73 |ont defi|nition s|
|00000110| 65 71 75 65 6e 63 65 73 | 20 28 27 5c 46 27 29 20 |equences| ('\F') |
|00000120| 69 6e 20 74 68 65 20 74 | 65 78 74 0d 00 78 33 f4 |in the t|ext..x3.|
|00000130| 20 66 69 6c 65 20 63 61 | 75 73 65 20 61 20 66 6f | file ca|use a fo|
|00000140| 6e 74 20 74 61 62 6c 65 | 20 6f 62 6a 65 63 74 20 |nt table| object |
|00000150| 74 6f 20 62 65 20 69 6e | 73 65 72 74 65 64 0d 00 |to be in|serted..|
|00000160| 82 34 f4 20 28 69 6e 69 | 74 69 61 6c 6c 79 29 20 |.4. (ini|tially) |
|00000170| 61 6e 64 20 74 68 65 6e | 20 65 78 74 65 6e 64 65 |and then| extende|
|00000180| 64 20 69 66 20 74 68 65 | 20 66 6f 6e 74 73 20 61 |d if the| fonts a|
|00000190| 72 65 0d 00 8c 37 f4 20 | 6e 6f 74 20 61 6c 72 65 |re...7. |not alre|
|000001a0| 61 64 79 20 69 6e 63 6c | 75 64 65 64 2e 20 54 68 |ady incl|uded. Th|
|000001b0| 69 73 20 63 61 75 73 65 | 73 20 74 68 65 20 6c 6f |is cause|s the lo|
|000001c0| 63 61 74 69 6f 6e 20 6f | 66 0d 00 96 37 f4 20 61 |cation o|f...7. a|
|000001d0| 6c 6c 20 6f 62 6a 65 63 | 74 73 20 66 6f 6c 6c 6f |ll objec|ts follo|
|000001e0| 77 69 6e 67 20 74 68 65 | 20 66 6f 6e 74 20 74 61 |wing the| font ta|
|000001f0| 62 6c 65 20 28 6f 66 66 | 73 65 74 20 66 72 6f 6d |ble (off|set from|
|00000200| 0d 00 a0 36 f4 20 73 74 | 61 72 74 20 6f 66 20 62 |...6. st|art of b|
|00000210| 75 66 66 65 72 20 74 6f | 20 73 74 61 72 74 20 6f |uffer to| start o|
|00000220| 66 20 6f 62 6a 65 63 74 | 20 3d 20 66 70 6f 25 20 |f object| = fpo% |
|00000230| 62 65 66 6f 72 65 0d 00 | aa 35 f4 20 63 72 65 61 |before..|.5. crea|
|00000240| 74 69 6e 67 20 74 68 65 | 20 6f 62 6a 65 63 74 29 |ting the| object)|
|00000250| 20 74 6f 20 63 68 61 6e | 67 65 20 62 79 20 61 6e | to chan|ge by an|
|00000260| 20 61 6d 6f 75 6e 74 20 | 28 69 6e 0d 00 b4 39 f4 | amount |(in...9.|
|00000270| 20 62 79 74 65 73 29 20 | 77 68 69 63 68 20 69 73 | bytes) |which is|
|00000280| 20 72 65 74 75 72 6e 65 | 64 20 69 6e 20 52 37 20 | returne|d in R7 |
|00000290| 62 79 20 44 46 5f 57 72 | 69 74 65 54 65 78 74 41 |by DF_Wr|iteTextA|
|000002a0| 72 65 61 2e 0d 00 be 04 | 0d 00 c8 1c 64 66 5f 62 |rea.....|....df_b|
|000002b0| 75 66 66 5f 73 69 7a 65 | 25 20 3d 20 28 33 32 3c |uff_size|% = (32<|
|000002c0| 3c 31 30 29 0d 00 d2 2f | de 20 64 66 5f 62 75 66 |<10).../|. df_buf|
|000002d0| 66 25 20 28 64 66 5f 62 | 75 66 66 5f 73 69 7a 65 |f% (df_b|uff_size|
|000002e0| 25 29 2c 20 74 65 6d 70 | 5f 62 75 66 66 25 20 32 |%), temp|_buff% 2|
|000002f0| 30 34 38 0d 00 dc 0c 66 | 70 6f 25 20 3d 20 30 0d |048....f|po% = 0.|
|00000300| 00 e6 04 0d 00 f0 56 c8 | 99 20 22 44 46 5f 49 6e |......V.|. "DF_In|
|00000310| 69 74 69 61 6c 69 73 65 | 46 69 6c 65 22 2c 20 31 |itialise|File", 1|
|00000320| 2c 20 64 66 5f 62 75 66 | 66 25 2c 2c 64 66 5f 62 |, df_buf|f%,,df_b|
|00000330| 75 66 66 5f 73 69 7a 65 | 25 2c 20 22 44 55 42 5f |uff_size|%, "DUB_|
|00000340| 44 65 6d 6f 22 2c 20 26 | 35 30 31 2c 20 30 2c 20 |Demo", &|501, 0, |
|00000350| 34 20 b8 2c 2c 66 70 6f | 25 0d 00 fa 04 0d 01 04 |4 .,,fpo|%.......|
|00000360| 37 f4 20 67 65 74 20 73 | 69 7a 65 20 6f 66 20 74 |7. get s|ize of t|
|00000370| 65 78 74 20 66 69 6c 65 | 2c 20 6c 6f 61 64 20 69 |ext file|, load i|
|00000380| 6e 74 6f 20 74 65 6d 70 | 6f 72 61 72 79 20 62 75 |nto temp|orary bu|
|00000390| 66 66 65 72 0d 01 0e 26 | f4 20 61 6e 64 20 65 6e |ffer...&|. and en|
|000003a0| 73 75 72 65 20 6e 75 6c | 6c 20 63 68 61 72 20 74 |sure nul|l char t|
|000003b0| 65 72 6d 69 6e 61 74 6f | 72 2e 0d 01 18 04 0d 01 |erminato|r.......|
|000003c0| 22 40 c8 99 20 22 4f 53 | 5f 46 69 6c 65 22 2c 20 |"@.. "OS|_File", |
|000003d0| 31 37 2c 20 22 3c 44 55 | 42 64 65 6d 6f 24 44 69 |17, "<DU|Bdemo$Di|
|000003e0| 72 3e 2e 44 65 6d 6f 73 | 2e 54 65 78 74 46 69 6c |r>.Demos|.TextFil|
|000003f0| 65 22 20 b8 2c 2c 2c 2c | 20 73 69 7a 65 25 0d 01 |e" .,,,,| size%..|
|00000400| 2c 43 c8 99 20 22 4f 53 | 5f 46 69 6c 65 22 2c 20 |,C.. "OS|_File", |
|00000410| 31 36 2c 20 22 3c 44 55 | 42 64 65 6d 6f 24 44 69 |16, "<DU|Bdemo$Di|
|00000420| 72 3e 2e 44 65 6d 6f 73 | 2e 54 65 78 74 46 69 6c |r>.Demos|.TextFil|
|00000430| 65 22 2c 20 74 65 6d 70 | 5f 62 75 66 66 25 2c 20 |e", temp|_buff%, |
|00000440| 30 0d 01 36 18 74 65 6d | 70 5f 62 75 66 66 25 3f |0..6.tem|p_buff%?|
|00000450| 73 69 7a 65 25 20 3d 20 | 30 0d 01 40 04 0d 01 4a |size% = |0..@...J|
|00000460| 43 c8 99 20 22 44 46 5f | 53 74 61 72 74 54 65 78 |C.. "DF_|StartTex|
|00000470| 74 41 72 65 61 22 2c 20 | 20 31 2c 20 64 66 5f 62 |tArea", | 1, df_b|
|00000480| 75 66 66 25 2c 20 66 70 | 6f 25 2c 2c 30 2c 20 26 |uff%, fp|o%,,0, &|
|00000490| 46 46 46 46 46 46 30 30 | 20 b8 2c 2c 66 70 6f 25 |FFFFFF00| .,,fpo%|
|000004a0| 0d 01 54 47 c8 99 20 22 | 44 46 5f 44 65 66 69 6e |..TG.. "|DF_Defin|
|000004b0| 65 54 65 78 74 41 72 65 | 61 22 2c 20 31 2c 20 64 |eTextAre|a", 1, d|
|000004c0| 66 5f 62 75 66 66 25 2c | 20 66 70 6f 25 2c 2c 33 |f_buff%,| fpo%,,3|
|000004d0| 35 2c 20 32 30 2c 20 31 | 31 35 2c 20 32 30 30 20 |5, 20, 1|15, 200 |
|000004e0| b8 2c 2c 66 70 6f 25 0d | 01 5e 41 c8 99 20 22 44 |.,,fpo%.|.^A.. "D|
|000004f0| 46 5f 57 72 69 74 65 54 | 65 78 74 41 72 65 61 22 |F_WriteT|extArea"|
|00000500| 2c 20 31 35 2c 20 64 66 | 5f 62 75 66 66 25 2c 20 |, 15, df|_buff%, |
|00000510| 66 70 6f 25 2c 20 74 65 | 6d 70 5f 62 75 66 66 25 |fpo%, te|mp_buff%|
|00000520| 20 b8 2c 2c 66 70 6f 25 | 0d 01 68 35 c8 99 20 22 | .,,fpo%|..h5.. "|
|00000530| 44 46 5f 45 6e 64 54 65 | 78 74 41 72 65 61 22 2c |DF_EndTe|xtArea",|
|00000540| 20 20 20 20 35 2c 20 64 | 66 5f 62 75 66 66 25 2c | 5, d|f_buff%,|
|00000550| 20 66 70 6f 25 20 b8 2c | 2c 66 70 6f 25 0d 01 72 | fpo% .,|,fpo%..r|
|00000560| 04 0d 01 7c 33 c8 99 20 | 22 44 46 5f 43 6f 6d 70 |...|3.. |"DF_Comp|
|00000570| 6c 65 74 65 46 69 6c 65 | 22 2c 20 31 2c 20 64 66 |leteFile|", 1, df|
|00000580| 5f 62 75 66 66 25 2c 20 | 66 70 6f 25 20 b8 2c 2c |_buff%, |fpo% .,,|
|00000590| 66 70 6f 25 0d 01 86 04 | 0d 01 90 58 c8 99 20 22 |fpo%....|...X.. "|
|000005a0| 4f 53 5f 46 69 6c 65 22 | 2c 31 30 2c 22 3c 44 55 |OS_File"|,10,"<DU|
|000005b0| 42 64 65 6d 6f 24 44 69 | 72 3e 2e 44 65 6d 6f 73 |Bdemo$Di|r>.Demos|
|000005c0| 2e 44 72 61 77 46 69 6c | 65 22 2c 26 41 46 46 2c |.DrawFil|e",&AFF,|
|000005d0| 2c 28 64 66 5f 62 75 66 | 66 25 2b 31 30 32 34 29 |,(df_buf|f%+1024)|
|000005e0| 2c 28 64 66 5f 62 75 66 | 66 25 2b 66 70 6f 25 29 |,(df_buf|f%+fpo%)|
|000005f0| 0d 01 9a 2d 2a 46 69 6c | 65 72 5f 52 75 6e 20 22 |...-*Fil|er_Run "|
|00000600| 3c 44 55 42 64 65 6d 6f | 24 44 69 72 3e 2e 44 65 |<DUBdemo|$Dir>.De|
|00000610| 6d 6f 73 2e 44 72 61 77 | 46 69 6c 65 22 0d ff |mos.Draw|File".. |
+--------+-------------------------+-------------------------+--------+--------+