home *** CD-ROM | disk | FTP | other *** search
Unknown | 2000-02-28 | 8.9 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.
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 05 43 6c 61 73 73 08 4d | 53 43 61 6e 76 61 73 34 |.Class.M|SCanvas4|
|00000010| a5 01 a4 0e bf 0a 07 00 | 08 4d 53 43 61 6e 76 61 |........|.MSCanva|
|00000020| 73 9c 02 06 43 61 6e 76 | 61 73 00 0e 11 63 61 70 |s...Canv|as...cap|
|00000030| 74 69 6f 6e 20 61 73 20 | 53 74 72 69 6e 67 00 10 |tion as |String..|
|00000040| 73 74 61 74 65 20 61 73 | 20 69 6e 74 65 67 65 72 |state as| integer|
|00000050| 00 11 69 6e 44 6f 77 6e | 20 61 73 20 62 6f 6f 6c |..inDown| as bool|
|00000060| 65 61 6e 01 0d 67 20 61 | 73 20 67 72 61 70 68 69 |ean..g a|s graphi|
|00000070| 63 73 01 11 62 75 66 66 | 65 72 20 61 73 20 70 69 |cs..buff|er as pi|
|00000080| 63 74 75 72 65 01 12 74 | 65 78 74 46 6f 6e 74 20 |cture..t|extFont |
|00000090| 61 73 20 73 74 72 69 6e | 67 00 13 74 65 78 74 53 |as strin|g..textS|
|000000a0| 69 7a 65 20 61 73 20 69 | 6e 74 65 67 65 72 00 16 |ize as i|nteger..|
|000000b0| 61 75 74 6f 43 65 6e 74 | 65 72 56 20 61 73 20 62 |autoCent|erV as b|
|000000c0| 6f 6f 6c 65 61 6e 00 12 | 44 61 72 6b 42 65 76 65 |oolean..|DarkBeve|
|000000d0| 6c 20 61 73 20 63 6f 6c | 6f 72 00 13 6c 69 67 68 |l as col|or..ligh|
|000000e0| 74 42 65 76 65 6c 20 61 | 73 20 63 6f 6c 6f 72 00 |tBevel a|s color.|
|000000f0| 13 74 65 78 74 41 63 74 | 69 76 65 20 61 73 20 63 |.textAct|ive as c|
|00000100| 6f 6c 6f 72 00 15 74 65 | 78 74 44 69 73 61 62 6c |olor..te|xtDisabl|
|00000110| 65 64 20 61 73 20 63 6f | 6c 6f 72 00 12 62 61 63 |ed as co|lor..bac|
|00000120| 6b 43 6f 6c 6f 72 20 61 | 73 20 63 6f 6c 6f 72 00 |kColor a|s color.|
|00000130| 1a 62 61 63 6b 43 6f 6c | 6f 72 44 69 73 61 62 6c |.backCol|orDisabl|
|00000140| 65 64 20 61 73 20 63 6f | 6c 6f 72 00 08 06 65 6e |ed as co|lor...en|
|00000150| 61 62 6c 65 13 61 63 74 | 69 76 61 74 65 20 61 73 |able.act|ivate as|
|00000160| 20 62 6f 6f 6c 65 61 6e | 00 00 13 1a 13 1a 1e 1f | boolean|........|
|00000170| 53 75 62 20 65 6e 61 62 | 6c 65 28 61 63 74 69 76 |Sub enab|le(activ|
|00000180| 61 74 65 20 61 73 20 62 | 6f 6f 6c 65 61 6e 29 00 |ate as b|oolean).|
|00000190| 3f 27 49 66 20 61 63 74 | 69 76 61 74 65 20 3d 20 |?'If act|ivate = |
|000001a0| 74 72 75 65 20 74 68 65 | 6e 20 65 6e 61 62 6c 69 |true the|n enabli|
|000001b0| 6e 67 20 74 68 65 20 62 | 75 74 74 6f 6e 2c 20 6f |ng the b|utton, o|
|000001c0| 74 68 65 72 77 69 73 65 | 20 64 72 61 77 69 6e 67 |therwise| drawing|
|000001d0| 0d 27 69 74 20 64 69 73 | 61 62 6c 65 64 2e 10 69 |.'it dis|abled..i|
|000001e0| 66 20 61 63 74 69 76 61 | 74 65 20 74 68 65 6e 0e |f activa|te then.|
|000001f0| 65 6e 61 62 6c 65 64 20 | 3d 20 74 72 75 65 09 73 |enabled |= true.s|
|00000200| 74 61 74 65 20 3d 20 30 | 08 6e 6f 72 6d 61 6c 28 |tate = 0|.normal(|
|00000210| 29 04 65 6c 73 65 0f 65 | 6e 61 62 6c 65 64 20 3d |).else.e|nabled =|
|00000220| 20 66 61 6c 73 65 00 3c | 27 64 72 61 77 69 6e 67 | false.<|'drawing|
|00000230| 20 70 69 63 74 75 72 65 | 20 6f 66 66 2d 73 63 72 | picture| off-scr|
|00000240| 65 65 6e 20 62 65 66 6f | 72 65 20 73 65 74 74 69 |een befo|re setti|
|00000250| 6e 67 20 70 69 63 74 75 | 72 65 20 6f 6e 20 43 61 |ng pictu|re on Ca|
|00000260| 6e 76 61 73 33 62 75 66 | 66 65 72 20 3d 20 6e 65 |nvas3buf|fer = ne|
|00000270| 77 50 69 63 74 75 72 65 | 28 77 69 64 74 68 2c 20 |wPicture|(width, |
|00000280| 68 65 69 67 68 74 2c 20 | 73 63 72 65 65 6e 28 30 |height, |screen(0|
|00000290| 29 2e 64 65 70 74 68 29 | 13 67 20 3d 20 62 75 66 |).depth)|.g = buf|
|000002a0| 66 65 72 2e 67 72 61 70 | 68 69 63 73 00 3c 27 66 |fer.grap|hics.<'f|
|000002b0| 69 6c 6c 69 6e 67 20 74 | 68 65 20 62 75 74 74 6f |illing t|he butto|
|000002c0| 6e 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 77 69 74 |n backgr|ound wit|
|000002d0| 68 20 63 75 72 72 65 6e | 74 20 62 61 63 6b 67 72 |h curren|t backgr|
|000002e0| 6f 75 6e 64 20 63 6f 6c | 6f 72 1f 67 2e 66 6f 72 |ound col|or.g.for|
|000002f0| 65 43 6f 6c 6f 72 20 3d | 20 62 61 63 6b 43 6f 6c |eColor =| backCol|
|00000300| 6f 72 44 69 73 61 62 6c | 65 64 1e 67 2e 66 69 6c |orDisabl|ed.g.fil|
|00000310| 6c 52 65 63 74 28 30 2c | 30 2c 20 77 69 64 74 68 |lRect(0,|0, width|
|00000320| 2c 20 68 65 69 67 68 74 | 29 00 1a 67 2e 66 6f 72 |, height|)..g.for|
|00000330| 65 43 6f 6c 6f 72 20 3d | 20 74 65 78 74 44 69 73 |eColor =| textDis|
|00000340| 61 62 6c 65 64 15 67 2e | 54 65 78 74 66 6f 6e 74 |abled.g.|Textfont|
|00000350| 20 3d 20 54 65 78 74 46 | 6f 6e 74 15 67 2e 74 65 | = TextF|ont.g.te|
|00000360| 78 74 73 69 7a 65 20 3d | 20 54 65 78 74 53 69 7a |xtsize =| TextSiz|
|00000370| 65 23 27 73 65 74 20 6e | 6f 72 6d 61 6c 20 74 65 |e#'set n|ormal te|
|00000380| 78 74 20 78 2c 20 79 20 | 70 6f 73 69 74 69 6f 6e |xt x, y |position|
|00000390| 20 68 65 72 65 1d 67 2e | 64 72 61 77 73 74 72 69 | here.g.|drawstri|
|000003a0| 6e 67 20 63 61 70 74 69 | 6f 6e 2c 20 35 2c 20 67 |ng capti|on, 5, g|
|000003b0| 65 74 59 00 23 27 64 72 | 61 77 69 6e 67 20 70 69 |etY.#'dr|awing pi|
|000003c0| 63 74 75 72 65 20 28 62 | 75 74 74 6f 6e 29 20 6f |cture (b|utton) o|
|000003d0| 6e 20 43 61 6e 76 61 73 | 21 67 72 61 70 68 69 63 |n Canvas|!graphic|
|000003e0| 73 2e 64 72 61 77 50 69 | 63 74 75 72 65 20 62 75 |s.drawPi|cture bu|
|000003f0| 66 66 65 72 2c 20 30 2c | 20 30 06 65 6e 64 20 69 |ffer, 0,| 0.end i|
|00000400| 66 00 07 45 6e 64 20 53 | 75 62 02 75 70 00 00 01 |f..End S|ub.up...|
|00000410| 17 2e 17 2e 27 08 53 75 | 62 20 75 70 28 29 00 14 |....'.Su|b up()..|
|00000420| 27 63 68 65 63 6b 69 6e | 67 20 69 66 20 61 63 74 |'checkin|g if act|
|00000430| 69 76 65 20 13 69 66 20 | 6e 6f 74 20 65 6e 61 62 |ive .if |not enab|
|00000440| 6c 65 64 20 74 68 65 6e | 0d 45 6e 61 62 6c 65 28 |led then|.Enable(|
|00000450| 66 61 6c 73 65 29 06 72 | 65 74 75 72 6e 06 65 6e |false).r|eturn.en|
|00000460| 64 20 69 66 00 2a 27 63 | 68 61 6e 67 69 6e 67 20 |d if.*'c|hanging |
|00000470| 63 75 72 73 6f 72 20 77 | 68 65 6e 20 6d 6f 75 73 |cursor w|hen mous|
|00000480| 65 20 69 6e 20 69 6e 20 | 63 6f 6e 74 72 6f 6c 20 |e in in |control |
|00000490| 31 61 70 70 2e 6d 6f 75 | 73 65 63 75 72 73 6f 72 |1app.mou|secursor|
|000004a0| 20 3d 20 61 70 70 2e 72 | 65 73 6f 75 72 63 65 46 | = app.r|esourceF|
|000004b0| 6f 72 6b 2e 67 65 74 63 | 75 72 73 6f 72 28 31 33 |ork.getc|ursor(13|
|000004c0| 39 29 00 3c 27 64 72 61 | 77 69 6e 67 20 70 69 63 |9).<'dra|wing pic|
|000004d0| 74 75 72 65 20 6f 66 66 | 2d 73 63 72 65 65 6e 20 |ture off|-screen |
|000004e0| 62 65 66 6f 72 65 20 73 | 65 74 74 69 6e 67 20 70 |before s|etting p|
|000004f0| 69 63 74 75 72 65 20 6f | 6e 20 43 61 6e 76 61 73 |icture o|n Canvas|
|00000500| 33 62 75 66 66 65 72 20 | 3d 20 6e 65 77 50 69 63 |3buffer |= newPic|
|00000510| 74 75 72 65 28 77 69 64 | 74 68 2c 20 68 65 69 67 |ture(wid|th, heig|
|00000520| 68 74 2c 20 73 63 72 65 | 65 6e 28 30 29 2e 64 65 |ht, scre|en(0).de|
|00000530| 70 74 68 29 13 67 20 3d | 20 62 75 66 66 65 72 2e |pth).g =| buffer.|
|00000540| 67 72 61 70 68 69 63 73 | 00 3c 27 66 69 6c 6c 69 |graphics|.<'filli|
|00000550| 6e 67 20 74 68 65 20 62 | 75 74 74 6f 6e 20 62 61 |ng the b|utton ba|
|00000560| 63 6b 67 72 6f 75 6e 64 | 20 77 69 74 68 20 63 75 |ckground| with cu|
|00000570| 72 72 65 6e 74 20 62 61 | 63 6b 67 72 6f 75 6e 64 |rrent ba|ckground|
|00000580| 20 63 6f 6c 6f 72 17 67 | 2e 66 6f 72 65 43 6f 6c | color.g|.foreCol|
|00000590| 6f 72 20 3d 20 62 61 63 | 6b 43 6f 6c 6f 72 1f 67 |or = bac|kColor.g|
|000005a0| 2e 66 69 6c 6c 52 65 63 | 74 28 30 2c 20 30 2c 20 |.fillRec|t(0, 0, |
|000005b0| 77 69 64 74 68 2c 20 68 | 65 69 67 68 74 29 00 1b |width, h|eight)..|
|000005c0| 27 73 68 6f 77 69 6e 67 | 20 62 75 74 74 6f 6e 20 |'showing| button |
|000005d0| 6d 6f 75 73 65 64 20 6f | 76 65 72 2f 67 2e 66 6f |moused o|ver/g.fo|
|000005e0| 72 65 43 6f 6c 6f 72 20 | 3d 20 6c 69 67 68 74 42 |reColor |= lightB|
|000005f0| 65 76 65 6c 27 43 6f 6c | 6f 72 27 52 47 42 28 32 |evel'Col|or'RGB(2|
|00000600| 35 36 2c 32 35 36 2c 32 | 35 36 29 1b 67 2e 64 72 |56,256,2|56).g.dr|
|00000610| 61 77 6c 69 6e 65 28 30 | 2c 20 30 2c 20 30 2c 20 |awline(0|, 0, 0, |
|00000620| 77 69 64 74 68 29 20 1c | 67 2e 64 72 61 77 6c 69 |width) .|g.drawli|
|00000630| 6e 65 28 30 2c 20 30 2c | 20 77 69 64 74 68 2c 20 |ne(0, 0,| width, |
|00000640| 30 20 29 20 2e 67 2e 66 | 6f 72 65 43 6f 6c 6f 72 |0 ) .g.f|oreColor|
|00000650| 20 3d 20 44 61 72 6b 42 | 65 76 65 6c 27 43 6f 6c | = DarkB|evel'Col|
|00000660| 6f 72 27 52 47 42 28 31 | 33 36 2c 31 33 36 2c 31 |or'RGB(1|36,136,1|
|00000670| 33 36 29 29 67 2e 64 72 | 61 77 6c 69 6e 65 28 77 |36))g.dr|awline(w|
|00000680| 69 64 74 68 2d 31 2c 20 | 31 2c 20 77 69 64 74 68 |idth-1, |1, width|
|00000690| 2d 31 2c 20 68 65 69 67 | 68 74 2d 31 29 2a 67 2e |-1, heig|ht-1)*g.|
|000006a0| 64 72 61 77 6c 69 6e 65 | 28 31 2c 20 68 65 69 67 |drawline|(1, heig|
|000006b0| 68 74 2d 31 2c 20 77 69 | 64 74 68 2d 31 2c 20 68 |ht-1, wi|dth-1, h|
|000006c0| 65 69 67 68 74 2d 31 29 | 00 0e 27 64 72 61 77 69 |eight-1)|..'drawi|
|000006d0| 6e 67 20 74 65 78 74 20 | 18 67 2e 66 6f 72 65 43 |ng text |.g.foreC|
|000006e0| 6f 6c 6f 72 20 3d 20 74 | 65 78 74 41 63 74 69 76 |olor = t|extActiv|
|000006f0| 65 15 67 2e 54 65 78 74 | 66 6f 6e 74 20 3d 20 54 |e.g.Text|font = T|
|00000700| 65 78 74 46 6f 6e 74 15 | 67 2e 74 65 78 74 73 69 |extFont.|g.textsi|
|00000710| 7a 65 20 3d 20 54 65 78 | 74 53 69 7a 65 00 23 27 |ze = Tex|tSize.#'|
|00000720| 73 65 74 20 6e 6f 72 6d | 61 6c 20 74 65 78 74 20 |set norm|al text |
|00000730| 78 2c 20 79 20 70 6f 73 | 69 74 69 6f 6e 20 68 65 |x, y pos|ition he|
|00000740| 72 65 1d 67 2e 64 72 61 | 77 73 74 72 69 6e 67 20 |re.g.dra|wstring |
|00000750| 63 61 70 74 69 6f 6e 2c | 20 35 2c 20 67 65 74 59 |caption,| 5, getY|
|00000760| 00 23 27 64 72 61 77 69 | 6e 67 20 70 69 63 74 75 |.#'drawi|ng pictu|
|00000770| 72 65 20 28 62 75 74 74 | 6f 6e 29 20 6f 6e 20 43 |re (butt|on) on C|
|00000780| 61 6e 76 61 73 21 67 72 | 61 70 68 69 63 73 2e 64 |anvas!gr|aphics.d|
|00000790| 72 61 77 50 69 63 74 75 | 72 65 20 62 75 66 66 65 |rawPictu|re buffe|
|000007a0| 72 2c 20 30 2c 20 30 00 | 07 45 6e 64 20 53 75 62 |r, 0, 0.|.End Sub|
|000007b0| 04 64 6f 77 6e 00 00 01 | 0f 00 0f 00 23 0a 53 75 |.down...|....#.Su|
|000007c0| 62 20 64 6f 77 6e 28 29 | 00 14 27 63 68 65 63 6b |b down()|..'check|
|000007d0| 69 6e 67 20 69 66 20 61 | 63 74 69 76 65 20 13 69 |ing if a|ctive .i|
|000007e0| 66 20 6e 6f 74 20 65 6e | 61 62 6c 65 64 20 74 68 |f not en|abled th|
|000007f0| 65 6e 0d 45 6e 61 62 6c | 65 28 66 61 6c 73 65 29 |en.Enabl|e(false)|
|00000800| 06 72 65 74 75 72 6e 06 | 65 6e 64 20 69 66 00 3c |.return.|end if.<|
|00000810| 27 64 72 61 77 69 6e 67 | 20 70 69 63 74 75 72 65 |'drawing| picture|
|00000820| 20 6f 66 66 2d 73 63 72 | 65 65 6e 20 62 65 66 6f | off-scr|een befo|
|00000830| 72 65 20 73 65 74 74 69 | 6e 67 20 70 69 63 74 75 |re setti|ng pictu|
|00000840| 72 65 20 6f 6e 20 43 61 | 6e 76 61 73 33 62 75 66 |re on Ca|nvas3buf|
|00000850| 66 65 72 20 3d 20 6e 65 | 77 50 69 63 74 75 72 65 |fer = ne|wPicture|
|00000860| 28 77 69 64 74 68 2c 20 | 68 65 69 67 68 74 2c 20 |(width, |height, |
|00000870| 73 63 72 65 65 6e 28 30 | 29 2e 64 65 70 74 68 29 |screen(0|).depth)|
|00000880| 13 67 20 3d 20 62 75 66 | 66 65 72 2e 67 72 61 70 |.g = buf|fer.grap|
|00000890| 68 69 63 73 00 3c 27 66 | 69 6c 6c 69 6e 67 20 74 |hics.<'f|illing t|
|000008a0| 68 65 20 62 75 74 74 6f | 6e 20 62 61 63 6b 67 72 |he butto|n backgr|
|000008b0| 6f 75 6e 64 20 77 69 74 | 68 20 63 75 72 72 65 6e |ound wit|h curren|
|000008c0| 74 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 63 6f 6c |t backgr|ound col|
|000008d0| 6f 72 17 67 2e 66 6f 72 | 65 43 6f 6c 6f 72 20 3d |or.g.for|eColor =|
|000008e0| 20 62 61 63 6b 43 6f 6c | 6f 72 1f 67 2e 66 69 6c | backCol|or.g.fil|
|000008f0| 6c 52 65 63 74 28 30 2c | 20 30 2c 20 77 69 64 74 |lRect(0,| 0, widt|
|00000900| 68 2c 20 68 65 69 67 68 | 74 29 00 16 27 44 72 61 |h, heigh|t)..'Dra|
|00000910| 77 69 6e 67 20 62 75 74 | 74 6f 6e 20 70 75 73 68 |wing but|ton push|
|00000920| 65 64 2e 67 2e 66 6f 72 | 65 43 6f 6c 6f 72 20 3d |ed.g.for|eColor =|
|00000930| 20 44 61 72 6b 42 65 76 | 65 6c 27 43 6f 6c 6f 72 | DarkBev|el'Color|
|00000940| 27 52 47 42 28 31 33 36 | 2c 31 33 36 2c 31 33 36 |'RGB(136|,136,136|
|00000950| 29 1a 67 2e 64 72 61 77 | 6c 69 6e 65 28 30 2c 20 |).g.draw|line(0, |
|00000960| 30 2c 20 30 2c 77 69 64 | 74 68 29 20 1c 67 2e 64 |0, 0,wid|th) .g.d|
|00000970| 72 61 77 6c 69 6e 65 28 | 30 2c 20 30 2c 20 77 69 |rawline(|0, 0, wi|
|00000980| 64 74 68 2c 20 30 20 29 | 20 2f 67 2e 66 6f 72 65 |dth, 0 )| /g.fore|
|00000990| 43 6f 6c 6f 72 20 3d 20 | 6c 69 67 68 74 42 65 76 |Color = |lightBev|
|000009a0| 65 6c 27 43 6f 6c 6f 72 | 27 52 47 42 28 32 35 36 |el'Color|'RGB(256|
|000009b0| 2c 32 35 36 2c 32 35 36 | 29 29 67 2e 64 72 61 77 |,256,256|))g.draw|
|000009c0| 6c 69 6e 65 28 77 69 64 | 74 68 2d 31 2c 20 31 2c |line(wid|th-1, 1,|
|000009d0| 20 77 69 64 74 68 2d 31 | 2c 20 68 65 69 67 68 74 | width-1|, height|
|000009e0| 2d 31 29 2a 67 2e 64 72 | 61 77 6c 69 6e 65 28 31 |-1)*g.dr|awline(1|
|000009f0| 2c 20 68 65 69 67 68 74 | 2d 31 2c 20 77 69 64 74 |, height|-1, widt|
|00000a00| 68 2d 31 2c 20 68 65 69 | 67 68 74 2d 31 29 00 1e |h-1, hei|ght-1)..|
|00000a10| 27 73 65 74 74 69 6e 67 | 20 66 6f 6e 74 20 74 6f |'setting| font to|
|00000a20| 20 64 6f 77 6e 20 70 6f | 73 69 74 69 6f 6e 18 67 | down po|sition.g|
|00000a30| 2e 66 6f 72 65 43 6f 6c | 6f 72 20 3d 20 74 65 78 |.foreCol|or = tex|
|00000a40| 74 41 63 74 69 76 65 15 | 67 2e 54 65 78 74 66 6f |tActive.|g.Textfo|
|00000a50| 6e 74 20 3d 20 54 65 78 | 74 46 6f 6e 74 15 67 2e |nt = Tex|tFont.g.|
|00000a60| 74 65 78 74 73 69 7a 65 | 20 3d 20 54 65 78 74 53 |textsize| = TextS|
|00000a70| 69 7a 65 00 39 27 73 65 | 74 20 64 6f 77 6e 20 74 |ize.9'se|t down t|
|00000a80| 65 78 74 20 78 2c 20 79 | 20 70 6f 73 69 74 69 6f |ext x, y| positio|
|00000a90| 6e 20 68 65 72 65 20 28 | 73 68 69 66 74 20 6e 6f |n here (|shift no|
|00000aa0| 72 6d 61 6c 20 32 20 70 | 69 78 65 6c 73 29 21 67 |rmal 2 p|ixels)!g|
|00000ab0| 2e 64 72 61 77 73 74 72 | 69 6e 67 20 63 61 70 74 |.drawstr|ing capt|
|00000ac0| 69 6f 6e 2c 20 37 2c 20 | 67 65 74 59 20 2b 20 32 |ion, 7, |getY + 2|
|00000ad0| 00 23 27 64 72 61 77 69 | 6e 67 20 70 69 63 74 75 |.#'drawi|ng pictu|
|00000ae0| 72 65 20 28 62 75 74 74 | 6f 6e 29 20 6f 6e 20 43 |re (butt|on) on C|
|00000af0| 61 6e 76 61 73 21 67 72 | 61 70 68 69 63 73 2e 64 |anvas!gr|aphics.d|
|00000b00| 72 61 77 50 69 63 74 75 | 72 65 20 62 75 66 66 65 |rawPictu|re buffe|
|00000b10| 72 2c 20 30 2c 20 30 07 | 45 6e 64 20 53 75 62 06 |r, 0, 0.|End Sub.|
|00000b20| 6e 6f 72 6d 61 6c 00 00 | 01 14 00 14 00 25 0c 53 |normal..|.....%.S|
|00000b30| 75 62 20 6e 6f 72 6d 61 | 6c 28 29 00 14 27 63 68 |ub norma|l()..'ch|
|00000b40| 65 63 6b 69 6e 67 20 69 | 66 20 61 63 74 69 76 65 |ecking i|f active|
|00000b50| 20 13 69 66 20 6e 6f 74 | 20 65 6e 61 62 6c 65 64 | .if not| enabled|
|00000b60| 20 74 68 65 6e 0d 45 6e | 61 62 6c 65 28 66 61 6c | then.En|able(fal|
|00000b70| 73 65 29 06 72 65 74 75 | 72 6e 06 65 6e 64 20 69 |se).retu|rn.end i|
|00000b80| 66 00 3b 27 77 68 65 6e | 20 62 75 74 74 6f 6e 20 |f.;'when| button |
|00000b90| 69 73 20 73 68 6f 77 6e | 20 69 6e 20 74 68 65 20 |is shown| in the |
|00000ba0| 6e 6f 72 6d 61 6c 20 73 | 74 61 74 65 2c 20 63 75 |normal s|tate, cu|
|00000bb0| 72 73 6f 72 20 69 73 20 | 6e 6f 72 6d 61 6c 15 61 |rsor is |normal.a|
|00000bc0| 70 70 2e 6d 6f 75 73 65 | 43 75 72 73 6f 72 20 3d |pp.mouse|Cursor =|
|00000bd0| 20 6e 69 6c 00 3c 27 64 | 72 61 77 69 6e 67 20 70 | nil.<'d|rawing p|
|00000be0| 69 63 74 75 72 65 20 6f | 66 66 2d 73 63 72 65 65 |icture o|ff-scree|
|00000bf0| 6e 20 62 65 66 6f 72 65 | 20 73 65 74 74 69 6e 67 |n before| setting|
|00000c00| 20 70 69 63 74 75 72 65 | 20 6f 6e 20 43 61 6e 76 | picture| on Canv|
|00000c10| 61 73 33 62 75 66 66 65 | 72 20 3d 20 6e 65 77 50 |as3buffe|r = newP|
|00000c20| 69 63 74 75 72 65 28 77 | 69 64 74 68 2c 20 68 65 |icture(w|idth, he|
|00000c30| 69 67 68 74 2c 20 73 63 | 72 65 65 6e 28 30 29 2e |ight, sc|reen(0).|
|00000c40| 64 65 70 74 68 29 13 67 | 20 3d 20 62 75 66 66 65 |depth).g| = buffe|
|00000c50| 72 2e 67 72 61 70 68 69 | 63 73 00 3c 27 66 69 6c |r.graphi|cs.<'fil|
|00000c60| 6c 69 6e 67 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |ling the| button |
|00000c70| 62 61 63 6b 67 72 6f 75 | 6e 64 20 77 69 74 68 20 |backgrou|nd with |
|00000c80| 63 75 72 72 65 6e 74 20 | 62 61 63 6b 67 72 6f 75 |current |backgrou|
|00000c90| 6e 64 20 63 6f 6c 6f 72 | 17 67 2e 66 6f 72 65 43 |nd color|.g.foreC|
|00000ca0| 6f 6c 6f 72 20 3d 20 62 | 61 63 6b 43 6f 6c 6f 72 |olor = b|ackColor|
|00000cb0| 1f 67 2e 66 69 6c 6c 52 | 65 63 74 28 30 2c 20 30 |.g.fillR|ect(0, 0|
|00000cc0| 2c 20 77 69 64 74 68 2c | 20 68 65 69 67 68 74 29 |, width,| height)|
|00000cd0| 00 0e 27 64 72 61 77 69 | 6e 67 20 74 65 78 74 20 |..'drawi|ng text |
|00000ce0| 18 67 2e 66 6f 72 65 63 | 6f 6c 6f 72 20 3d 20 74 |.g.forec|olor = t|
|00000cf0| 65 78 74 41 63 74 69 76 | 65 15 67 2e 54 65 78 74 |extActiv|e.g.Text|
|00000d00| 66 6f 6e 74 20 3d 20 54 | 65 78 74 46 6f 6e 74 15 |font = T|extFont.|
|00000d10| 67 2e 74 65 78 74 73 69 | 7a 65 20 3d 20 54 65 78 |g.textsi|ze = Tex|
|00000d20| 74 53 69 7a 65 23 27 73 | 65 74 20 6e 6f 72 6d 61 |tSize#'s|et norma|
|00000d30| 6c 20 74 65 78 74 20 78 | 2c 20 79 20 70 6f 73 69 |l text x|, y posi|
|00000d40| 74 69 6f 6e 20 68 65 72 | 65 00 12 27 4f 75 74 6c |tion her|e..'Outl|
|00000d50| 6f 6f 6b 20 73 74 61 6e | 64 61 72 64 73 19 27 20 |ook stan|dards.' |
|00000d60| 78 20 77 69 74 68 20 69 | 63 6f 6e 20 2d 20 32 34 |x with i|con - 24|
|00000d70| 20 70 69 78 65 6c 73 18 | 27 79 20 77 69 74 68 20 | pixels.|'y with |
|00000d80| 69 63 6f 6e 20 2d 20 31 | 35 20 70 69 78 65 6c 73 |icon - 1|5 pixels|
|00000d90| 24 27 36 20 70 69 78 65 | 6c 73 20 62 69 67 67 65 |$'6 pixe|ls bigge|
|00000da0| 72 20 74 68 65 6e 20 77 | 69 64 74 68 20 6f 6e 20 |r then w|idth on |
|00000db0| 72 69 67 68 74 1c 27 32 | 33 20 70 69 78 65 6c 73 |right.'2|3 pixels|
|00000dc0| 20 77 69 74 68 20 69 63 | 6f 6e 20 6f 6e 20 6c 65 | with ic|on on le|
|00000dd0| 66 74 12 27 36 20 77 69 | 74 68 6f 75 74 20 6f 6e |ft.'6 wi|thout on|
|00000de0| 20 6c 65 66 74 00 1d 67 | 2e 64 72 61 77 73 74 72 | left..g|.drawstr|
|00000df0| 69 6e 67 20 63 61 70 74 | 69 6f 6e 2c 20 35 2c 20 |ing capt|ion, 5, |
|00000e00| 67 65 74 59 00 23 27 64 | 72 61 77 69 6e 67 20 70 |getY.#'d|rawing p|
|00000e10| 69 63 74 75 72 65 20 28 | 62 75 74 74 6f 6e 29 20 |icture (|button) |
|00000e20| 6f 6e 20 43 61 6e 76 61 | 73 21 67 72 61 70 68 69 |on Canva|s!graphi|
|00000e30| 63 73 2e 64 72 61 77 50 | 69 63 74 75 72 65 20 62 |cs.drawP|icture b|
|00000e40| 75 66 66 65 72 2c 20 30 | 2c 20 30 07 45 6e 64 20 |uffer, 0|, 0.End |
|00000e50| 53 75 62 09 67 65 74 53 | 57 69 64 74 68 00 07 49 |Sub.getS|Width..I|
|00000e60| 6e 74 65 67 65 72 00 03 | 00 03 00 09 1f 46 75 6e |nteger..|.....Fun|
|00000e70| 63 74 69 6f 6e 20 67 65 | 74 53 57 69 64 74 68 28 |ction ge|tSWidth(|
|00000e80| 29 20 41 73 20 49 6e 74 | 65 67 65 72 00 38 27 67 |) As Int|eger.8'g|
|00000e90| 65 74 74 69 6e 67 20 73 | 74 72 69 6e 67 20 77 69 |etting s|tring wi|
|00000ea0| 64 74 68 20 77 69 74 68 | 20 36 20 70 69 78 65 6c |dth with| 6 pixel|
|00000eb0| 73 20 6f 6e 20 65 61 63 | 68 20 73 69 64 65 20 6f |s on eac|h side o|
|00000ec0| 66 20 74 65 78 74 1c 67 | 72 61 70 68 69 63 73 2e |f text.g|raphics.|
|00000ed0| 54 65 78 74 66 6f 6e 74 | 20 3d 20 54 65 78 74 46 |Textfont| = TextF|
|00000ee0| 6f 6e 74 1c 67 72 61 70 | 68 69 63 73 2e 74 65 78 |ont.grap|hics.tex|
|00000ef0| 74 73 69 7a 65 20 3d 20 | 54 65 78 74 53 69 7a 65 |tsize = |TextSize|
|00000f00| 00 1c 27 64 6f 6e 27 74 | 20 61 73 6b 20 77 68 79 |..'don't| ask why|
|00000f10| 20 74 68 69 73 20 69 73 | 6e 27 74 20 31 32 2a 72 | this is|n't 12*r|
|00000f20| 65 74 75 72 6e 20 67 72 | 61 70 68 69 63 73 2e 73 |eturn gr|aphics.s|
|00000f30| 74 72 69 6e 67 57 69 64 | 74 68 28 63 61 70 74 69 |tringWid|th(capti|
|00000f40| 6f 6e 29 20 2b 20 31 31 | 20 0c 45 6e 64 20 46 75 |on) + 11| .End Fu|
|00000f50| 6e 63 74 69 6f 6e 04 67 | 65 74 59 00 07 49 6e 74 |nction.g|etY..Int|
|00000f60| 65 67 65 72 01 12 00 12 | 00 14 1a 46 75 6e 63 74 |eger....|...Funct|
|00000f70| 69 6f 6e 20 67 65 74 59 | 28 29 20 41 73 20 49 6e |ion getY|() As In|
|00000f80| 74 65 67 65 72 3e 27 72 | 65 74 75 72 6e 73 20 74 |teger>'r|eturns t|
|00000f90| 68 65 20 63 6f 72 72 65 | 63 74 20 59 20 64 69 73 |he corre|ct Y dis|
|00000fa0| 74 61 6e 63 65 20 66 6f | 72 20 74 65 78 74 20 74 |tance fo|r text t|
|00000fb0| 6f 20 62 65 20 69 6e 20 | 74 68 65 20 63 6f 72 72 |o be in |the corr|
|00000fc0| 65 63 74 20 1d 27 70 6f | 73 69 74 69 6f 6e 20 6e |ect .'po|sition n|
|00000fd0| 6f 20 6d 61 74 74 65 72 | 20 77 68 61 74 20 66 6f |o matter| what fo|
|00000fe0| 6e 74 00 10 64 69 6d 20 | 70 20 61 73 20 70 69 63 |nt..dim |p as pic|
|00000ff0| 74 75 72 65 11 64 69 6d | 20 72 20 61 73 20 67 72 |ture.dim| r as gr|
|00001000| 61 70 68 69 63 73 00 18 | 70 3d 20 6e 65 77 50 69 |aphics..|p= newPi|
|00001010| 63 74 75 72 65 28 20 31 | 2c 20 31 2c 20 31 20 29 |cture( 1|, 1, 1 )|
|00001020| 0e 72 20 3d 20 70 2e 67 | 72 61 70 68 69 63 73 00 |.r = p.g|raphics.|
|00001030| 15 72 2e 74 65 78 74 46 | 6f 6e 74 20 3d 20 74 65 |.r.textF|ont = te|
|00001040| 78 74 46 6f 6e 74 15 72 | 2e 74 65 78 74 53 69 7a |xtFont.r|.textSiz|
|00001050| 65 20 3d 20 74 65 78 74 | 53 69 7a 65 00 1a 69 66 |e = text|Size..if|
|00001060| 20 61 75 74 6f 43 65 6e | 74 65 72 56 20 3d 20 74 | autoCen|terV = t|
|00001070| 72 75 65 20 74 68 65 6e | 87 01 72 65 74 75 72 6e |rue then|..return|
|00001080| 20 28 20 28 20 68 65 69 | 67 68 74 20 2d 20 72 2e | ( ( hei|ght - r.|
|00001090| 74 65 78 74 48 65 69 67 | 68 74 20 20 29 20 2f 20 |textHeig|ht ) / |
|000010a0| 32 20 29 20 2b 20 28 20 | 72 2e 74 65 78 74 48 65 |2 ) + ( |r.textHe|
|000010b0| 69 67 68 74 20 2a 20 30 | 2e 37 35 20 29 20 2b 20 |ight * 0|.75 ) + |
|000010c0| 31 04 65 6c 73 65 09 72 | 65 74 75 72 6e 20 31 35 |1.else.r|eturn 15|
|000010d0| 06 65 6e 64 20 69 66 00 | 0c 45 6e 64 20 46 75 6e |.end if.|.End Fun|
|000010e0| 63 74 69 6f 6e 09 73 65 | 74 43 6f 6c 6f 72 73 00 |ction.se|tColors.|
|000010f0| 00 00 03 00 03 00 35 0f | 53 75 62 20 73 65 74 43 |......5.|Sub setC|
|00001100| 6f 6c 6f 72 73 28 29 14 | 64 69 6d 20 72 20 61 73 |olors().|dim r as|
|00001110| 20 6d 65 6d 6f 72 79 42 | 6c 6f 63 6b 20 64 69 6d | memoryB|lock dim|
|00001120| 20 69 2c 20 64 65 70 74 | 68 2c 20 76 65 72 73 69 | i, dept|h, versi|
|00001130| 6f 6e 20 61 73 20 69 6e | 74 65 67 65 72 00 27 69 |on as in|teger.'i|
|00001140| 66 20 73 79 73 74 65 6d | 2e 67 65 73 74 61 6c 74 |f system|.gestalt|
|00001150| 28 22 73 79 73 76 22 2c | 20 76 65 72 73 69 6f 6e |("sysv",| version|
|00001160| 29 20 74 68 65 6e 00 16 | 69 66 20 76 65 72 73 69 |) then..|if versi|
|00001170| 6f 6e 20 3c 20 32 31 32 | 38 20 74 68 65 6e 10 53 |on < 212|8 then.S|
|00001180| 74 61 6e 64 61 72 64 43 | 6f 6c 6f 72 73 28 29 06 |tandardC|olors().|
|00001190| 72 65 74 75 72 6e 06 65 | 6e 64 20 69 66 04 65 6c |return.e|nd if.el|
|000011a0| 73 65 10 53 74 61 6e 64 | 61 72 64 43 6f 6c 6f 72 |se.Stand|ardColor|
|000011b0| 73 28 29 06 72 65 74 75 | 72 6e 87 01 65 6e 64 20 |s().retu|rn..end |
|000011c0| 69 66 20 27 63 68 65 63 | 6b 20 69 66 20 72 75 6e |if 'chec|k if run|
|000011d0| 6e 69 6e 67 20 38 2e 35 | 20 6f 72 20 67 72 65 61 |ning 8.5| or grea|
|000011e0| 74 65 72 2c 20 69 66 20 | 6e 6f 74 2c 20 64 72 61 |ter, if |not, dra|
|000011f0| 77 69 6e 67 20 6e 6f 72 | 6d 61 6c 20 62 75 74 74 |wing nor|mal butt|
|00001200| 6f 6e 73 00 95 02 44 65 | 63 6c 61 72 65 20 46 75 |ons...De|clare Fu|
|00001210| 6e 63 74 69 6f 6e 20 47 | 65 74 54 68 65 6d 65 42 |nction G|etThemeB|
|00001220| 72 75 73 68 41 73 43 6f | 6c 6f 72 20 4c 69 62 20 |rushAsCo|lor Lib |
|00001230| 22 41 70 70 65 61 72 61 | 6e 63 65 4c 69 62 22 20 |"Appeara|nceLib" |
|00001240| 28 69 6e 42 72 75 73 68 | 20 61 73 20 49 6e 74 65 |(inBrush| as Inte|
|00001250| 67 65 72 2c 20 69 6e 44 | 65 70 74 68 20 61 73 20 |ger, inD|epth as |
|00001260| 49 6e 74 65 67 65 72 2c | 20 69 6e 43 6f 6c 6f 72 |Integer,| inColor|
|00001270| 44 65 76 20 61 73 20 49 | 6e 74 65 67 65 72 2c 20 |Dev as I|nteger, |
|00001280| 6f 75 74 43 6f 6c 6f 72 | 20 61 73 20 50 74 72 29 |outColor| as Ptr)|
|00001290| 20 61 73 20 49 6e 74 65 | 67 65 72 92 02 44 65 63 | as Inte|ger..Dec|
|000012a0| 6c 61 72 65 20 46 75 6e | 63 74 69 6f 6e 20 47 65 |lare Fun|ction Ge|
|000012b0| 74 54 68 65 6d 65 54 65 | 78 74 43 6f 6c 6f 72 20 |tThemeTe|xtColor |
|000012c0| 4c 69 62 20 22 41 70 70 | 65 61 72 61 6e 63 65 4c |Lib "App|earanceL|
|000012d0| 69 62 22 20 28 69 6e 43 | 6f 6c 6f 72 20 61 73 20 |ib" (inC|olor as |
|000012e0| 49 6e 74 65 67 65 72 2c | 20 69 6e 44 65 70 74 68 |Integer,| inDepth|
|000012f0| 20 61 73 20 49 6e 74 65 | 67 65 72 2c 20 69 6e 43 | as Inte|ger, inC|
|00001300| 6f 6c 6f 72 44 65 76 20 | 61 73 20 49 6e 74 65 67 |olorDev |as Integ|
|00001310| 65 72 2c 20 6f 75 74 43 | 6f 6c 6f 72 20 61 73 20 |er, outC|olor as |
|00001320| 50 74 72 29 20 61 73 20 | 49 6e 74 65 67 65 72 00 |Ptr) as |Integer.|
|00001330| 15 72 20 3d 20 6e 65 77 | 4d 65 6d 6f 72 79 42 6c |.r = new|MemoryBl|
|00001340| 6f 63 6b 28 39 29 17 64 | 65 70 74 68 20 3d 20 73 |ock(9).d|epth = s|
|00001350| 63 72 65 65 6e 28 30 29 | 2e 64 65 70 74 68 00 18 |creen(0)|.depth..|
|00001360| 27 67 65 74 74 69 6e 67 | 20 62 65 76 65 6c 20 63 |'getting| bevel c|
|00001370| 6f 6c 6f 72 73 20 20 20 | 29 69 20 3d 20 47 65 74 |olors |)i = Get|
|00001380| 54 68 65 6d 65 42 72 75 | 73 68 41 73 43 6f 6c 6f |ThemeBru|shAsColo|
|00001390| 72 28 34 34 2c 20 64 65 | 70 74 68 2c 20 31 2c 20 |r(44, de|pth, 1, |
|000013a0| 72 29 31 6c 69 67 68 74 | 42 65 76 65 6c 20 3d 20 |r)1light|Bevel = |
|000013b0| 72 67 62 28 72 2e 62 79 | 74 65 28 30 29 2c 20 72 |rgb(r.by|te(0), r|
|000013c0| 2e 62 79 74 65 28 32 29 | 2c 20 72 2e 62 79 74 65 |.byte(2)|, r.byte|
|000013d0| 28 34 29 29 00 2c 69 20 | 3d 20 47 65 74 54 68 65 |(4)).,i |= GetThe|
|000013e0| 6d 65 42 72 75 73 68 41 | 73 43 6f 6c 6f 72 28 34 |meBrushA|sColor(4|
|000013f0| 35 2c 20 64 65 70 74 68 | 2c 20 31 2c 20 72 29 20 |5, depth|, 1, r) |
|00001400| 20 20 30 64 61 72 6b 42 | 65 76 65 6c 20 3d 20 72 | 0darkB|evel = r|
|00001410| 67 62 28 72 2e 62 79 74 | 65 28 30 29 2c 20 72 2e |gb(r.byt|e(0), r.|
|00001420| 62 79 74 65 28 32 29 2c | 20 72 2e 62 79 74 65 28 |byte(2),| r.byte(|
|00001430| 34 29 29 00 1a 27 67 65 | 74 74 69 6e 67 20 61 63 |4))..'ge|tting ac|
|00001440| 74 69 76 65 20 74 65 78 | 74 20 63 6f 6c 6f 72 26 |tive tex|t color&|
|00001450| 69 20 3d 20 47 65 74 54 | 68 65 6d 65 54 65 78 74 |i = GetT|hemeText|
|00001460| 43 6f 6c 6f 72 28 31 32 | 2c 20 64 65 70 74 68 2c |Color(12|, depth,|
|00001470| 20 31 2c 20 72 29 30 74 | 65 78 74 41 63 74 69 76 | 1, r)0t|extActiv|
|00001480| 65 20 3d 72 67 62 28 72 | 2e 62 79 74 65 28 30 29 |e =rgb(r|.byte(0)|
|00001490| 2c 20 72 2e 62 79 74 65 | 28 32 29 2c 20 72 2e 62 |, r.byte|(2), r.b|
|000014a0| 79 74 65 28 34 29 29 00 | 1c 27 67 65 74 74 69 6e |yte(4)).|.'gettin|
|000014b0| 67 20 64 69 73 61 62 6c | 65 64 20 63 6f 6c 6f 72 |g disabl|ed color|
|000014c0| 20 74 65 78 74 26 69 20 | 3d 20 47 65 74 54 68 65 | text&i |= GetThe|
|000014d0| 6d 65 54 65 78 74 43 6f | 6c 6f 72 28 31 33 2c 20 |meTextCo|lor(13, |
|000014e0| 64 65 70 74 68 2c 20 31 | 2c 20 72 29 33 74 65 78 |depth, 1|, r)3tex|
|000014f0| 74 44 69 73 61 62 6c 65 | 64 20 3d 20 72 67 62 28 |tDisable|d = rgb(|
|00001500| 72 2e 62 79 74 65 28 30 | 29 2c 20 72 2e 62 79 74 |r.byte(0|), r.byt|
|00001510| 65 28 32 29 2c 20 72 2e | 62 79 74 65 28 34 29 29 |e(2), r.|byte(4))|
|00001520| 00 19 27 67 65 74 74 69 | 6e 67 20 62 61 63 6b 67 |..'getti|ng backg|
|00001530| 72 6f 75 6e 64 20 63 6f | 6c 6f 72 28 69 20 3d 20 |round co|lor(i = |
|00001540| 47 65 74 54 68 65 6d 65 | 42 72 75 73 68 41 73 43 |GetTheme|BrushAsC|
|00001550| 6f 6c 6f 72 28 31 2c 20 | 64 65 70 74 68 2c 20 31 |olor(1, |depth, 1|
|00001560| 2c 20 72 29 30 42 61 63 | 6b 43 6f 6c 6f 72 20 3d |, r)0Bac|kColor =|
|00001570| 20 72 67 62 28 72 2e 62 | 79 74 65 28 30 29 2c 20 | rgb(r.b|yte(0), |
|00001580| 72 2e 62 79 74 65 28 32 | 29 2c 20 72 2e 62 79 74 |r.byte(2|), r.byt|
|00001590| 65 28 34 29 29 00 22 27 | 67 65 74 74 69 6e 67 20 |e(4))."'|getting |
|000015a0| 64 69 73 61 62 6c 65 64 | 20 62 61 63 6b 67 72 6f |disabled| backgro|
|000015b0| 75 6e 64 20 63 6f 6c 6f | 72 28 69 20 3d 20 47 65 |und colo|r(i = Ge|
|000015c0| 74 54 68 65 6d 65 42 72 | 75 73 68 41 73 43 6f 6c |tThemeBr|ushAsCol|
|000015d0| 6f 72 28 32 2c 20 64 65 | 70 74 68 2c 20 31 2c 20 |or(2, de|pth, 1, |
|000015e0| 72 29 38 42 61 63 6b 43 | 6f 6c 6f 72 44 69 73 61 |r)8BackC|olorDisa|
|000015f0| 62 6c 65 64 20 3d 20 72 | 67 62 28 72 2e 62 79 74 |bled = r|gb(r.byt|
|00001600| 65 28 30 29 2c 20 72 2e | 62 79 74 65 28 32 29 2c |e(0), r.|byte(2),|
|00001610| 20 72 2e 62 79 74 65 28 | 34 29 29 00 0e 69 66 20 | r.byte(|4))..if |
|00001620| 69 20 3c 3e 20 30 20 74 | 68 65 6e 80 01 6d 73 67 |i <> 0 t|hen..msg|
|00001630| 42 6f 78 20 22 45 72 72 | 6f 72 20 69 6e 20 4e 69 |Box "Err|or in Ni|
|00001640| 6c 4f 62 6a 65 63 74 20 | 4d 53 43 61 6e 76 61 73 |lObject |MSCanvas|
|00001650| 20 63 6c 61 73 73 20 77 | 68 69 6c 65 20 67 65 74 | class w|hile get|
|00001660| 74 69 6e 67 20 63 6f 6c | 6f 72 73 2e 22 04 71 75 |ting col|ors.".qu|
|00001670| 69 74 06 65 6e 64 20 69 | 66 00 13 65 78 63 65 70 |it.end i|f..excep|
|00001680| 74 69 6f 6e 20 6e 69 6c | 4f 62 6a 65 63 74 80 01 |tion nil|Object..|
|00001690| 6d 73 67 42 6f 78 20 22 | 45 72 72 6f 72 20 69 6e |msgBox "|Error in|
|000016a0| 20 4e 69 6c 4f 62 6a 65 | 63 74 20 4d 53 43 61 6e | NilObje|ct MSCan|
|000016b0| 76 61 73 20 63 6c 61 73 | 73 20 77 68 69 6c 65 20 |vas clas|s while |
|000016c0| 67 65 74 74 69 6e 67 20 | 63 6f 6c 6f 72 73 2e 22 |getting |colors."|
|000016d0| 04 71 75 69 74 07 45 6e | 64 20 53 75 62 0e 53 74 |.quit.En|d Sub.St|
|000016e0| 61 6e 64 61 72 64 43 6f | 6c 6f 72 73 00 00 00 09 |andardCo|lors....|
|000016f0| 00 09 00 0b 14 53 75 62 | 20 53 74 61 6e 64 61 72 |.....Sub| Standar|
|00001700| 64 43 6f 6c 6f 72 73 28 | 29 3d 27 73 65 74 74 69 |dColors(|)='setti|
|00001710| 6e 67 20 76 61 72 73 20 | 74 6f 20 73 74 61 6e 64 |ng vars |to stand|
|00001720| 61 72 64 20 63 6f 6c 6f | 72 73 20 69 66 20 6e 6f |ard colo|rs if no|
|00001730| 74 20 72 75 6e 6e 69 6e | 67 20 38 2e 35 20 6f 72 |t runnin|g 8.5 or|
|00001740| 20 68 69 67 68 65 72 00 | 1d 6c 69 67 68 74 42 65 | higher.|.lightBe|
|00001750| 76 65 6c 20 3d 20 72 67 | 62 28 32 35 36 2c 32 35 |vel = rg|b(256,25|
|00001760| 36 2c 32 35 36 29 1c 64 | 61 72 6b 42 65 76 65 6c |6,256).d|arkBevel|
|00001770| 20 3d 20 72 67 62 28 31 | 33 36 2c 31 33 36 2c 31 | = rgb(1|36,136,1|
|00001780| 33 36 29 16 74 65 78 74 | 41 63 74 69 76 65 20 3d |36).text|Active =|
|00001790| 20 74 65 78 74 43 6f 6c | 6f 72 21 74 65 78 74 44 | textCol|or!textD|
|000017a0| 69 73 61 62 6c 65 64 20 | 3d 20 72 67 62 28 31 31 |isabled |= rgb(11|
|000017b0| 35 2c 20 31 31 35 2c 20 | 31 31 35 29 15 42 61 63 |5, 115, |115).Bac|
|000017c0| 6b 43 6f 6c 6f 72 20 3d | 20 66 69 6c 6c 43 6f 6c |kColor =| fillCol|
|000017d0| 6f 72 1d 42 61 63 6b 43 | 6f 6c 6f 72 44 69 73 61 |or.BackC|olorDisa|
|000017e0| 62 6c 65 64 20 3d 20 66 | 69 6c 6c 43 6f 6c 6f 72 |bled = f|illColor|
|000017f0| 00 07 45 6e 64 20 53 75 | 62 02 06 41 63 74 69 6f |..End Su|b..Actio|
|00001800| 6e 00 00 04 4f 70 65 6e | 00 00 09 05 43 6c 6f 73 |n...Open|....Clos|
|00001810| 65 01 00 01 00 03 0b 53 | 75 62 20 43 6c 6f 73 65 |e......S|ub Close|
|00001820| 28 29 00 07 45 6e 64 20 | 53 75 62 04 4f 70 65 6e |()..End |Sub.Open|
|00001830| 04 00 04 00 07 0a 53 75 | 62 20 4f 70 65 6e 28 29 |......Su|b Open()|
|00001840| 00 0b 73 65 74 43 6f 6c | 6f 72 73 28 29 00 06 4f |..setCol|ors()..O|
|00001850| 70 65 6e 28 29 00 07 45 | 6e 64 20 53 75 62 07 4d |pen()..E|nd Sub.M|
|00001860| 6f 75 73 65 55 70 02 17 | 02 17 25 27 53 75 62 20 |ouseUp..|..%'Sub |
|00001870| 4d 6f 75 73 65 55 70 28 | 58 20 41 73 20 49 6e 74 |MouseUp(|X As Int|
|00001880| 65 67 65 72 2c 20 59 20 | 41 73 20 49 6e 74 65 67 |eger, Y |As Integ|
|00001890| 65 72 29 1b 69 66 20 58 | 20 3c 20 77 69 64 74 68 |er).if X| < width|
|000018a0| 20 61 6e 64 20 58 20 3e | 20 30 20 74 68 65 6e 1c | and X >| 0 then.|
|000018b0| 69 66 20 59 20 3c 20 68 | 65 69 67 68 74 20 61 6e |if Y < h|eight an|
|000018c0| 64 20 59 20 3e 20 30 20 | 74 68 65 6e 8b 01 27 69 |d Y > 0 |then..'i|
|000018d0| 66 20 69 6e 73 69 64 65 | 20 74 68 65 20 62 75 74 |f inside| the but|
|000018e0| 74 6f 6e 20 58 20 26 20 | 59 20 76 61 6c 75 65 73 |ton X & |Y values|
|000018f0| 20 77 68 65 6e 20 6d 6f | 75 73 65 20 75 70 20 66 | when mo|use up f|
|00001900| 69 72 65 20 62 75 74 74 | 6f 6e 20 61 63 74 69 6f |ire butt|on actio|
|00001910| 6e 20 68 65 72 65 20 3d | 29 00 8d 01 27 44 65 70 |n here =|)...'Dep|
|00001920| 65 6e 64 69 6e 67 20 6f | 6e 20 74 68 65 20 61 63 |ending o|n the ac|
|00001930| 74 69 6f 6e 20 79 6f 75 | 20 6d 61 79 20 4e 4f 54 |tion you| may NOT|
|00001940| 20 6e 65 65 64 20 74 6f | 20 73 77 69 74 63 68 20 | need to| switch |
|00001950| 74 68 65 20 61 70 70 20 | 63 75 72 73 6f 72 20 62 |the app |cursor b|
|00001960| 61 63 6b 20 74 6f 20 61 | 20 0e 27 70 6f 69 6e 74 |ack to a| .'point|
|00001970| 65 72 20 68 65 72 65 2e | 15 61 70 70 2e 6d 6f 75 |er here.|.app.mou|
|00001980| 73 65 43 75 72 73 6f 72 | 20 3d 20 6e 69 6c 14 27 |seCursor| = nil.'|
|00001990| 66 69 72 69 6e 67 20 61 | 63 74 69 6f 6e 20 45 76 |firing a|ction Ev|
|000019a0| 65 6e 74 06 61 63 74 69 | 6f 6e 00 84 01 27 4d 6f |ent.acti|on...'Mo|
|000019b0| 75 73 65 20 69 73 20 73 | 74 69 6c 6c 20 6f 76 65 |use is s|till ove|
|000019c0| 72 20 74 68 65 20 62 75 | 74 74 6f 6e 20 61 74 20 |r the bu|tton at |
|000019d0| 74 68 69 73 20 70 6f 69 | 6e 74 20 73 6f 20 66 69 |this poi|nt so fi|
|000019e0| 72 69 6e 67 20 74 68 65 | 20 75 70 20 73 74 61 74 |ring the| up stat|
|000019f0| 65 09 27 75 70 20 73 74 | 61 74 65 09 73 74 61 74 |e.'up st|ate.stat|
|00001a00| 65 20 3d 20 31 04 75 70 | 28 29 00 94 01 27 53 65 |e = 1.up|()...'Se|
|00001a10| 74 74 69 6e 67 20 74 68 | 65 20 69 6e 44 6f 77 6e |tting th|e inDown|
|00001a20| 20 70 72 6f 70 65 72 74 | 79 20 74 6f 20 66 61 6c | propert|y to fal|
|00001a30| 73 65 20 62 65 63 61 75 | 73 65 20 74 68 65 20 75 |se becau|se the u|
|00001a40| 73 65 72 20 68 61 73 20 | 72 65 6c 65 61 73 65 64 |ser has |released|
|00001a50| 20 74 68 65 20 6d 6f 75 | 73 65 20 62 75 74 74 6f | the mou|se butto|
|00001a60| 6e 0e 69 6e 44 6f 77 6e | 20 3d 20 66 61 6c 73 65 |n.inDown| = false|
|00001a70| 06 72 65 74 75 72 6e 06 | 65 6e 64 20 69 66 06 65 |.return.|end if.e|
|00001a80| 6e 64 20 69 66 06 65 6e | 64 20 69 66 00 92 01 27 |nd if.en|d if...'|
|00001a90| 49 66 20 74 68 65 20 75 | 73 65 72 20 6c 65 74 73 |If the u|ser lets|
|00001aa0| 20 74 68 65 20 6d 6f 75 | 73 65 20 6f 66 20 77 68 | the mou|se of wh|
|00001ab0| 65 6e 20 74 68 65 20 63 | 75 72 73 6f 72 20 69 73 |en the c|ursor is|
|00001ac0| 20 6f 75 74 20 6f 66 20 | 74 68 65 20 62 75 74 74 | out of |the butt|
|00001ad0| 6f 6e 27 73 20 58 20 26 | 20 59 20 76 61 6c 75 65 |on's X &| Y value|
|00001ae0| 73 2c 27 74 68 65 6e 20 | 73 65 74 74 69 6e 67 20 |s,'then |setting |
|00001af0| 74 68 65 20 62 75 74 74 | 6f 6e 20 74 6f 20 74 68 |the butt|on to th|
|00001b00| 65 20 6e 6f 72 6d 61 6c | 20 73 74 61 74 65 00 0d |e normal| state..|
|00001b10| 27 6e 6f 72 6d 61 6c 20 | 73 74 61 74 65 09 73 74 |'normal |state.st|
|00001b20| 61 74 65 20 3d 20 30 08 | 6e 6f 72 6d 61 6c 28 29 |ate = 0.|normal()|
|00001b30| 00 94 01 27 53 65 74 74 | 69 6e 67 20 74 68 65 20 |...'Sett|ing the |
|00001b40| 69 6e 44 6f 77 6e 20 70 | 72 6f 70 65 72 74 79 20 |inDown p|roperty |
|00001b50| 74 6f 20 66 61 6c 73 65 | 20 62 65 63 61 75 73 65 |to false| because|
|00001b60| 20 74 68 65 20 75 73 65 | 72 20 68 61 73 20 72 65 | the use|r has re|
|00001b70| 6c 65 61 73 65 64 20 74 | 68 65 20 6d 6f 75 73 65 |leased t|he mouse|
|00001b80| 20 62 75 74 74 6f 6e 0e | 69 6e 44 6f 77 6e 20 3d | button.|inDown =|
|00001b90| 20 66 61 6c 73 65 00 27 | 27 73 77 69 74 63 68 69 | false.'|'switchi|
|00001ba0| 6e 67 20 74 68 65 20 63 | 75 72 73 6f 72 20 62 61 |ng the c|ursor ba|
|00001bb0| 63 6b 20 74 6f 20 61 6e | 20 61 72 72 6f 77 20 11 |ck to an| arrow .|
|00001bc0| 6d 6f 75 73 65 63 75 72 | 73 6f 72 20 3d 20 6e 69 |mousecur|sor = ni|
|00001bd0| 6c 00 07 45 6e 64 20 53 | 75 62 05 50 61 69 6e 74 |l..End S|ub.Paint|
|00001be0| 03 0b 03 0b 13 18 53 75 | 62 20 50 61 69 6e 74 28 |......Su|b Paint(|
|00001bf0| 67 20 41 73 20 47 72 61 | 70 68 69 63 73 29 00 26 |g As Gra|phics).&|
|00001c00| 27 64 72 61 77 69 6e 67 | 20 62 75 74 74 6f 6e 73 |'drawing| buttons|
|00001c10| 20 66 6f 72 20 74 68 65 | 20 63 6f 72 72 65 63 74 | for the| correct|
|00001c20| 20 73 74 61 74 65 0b 73 | 65 74 43 6f 6c 6f 72 73 | state.s|etColors|
|00001c30| 28 29 00 11 69 66 20 73 | 74 61 74 65 20 3d 20 30 |()..if s|tate = 0|
|00001c40| 20 74 68 65 6e 0d 27 6e | 6f 72 6d 61 6c 20 73 74 | then.'n|ormal st|
|00001c50| 61 74 65 08 6e 6f 72 6d | 61 6c 28 29 00 15 65 6c |ate.norm|al()..el|
|00001c60| 73 65 69 66 20 73 74 61 | 74 65 20 3d 20 31 20 74 |seif sta|te = 1 t|
|00001c70| 68 65 6e 09 27 75 70 20 | 73 74 61 74 65 04 75 70 |hen.'up |state.up|
|00001c80| 28 29 00 15 65 6c 73 65 | 69 66 20 73 74 61 74 65 |()..else|if state|
|00001c90| 20 3d 20 32 20 74 68 65 | 6e 0b 27 64 6f 77 6e 20 | = 2 the|n.'down |
|00001ca0| 73 74 61 74 65 06 64 6f | 77 6e 28 29 06 65 6e 64 |state.do|wn().end|
|00001cb0| 20 69 66 00 07 45 6e 64 | 20 53 75 62 09 4d 6f 75 | if..End| Sub.Mou|
|00001cc0| 73 65 45 78 69 74 0c 00 | 0c 00 10 0f 53 75 62 20 |seExit..|....Sub |
|00001cd0| 4d 6f 75 73 65 45 78 69 | 74 28 29 92 01 27 49 66 |MouseExi|t()..'If|
|00001ce0| 20 74 68 65 20 75 73 65 | 72 20 69 73 20 64 72 61 | the use|r is dra|
|00001cf0| 67 67 69 6e 67 20 6f 66 | 66 20 74 68 65 20 62 75 |gging of|f the bu|
|00001d00| 74 74 6f 6e 20 77 68 65 | 6e 20 74 68 65 79 20 65 |tton whe|n they e|
|00001d10| 78 69 74 20 69 74 20 74 | 68 65 20 69 6e 44 6f 77 |xit it t|he inDow|
|00001d20| 6e 20 70 72 6f 70 65 72 | 74 79 20 77 69 6c 6c 2d |n proper|ty will-|
|00001d30| 27 62 65 20 74 72 75 65 | 2e 20 20 46 69 72 65 73 |'be true|. Fires|
|00001d40| 20 74 68 65 20 75 70 20 | 73 74 61 74 65 20 6f 66 | the up |state of|
|00001d50| 20 74 68 65 20 62 75 74 | 74 6f 6e 2e 20 2a 27 45 | the but|ton. *'E|
|00001d60| 6c 73 65 20 66 69 72 65 | 20 74 68 65 20 6e 6f 72 |lse fire| the nor|
|00001d70| 6d 61 6c 20 73 74 61 74 | 65 20 6f 66 20 74 68 65 |mal stat|e of the|
|00001d80| 20 62 75 74 74 6f 6e 2e | 00 16 69 66 20 69 6e 44 | button.|..if inD|
|00001d90| 6f 77 6e 20 3d 20 66 61 | 6c 73 65 20 74 68 65 6e |own = fa|lse then|
|00001da0| 0d 27 6e 6f 72 6d 61 6c | 20 73 74 61 74 65 09 73 |.'normal| state.s|
|00001db0| 74 61 74 65 20 3d 20 30 | 08 6e 6f 72 6d 61 6c 28 |tate = 0|.normal(|
|00001dc0| 29 04 65 6c 73 65 09 27 | 75 70 20 73 74 61 74 65 |).else.'|up state|
|00001dd0| 09 73 74 61 74 65 20 3d | 20 31 04 75 70 28 29 06 |.state =| 1.up().|
|00001de0| 65 6e 64 20 69 66 00 07 | 45 6e 64 20 53 75 62 0a |end if..|End Sub.|
|00001df0| 4d 6f 75 73 65 45 6e 74 | 65 72 0c 00 0c 00 10 10 |MouseEnt|er......|
|00001e00| 53 75 62 20 4d 6f 75 73 | 65 45 6e 74 65 72 28 29 |Sub Mous|eEnter()|
|00001e10| 8e 01 27 49 66 20 74 68 | 65 20 69 6e 44 6f 77 6e |..'If th|e inDown|
|00001e20| 20 50 72 6f 70 65 72 74 | 79 20 69 73 20 74 72 75 | Propert|y is tru|
|00001e30| 65 20 61 6e 64 20 74 68 | 65 20 73 79 73 74 65 6d |e and th|e system|
|00001e40| 2e 6d 6f 75 73 65 64 6f | 77 6e 20 69 73 20 74 72 |.mousedo|wn is tr|
|00001e50| 75 65 2c 20 74 68 65 20 | 75 73 65 72 20 69 73 20 |ue, the |user is |
|00001e60| 90 01 27 65 6e 74 65 72 | 69 6e 67 20 74 68 65 20 |..'enter|ing the |
|00001e70| 62 75 74 74 6f 6e 20 61 | 66 74 65 72 20 74 68 65 |button a|fter the|
|00001e80| 79 20 64 72 75 67 20 6f | 66 66 20 6f 66 20 74 68 |y drug o|ff of th|
|00001e90| 65 20 62 75 74 74 6f 6e | 2e 20 20 54 68 69 73 20 |e button|. This |
|00001ea0| 66 69 72 65 73 20 74 68 | 65 20 73 65 74 20 64 6f |fires th|e set do|
|00001eb0| 77 6e 07 27 73 74 61 74 | 65 2e 2d 27 45 6c 73 65 |wn.'stat|e.-'Else|
|00001ec0| 20 73 65 74 74 69 6e 67 | 20 74 68 65 20 74 68 65 | setting| the the|
|00001ed0| 20 62 75 74 74 6f 6e 20 | 74 6f 20 74 68 65 20 75 | button |to the u|
|00001ee0| 70 20 73 74 61 74 65 2e | 31 69 66 20 69 6e 44 6f |p state.|1if inDo|
|00001ef0| 77 6e 20 3d 20 74 72 75 | 65 20 61 6e 64 20 73 79 |wn = tru|e and sy|
|00001f00| 73 74 65 6d 2e 6d 6f 75 | 73 65 64 6f 77 6e 20 3d |stem.mou|sedown =|
|00001f10| 20 74 72 75 65 20 74 68 | 65 6e 0b 27 64 6f 77 6e | true th|en.'down|
|00001f20| 20 73 74 61 74 65 09 73 | 74 61 74 65 20 3d 20 32 | state.s|tate = 2|
|00001f30| 06 64 6f 77 6e 28 29 04 | 65 6c 73 65 03 27 75 70 |.down().|else.'up|
|00001f40| 09 73 74 61 74 65 20 3d | 20 31 04 75 70 28 29 06 |.state =| 1.up().|
|00001f50| 65 6e 64 20 69 66 00 07 | 45 6e 64 20 53 75 62 09 |end if..|End Sub.|
|00001f60| 4d 6f 75 73 65 44 72 61 | 67 03 0d 03 0d 24 29 53 |MouseDra|g....$)S|
|00001f70| 75 62 20 4d 6f 75 73 65 | 44 72 61 67 28 58 20 41 |ub Mouse|Drag(X A|
|00001f80| 73 20 49 6e 74 65 67 65 | 72 2c 20 59 20 41 73 20 |s Intege|r, Y As |
|00001f90| 49 6e 74 65 67 65 72 29 | 1b 69 66 20 58 20 3c 20 |Integer)|.if X < |
|00001fa0| 77 69 64 74 68 20 61 6e | 64 20 58 20 3e 20 30 20 |width an|d X > 0 |
|00001fb0| 74 68 65 6e 00 1c 69 66 | 20 59 20 3c 20 68 65 69 |then..if| Y < hei|
|00001fc0| 67 68 74 20 61 6e 64 20 | 59 20 3e 20 30 20 74 68 |ght and |Y > 0 th|
|00001fd0| 65 6e 97 01 27 69 66 20 | 77 69 74 68 69 6e 20 74 |en..'if |within t|
|00001fe0| 68 65 20 58 20 26 20 59 | 20 76 61 6c 75 65 73 20 |he X & Y| values |
|00001ff0| 6f 66 20 74 68 65 20 62 | 75 74 74 6f 6e 2c 20 74 |of the b|utton, t|
|00002000| 68 65 6e 20 73 68 6f 77 | 69 6e 67 20 74 68 65 20 |hen show|ing the |
|00002010| 64 6f 77 6e 20 73 74 61 | 74 65 20 69 66 20 74 68 |down sta|te if th|
|00002020| 65 20 73 74 61 74 65 20 | 69 73 20 0d 27 74 68 65 |e state |is .'the|
|00002030| 20 75 70 20 73 74 61 74 | 65 11 69 66 20 73 74 61 | up stat|e.if sta|
|00002040| 74 65 20 3d 20 31 20 74 | 68 65 6e 0b 27 64 6f 77 |te = 1 t|hen.'dow|
|00002050| 6e 20 73 74 61 74 65 09 | 73 74 61 74 65 20 3d 20 |n state.|state = |
|00002060| 32 06 64 6f 77 6e 28 29 | 06 72 65 74 75 72 6e 06 |2.down()|.return.|
|00002070| 65 6e 64 20 69 66 00 04 | 65 6c 73 65 8c 01 27 69 |end if..|else..'i|
|00002080| 66 20 6f 75 74 73 69 64 | 65 20 74 68 65 20 62 75 |f outsid|e the bu|
|00002090| 74 74 6f 6e 20 61 6e 64 | 20 74 68 65 20 64 6f 77 |tton and| the dow|
|000020a0| 6e 20 73 74 61 74 65 20 | 77 61 73 20 73 68 6f 77 |n state |was show|
|000020b0| 69 6e 67 2c 20 6e 6f 77 | 20 73 68 6f 77 20 74 68 |ing, now| show th|
|000020c0| 65 20 75 70 20 73 74 61 | 74 65 00 11 69 66 20 73 |e up sta|te..if s|
|000020d0| 74 61 74 65 20 3d 20 32 | 20 74 68 65 6e 09 27 75 |tate = 2| then.'u|
|000020e0| 70 20 73 74 61 74 65 09 | 73 74 61 74 65 20 3d 20 |p state.|state = |
|000020f0| 31 04 75 70 28 29 06 72 | 65 74 75 72 6e 06 65 6e |1.up().r|eturn.en|
|00002100| 64 20 69 66 06 65 6e 64 | 20 69 66 00 04 65 6c 73 |d if.end| if..els|
|00002110| 65 00 11 69 66 20 73 74 | 61 74 65 20 3d 20 32 20 |e..if st|ate = 2 |
|00002120| 74 68 65 6e 09 27 75 70 | 20 73 74 61 74 65 09 73 |then.'up| state.s|
|00002130| 74 61 74 65 20 3d 20 31 | 04 75 70 28 29 06 72 65 |tate = 1|.up().re|
|00002140| 74 75 72 6e 06 65 6e 64 | 20 69 66 00 06 65 6e 64 |turn.end| if..end|
|00002150| 20 69 66 00 07 45 6e 64 | 20 53 75 62 09 4d 6f 75 | if..End| Sub.Mou|
|00002160| 73 65 4d 6f 76 65 01 00 | 01 00 03 29 53 75 62 20 |seMove..|...)Sub |
|00002170| 4d 6f 75 73 65 4d 6f 76 | 65 28 58 20 41 73 20 49 |MouseMov|e(X As I|
|00002180| 6e 74 65 67 65 72 2c 20 | 59 20 41 73 20 49 6e 74 |nteger, |Y As Int|
|00002190| 65 67 65 72 29 00 07 45 | 6e 64 20 53 75 62 09 4d |eger)..E|nd Sub.M|
|000021a0| 6f 75 73 65 44 6f 77 6e | 0c 00 0c 00 10 39 46 75 |ouseDown|.....9Fu|
|000021b0| 6e 63 74 69 6f 6e 20 4d | 6f 75 73 65 44 6f 77 6e |nction M|ouseDown|
|000021c0| 28 58 20 41 73 20 49 6e | 74 65 67 65 72 2c 20 59 |(X As In|teger, Y|
|000021d0| 20 41 73 20 49 6e 74 65 | 67 65 72 29 20 41 73 20 | As Inte|ger) As |
|000021e0| 42 6f 6f 6c 65 61 6e 0b | 27 64 6f 77 6e 20 73 74 |Boolean.|'down st|
|000021f0| 61 74 65 09 73 74 61 74 | 65 20 3d 20 32 06 64 6f |ate.stat|e = 2.do|
|00002200| 77 6e 28 29 00 93 01 27 | 69 6e 44 6f 77 6e 20 69 |wn()...'|inDown i|
|00002210| 73 20 61 20 70 72 6f 70 | 65 72 74 79 20 74 68 61 |s a prop|erty tha|
|00002220| 74 20 69 73 20 74 65 6c | 6c 69 6e 67 20 74 68 65 |t is tel|ling the|
|00002230| 20 6d 6f 75 73 65 45 78 | 69 74 20 6d 65 74 68 6f | mouseEx|it metho|
|00002240| 64 20 74 68 61 74 20 74 | 68 65 20 6d 6f 75 73 65 |d that t|he mouse|
|00002250| 20 68 61 73 20 62 65 65 | 6e 20 91 01 27 70 75 73 | has bee|n ..'pus|
|00002260| 68 65 64 20 61 6e 64 20 | 69 73 20 73 74 69 6c 6c |hed and |is still|
|00002270| 20 64 6f 77 6e 2e 20 20 | 49 66 20 69 6e 44 6f 77 | down. |If inDow|
|00002280| 6e 20 69 73 20 74 72 75 | 65 20 77 68 65 6e 20 74 |n is tru|e when t|
|00002290| 68 65 20 6d 6f 75 73 65 | 45 78 69 74 20 6d 65 74 |he mouse|Exit met|
|000022a0| 68 6f 64 20 69 73 20 66 | 69 72 65 64 2c 2c 27 74 |hod is f|ired,,'t|
|000022b0| 68 65 20 62 75 74 74 6f | 6e 27 73 20 73 74 61 74 |he butto|n's stat|
|000022c0| 65 20 69 73 20 75 70 20 | 69 6e 73 74 65 61 64 20 |e is up |instead |
|000022d0| 6f 66 20 6e 6f 72 6d 61 | 6c 2e 0d 69 6e 44 6f 77 |of norma|l..inDow|
|000022e0| 6e 20 3d 20 74 72 75 65 | 00 94 01 27 73 65 74 74 |n = true|...'sett|
|000022f0| 69 6e 67 20 74 68 65 20 | 62 75 74 74 6f 6e 20 63 |ing the |button c|
|00002300| 75 72 73 6f 72 20 74 6f | 20 74 68 65 20 66 69 6e |ursor to| the fin|
|00002310| 67 65 72 20 70 6f 69 6e | 74 65 72 20 69 66 20 74 |ger poin|ter if t|
|00002320| 68 65 20 75 73 65 72 20 | 73 74 61 72 74 73 20 64 |he user |starts d|
|00002330| 72 61 67 67 69 6e 67 20 | 61 72 6f 75 6e 64 20 12 |ragging |around .|
|00002340| 27 69 6e 73 69 64 65 20 | 74 68 65 20 62 75 74 74 |'inside |the butt|
|00002350| 6f 6e 2d 6d 6f 75 73 65 | 63 75 72 73 6f 72 20 3d |on-mouse|cursor =|
|00002360| 20 61 70 70 2e 72 65 73 | 6f 75 72 63 65 46 6f 72 | app.res|ourceFor|
|00002370| 6b 2e 67 65 74 63 75 72 | 73 6f 72 28 31 33 39 29 |k.getcur|sor(139)|
|00002380| 0b 72 65 74 75 72 6e 20 | 74 72 75 65 00 0c 45 6e |.return |true..En|
|00002390| 64 20 46 75 6e 63 74 69 | 6f 6e 00 00 00 |d Functi|on... |
+--------+-------------------------+-------------------------+--------+--------+