home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / scroll-bar.elc < prev    next >
Emacs Compiled Lisp  |  1994-05-04  |  3.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6b 77 7a 68 40 68 61 |piled by| kwzh@ha|
|00000020| 6c 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |l.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 4d 61 79 20 20 33 20 32 | on Tue |May 3 2|
|00000040| 31 3a 35 33 3a 34 32 20 | 31 39 39 34 0a 3b 3b 3b |1:53:42 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 73 63 72 6f 6c | 6c 2d 62 61 72 2e 65 6c |sp/scrol|l-bar.el|
|00000080| 0a 3b 3b 3b 20 65 6d 61 | 63 73 20 76 65 72 73 69 |.;;; ema|cs versi|
|00000090| 6f 6e 20 31 39 2e 32 32 | 2e 39 32 2e 32 2e 0a 3b |on 19.22|.92.2..;|
|000000a0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000b0| 69 6f 6e 20 46 53 46 20 | 32 2e 31 30 0a 3b 3b 3b |ion FSF |2.10.;;;|
|000000c0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|000000d0| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|000000e0| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|000000f0| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000100| 73 74 20 69 6e 20 45 6d | 61 63 73 20 31 38 2e 0a |st in Em|acs 18..|
|00000110| 0a 28 69 66 20 28 61 6e | 64 20 28 62 6f 75 6e 64 |.(if (an|d (bound|
|00000120| 70 20 27 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |p 'emacs|-version|
|00000130| 29 0a 09 20 28 6f 72 20 | 28 61 6e 64 20 28 62 6f |).. (or |(and (bo|
|00000140| 75 6e 64 70 20 27 65 70 | 6f 63 68 3a 3a 76 65 72 |undp 'ep|och::ver|
|00000150| 73 69 6f 6e 29 20 65 70 | 6f 63 68 3a 3a 76 65 72 |sion) ep|och::ver|
|00000160| 73 69 6f 6e 29 0a 09 20 | 20 20 20 20 28 73 74 72 |sion).. | (str|
|00000170| 69 6e 67 2d 6c 65 73 73 | 70 20 65 6d 61 63 73 2d |ing-less|p emacs-|
|00000180| 76 65 72 73 69 6f 6e 20 | 22 31 39 22 29 29 29 0a |version |"19"))).|
|00000190| 20 20 20 20 28 65 72 72 | 6f 72 20 22 60 2f 67 64 | (err|or "`/gd|
|000001a0| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|000001b0| 6c 69 73 70 2f 73 63 72 | 6f 6c 6c 2d 62 61 72 2e |lisp/scr|oll-bar.|
|000001c0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|000001d0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 22 29 29 | for Ema|cs 19"))|
|000001e0| 0a 0a 28 72 65 71 75 69 | 72 65 20 28 71 75 6f 74 |..(requi|re (quot|
|000001f0| 65 20 6d 6f 75 73 65 29 | 29 0a 28 64 65 66 61 6c |e mouse)|).(defal|
|00000200| 69 61 73 20 27 73 63 72 | 6f 6c 6c 2d 62 61 72 2d |ias 'scr|oll-bar-|
|00000210| 65 76 65 6e 74 2d 72 61 | 74 69 6f 20 23 5b 28 65 |event-ra|tio #[(e|
|00000220| 76 65 6e 74 29 20 22 c0 | 09 38 87 22 20 5b 32 20 |vent) ".|.8." [2 |
|00000230| 65 76 65 6e 74 5d 20 32 | 20 22 5c 0a 47 69 76 65 |event] 2| "\.Give|
|00000240| 6e 20 61 20 73 63 72 6f | 6c 6c 20 62 61 72 20 65 |n a scro|ll bar e|
|00000250| 76 65 6e 74 20 45 56 45 | 4e 54 2c 20 72 65 74 75 |vent EVE|NT, retu|
|00000260| 72 6e 20 74 68 65 20 73 | 63 72 6f 6c 6c 20 62 61 |rn the s|croll ba|
|00000270| 72 20 70 6f 73 69 74 69 | 6f 6e 20 61 73 20 61 20 |r positi|on as a |
|00000280| 72 61 74 69 6f 2e 0a 54 | 68 65 20 76 61 6c 75 65 |ratio..T|he value|
|00000290| 20 69 73 20 61 20 63 6f | 6e 73 20 63 65 6c 6c 20 | is a co|ns cell |
|000002a0| 28 50 4f 52 54 49 4f 4e | 20 2e 20 57 48 4f 4c 45 |(PORTION| . WHOLE|
|000002b0| 29 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 74 77 6f |) contai|ning two|
|000002c0| 20 69 6e 74 65 67 65 72 | 73 0a 77 68 6f 73 65 20 | integer|s.whose |
|000002d0| 72 61 74 69 6f 20 67 69 | 76 65 73 20 74 68 65 20 |ratio gi|ves the |
|000002e0| 65 76 65 6e 74 27 73 20 | 76 65 72 74 69 63 61 6c |event's |vertical|
|000002f0| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 74 68 65 | positio|n in the|
|00000300| 20 73 63 72 6f 6c 6c 20 | 62 61 72 2c 20 77 69 74 | scroll |bar, wit|
|00000310| 68 20 30 0a 72 65 66 65 | 72 72 69 6e 67 20 74 6f |h 0.refe|rring to|
|00000320| 20 74 68 65 20 74 6f 70 | 20 61 6e 64 20 31 20 74 | the top| and 1 t|
|00000330| 6f 20 74 68 65 20 62 6f | 74 74 6f 6d 2e 22 5d 29 |o the bo|ttom."])|
|00000340| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 63 72 6f |.(defali|as 'scro|
|00000350| 6c 6c 2d 62 61 72 2d 73 | 63 61 6c 65 20 23 5b 28 |ll-bar-s|cale #[(|
|00000360| 6e 75 6d 2d 64 65 6e 6f | 6d 20 77 68 6f 6c 65 29 |num-deno|m whole)|
|00000370| 20 22 c0 c1 5c 6e 40 21 | 0b 5f 5c 6e 41 a5 21 87 | "..\n@!|._\nA.!.|
|00000380| 22 20 5b 74 72 75 6e 63 | 61 74 65 20 66 6c 6f 61 |" [trunc|ate floa|
|00000390| 74 20 6e 75 6d 2d 64 65 | 6e 6f 6d 20 77 68 6f 6c |t num-de|nom whol|
|000003a0| 65 5d 20 33 20 22 5c 0a | 47 69 76 65 6e 20 61 20 |e] 3 "\.|Given a |
|000003b0| 70 61 69 72 20 28 4e 55 | 4d 20 2e 20 44 45 4e 4f |pair (NU|M . DENO|
|000003c0| 4d 29 20 61 6e 64 20 57 | 48 4f 4c 45 2c 20 72 65 |M) and W|HOLE, re|
|000003d0| 74 75 72 6e 20 28 2f 20 | 28 2a 20 4e 55 4d 20 57 |turn (/ |(* NUM W|
|000003e0| 48 4f 4c 45 29 20 44 45 | 4e 4f 4d 29 2e 0a 54 68 |HOLE) DE|NOM)..Th|
|000003f0| 69 73 20 69 73 20 68 61 | 6e 64 79 20 66 6f 72 20 |is is ha|ndy for |
|00000400| 73 63 61 6c 69 6e 67 20 | 61 20 70 6f 73 69 74 69 |scaling |a positi|
|00000410| 6f 6e 20 6f 6e 20 61 20 | 73 63 72 6f 6c 6c 20 62 |on on a |scroll b|
|00000420| 61 72 20 69 6e 74 6f 20 | 72 65 61 6c 20 75 6e 69 |ar into |real uni|
|00000430| 74 73 2c 0a 6c 69 6b 65 | 20 62 75 66 66 65 72 20 |ts,.like| buffer |
|00000440| 70 6f 73 69 74 69 6f 6e | 73 2e 20 20 49 66 20 53 |position|s. If S|
|00000450| 43 52 4f 4c 4c 2d 42 41 | 52 2d 50 4f 53 20 69 73 |CROLL-BA|R-POS is|
|00000460| 20 74 68 65 20 28 50 4f | 52 54 49 4f 4e 20 2e 20 | the (PO|RTION . |
|00000470| 57 48 4f 4c 45 29 20 70 | 61 69 72 0a 66 72 6f 6d |WHOLE) p|air.from|
|00000480| 20 61 20 73 63 72 6f 6c | 6c 20 62 61 72 20 65 76 | a scrol|l bar ev|
|00000490| 65 6e 74 2c 20 74 68 65 | 6e 20 28 73 63 72 6f 6c |ent, the|n (scrol|
|000004a0| 6c 2d 62 61 72 2d 73 63 | 61 6c 65 20 53 43 52 4f |l-bar-sc|ale SCRO|
|000004b0| 4c 4c 2d 42 41 52 2d 50 | 4f 53 0a 28 62 75 66 66 |LL-BAR-P|OS.(buff|
|000004c0| 65 72 2d 73 69 7a 65 29 | 29 20 69 73 20 74 68 65 |er-size)|) is the|
|000004d0| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 74 68 65 | positio|n in the|
|000004e0| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 20 | current| buffer |
|000004f0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |correspo|nding to|
|00000500| 0a 74 68 61 74 20 73 63 | 72 6f 6c 6c 20 62 61 72 |.that sc|roll bar|
|00000510| 20 70 6f 73 69 74 69 6f | 6e 2e 22 5d 29 0a 28 64 | positio|n."]).(d|
|00000520| 65 66 61 6c 69 61 73 20 | 27 73 63 72 6f 6c 6c 2d |efalias |'scroll-|
|00000530| 62 61 72 2d 6d 6f 64 65 | 20 23 5b 28 66 6c 61 67 |bar-mode| #[(flag|
|00000540| 29 20 22 08 83 08 00 c1 | 08 21 10 c2 0b 9e 89 1c |) ".....|.!......|
|00000550| 83 15 00 5c 66 41 82 16 | 00 c5 29 1e 06 08 84 23 |...\fA..|..)....#|
|00000560| 00 0e 06 3f 82 2c 00 08 | a7 3f 86 2c 00 08 c7 59 |...?.,..|.?.,...Y|
|00000570| 16 06 c8 c9 ca 5c 22 88 | cb 20 89 1e 5c 66 85 54 |.....\".|. ..\f.T|
|00000580| 00 cd 0e 5c 66 40 c2 0e | 06 42 ce 0e 06 42 44 5c |...\f@..|.B...BD\|
|00000590| 22 88 0e 5c 66 41 89 16 | 5c 66 84 3b 00 cf 2a 87 |"..\fA..|\f.;..*.|
|000005a0| 22 20 5b 66 6c 61 67 20 | 70 72 65 66 69 78 2d 6e |" [flag |prefix-n|
|000005b0| 75 6d 65 72 69 63 2d 76 | 61 6c 75 65 20 76 65 72 |umeric-v|alue ver|
|000005c0| 74 69 63 61 6c 2d 73 63 | 72 6f 6c 6c 2d 62 61 72 |tical-sc|roll-bar|
|000005d0| 73 20 64 65 66 61 75 6c | 74 2d 66 72 61 6d 65 2d |s defaul|t-frame-|
|000005e0| 61 6c 69 73 74 20 61 73 | 73 71 20 74 20 73 63 72 |alist as|sq t scr|
|000005f0| 6f 6c 6c 2d 62 61 72 2d | 6d 6f 64 65 20 30 20 6d |oll-bar-|mode 0 m|
|00000600| 61 70 63 61 72 20 23 5b | 28 70 61 72 61 6d 2d 6e |apcar #[|(param-n|
|00000610| 61 6d 65 29 20 22 08 09 | 9e 89 1a 3a 83 0f 00 5c |ame) "..|...:...\|
|00000620| 6e 0b a1 82 16 00 08 0b | 42 09 42 89 11 29 87 22 |n.......|B.B..)."|
|00000630| 20 5b 70 61 72 61 6d 2d | 6e 61 6d 65 20 64 65 66 | [param-|name def|
|00000640| 61 75 6c 74 2d 66 72 61 | 6d 65 2d 61 6c 69 73 74 |ault-fra|me-alist|
|00000650| 20 70 61 72 61 6d 65 74 | 65 72 20 73 63 72 6f 6c | paramet|er scrol|
|00000660| 6c 2d 62 61 72 2d 6d 6f | 64 65 5d 20 33 5d 20 28 |l-bar-mo|de] 3] (|
|00000670| 76 65 72 74 69 63 61 6c | 2d 73 63 72 6f 6c 6c 2d |vertical|-scroll-|
|00000680| 62 61 72 73 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 2d |bars hor|izontal-|
|00000690| 73 63 72 6f 6c 6c 2d 62 | 61 72 73 29 20 66 72 61 |scroll-b|ars) fra|
|000006a0| 6d 65 2d 6c 69 73 74 20 | 66 72 61 6d 65 73 20 6d |me-list |frames m|
|000006b0| 6f 64 69 66 79 2d 66 72 | 61 6d 65 2d 70 61 72 61 |odify-fr|ame-para|
|000006c0| 6d 65 74 65 72 73 20 68 | 6f 72 69 7a 6f 6e 74 61 |meters h|orizonta|
|000006d0| 6c 2d 73 63 72 6f 6c 6c | 2d 62 61 72 73 20 6e 69 |l-scroll|-bars ni|
|000006e0| 6c 5d 20 36 20 22 5c 0a | 54 6f 67 67 6c 65 20 64 |l] 6 "\.|Toggle d|
|000006f0| 69 73 70 6c 61 79 20 6f | 66 20 76 65 72 74 69 63 |isplay o|f vertic|
|00000700| 61 6c 20 73 63 72 6f 6c | 6c 20 62 61 72 73 20 6f |al scrol|l bars o|
|00000710| 6e 20 65 61 63 68 20 66 | 72 61 6d 65 2e 0a 54 68 |n each f|rame..Th|
|00000720| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 61 70 70 6c 69 |is comma|nd appli|
|00000730| 65 73 20 74 6f 20 61 6c | 6c 20 66 72 61 6d 65 73 |es to al|l frames|
|00000740| 20 74 68 61 74 20 65 78 | 69 73 74 20 61 6e 64 20 | that ex|ist and |
|00000750| 66 72 61 6d 65 73 20 74 | 6f 20 62 65 0a 63 72 65 |frames t|o be.cre|
|00000760| 61 74 65 64 20 69 6e 20 | 74 68 65 20 66 75 74 75 |ated in |the futu|
|00000770| 72 65 2e 0a 57 69 74 68 | 20 61 20 6e 75 6d 65 72 |re..With| a numer|
|00000780| 69 63 20 61 72 67 75 6d | 65 6e 74 2c 20 69 66 20 |ic argum|ent, if |
|00000790| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |the argu|ment is |
|000007a0| 6e 65 67 61 74 69 76 65 | 2c 0a 74 75 72 6e 20 6f |negative|,.turn o|
|000007b0| 66 66 20 73 63 72 6f 6c | 6c 20 62 61 72 73 3b 20 |ff scrol|l bars; |
|000007c0| 6f 74 68 65 72 77 69 73 | 65 2c 20 74 75 72 6e 20 |otherwis|e, turn |
|000007d0| 6f 6e 20 73 63 72 6f 6c | 6c 20 62 61 72 73 2e 22 |on scrol|l bars."|
|000007e0| 20 22 50 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "P"]).(|defalias|
|000007f0| 20 27 73 63 72 6f 6c 6c | 2d 62 61 72 2d 73 65 74 | 'scroll|-bar-set|
|00000800| 2d 77 69 6e 64 6f 77 2d | 73 74 61 72 74 20 23 5b |-window-|start #[|
|00000810| 28 65 76 65 6e 74 29 20 | 22 08 18 c1 08 38 3a 83 |(event) |"....8:.|
|00000820| 0d 00 c1 82 0e 00 c2 08 | 38 29 89 1b 40 1c c1 0b |........|8)..@...|
|00000830| 38 1d 8a c6 5c 66 21 71 | 88 8a 65 c7 0d 64 65 5a |8...\f!q|..e..deZ|
|00000840| 5c 22 5c 5c 62 88 c8 79 | 88 c9 5c 66 60 5c 22 2d |\"\\b..y|..\f`\"-|
|00000850| 87 22 20 5b 65 76 65 6e | 74 20 32 20 31 20 65 6e |." [even|t 2 1 en|
|00000860| 64 2d 70 6f 73 69 74 69 | 6f 6e 20 77 69 6e 64 6f |d-positi|on windo|
|00000870| 77 20 70 6f 72 74 69 6f | 6e 2d 77 68 6f 6c 65 20 |w portio|n-whole |
|00000880| 77 69 6e 64 6f 77 2d 62 | 75 66 66 65 72 20 73 63 |window-b|uffer sc|
|00000890| 72 6f 6c 6c 2d 62 61 72 | 2d 73 63 61 6c 65 20 30 |roll-bar|-scale 0|
|000008a0| 20 73 65 74 2d 77 69 6e | 64 6f 77 2d 73 74 61 72 | set-win|dow-star|
|000008b0| 74 5d 20 36 20 22 5c 0a | 53 65 74 20 74 68 65 20 |t] 6 "\.|Set the |
|000008c0| 77 69 6e 64 6f 77 20 73 | 74 61 72 74 20 61 63 63 |window s|tart acc|
|000008d0| 6f 72 64 69 6e 67 20 74 | 6f 20 77 68 65 72 65 20 |ording t|o where |
|000008e0| 74 68 65 20 73 63 72 6f | 6c 6c 20 62 61 72 20 69 |the scro|ll bar i|
|000008f0| 73 20 64 72 61 67 67 65 | 64 2e 0a 45 56 45 4e 54 |s dragge|d..EVENT|
|00000900| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 20 73 63 72 | should |be a scr|
|00000910| 6f 6c 6c 20 62 61 72 20 | 63 6c 69 63 6b 20 6f 72 |oll bar |click or|
|00000920| 20 64 72 61 67 20 65 76 | 65 6e 74 2e 22 20 22 65 | drag ev|ent." "e|
|00000930| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 28 71 |"]).(def|alias (q|
|00000940| 75 6f 74 65 20 73 63 72 | 6f 6c 6c 2d 62 61 72 2d |uote scr|oll-bar-|
|00000950| 64 72 61 67 2d 31 29 20 | 23 5b 28 65 76 65 6e 74 |drag-1) |#[(event|
|00000960| 29 20 22 08 89 18 41 40 | 29 89 19 40 1a c3 09 38 |) "...A@|)..@...8|
|00000970| 1c 8a c5 5c 6e 21 71 88 | 65 c6 5c 66 64 65 5a 5c |...\n!q.|e.\fdeZ\|
|00000980| 22 5c 5c 62 88 c7 79 88 | c8 5c 6e 60 5c 22 2c 87 |"\\b..y.|.\n`\",.|
|00000990| 22 20 5b 65 76 65 6e 74 | 20 73 74 61 72 74 2d 70 |" [event| start-p|
|000009a0| 6f 73 69 74 69 6f 6e 20 | 77 69 6e 64 6f 77 20 32 |osition |window 2|
|000009b0| 20 70 6f 72 74 69 6f 6e | 2d 77 68 6f 6c 65 20 77 | portion|-whole w|
|000009c0| 69 6e 64 6f 77 2d 62 75 | 66 66 65 72 20 73 63 72 |indow-bu|ffer scr|
|000009d0| 6f 6c 6c 2d 62 61 72 2d | 73 63 61 6c 65 20 30 20 |oll-bar-|scale 0 |
|000009e0| 73 65 74 2d 77 69 6e 64 | 6f 77 2d 73 74 61 72 74 |set-wind|ow-start|
|000009f0| 5d 20 36 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |] 6]).(d|efalias |
|00000a00| 27 73 63 72 6f 6c 6c 2d | 62 61 72 2d 64 72 61 67 |'scroll-|bar-drag|
|00000a10| 20 23 5b 28 65 76 65 6e | 74 29 20 22 c0 19 c2 0b | #[(even|t) "....|
|00000a20| 21 88 c4 20 29 87 22 20 | 5b 6e 69 6c 20 64 6f 6e |!.. )." |[nil don|
|00000a30| 65 20 73 63 72 6f 6c 6c | 2d 62 61 72 2d 64 72 61 |e scroll|-bar-dra|
|00000a40| 67 2d 31 20 65 76 65 6e | 74 20 28 6c 61 6d 62 64 |g-1 even|t (lambd|
|00000a50| 61 20 6e 69 6c 20 28 74 | 72 61 63 6b 2d 6d 6f 75 |a nil (t|rack-mou|
|00000a60| 73 65 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |se (byte|-code ".|
|00000a70| 3f 85 26 00 c1 20 89 12 | a2 c3 3d 83 12 00 c1 20 |?.&.. ..|..=.... |
|00000a80| 12 5c 6e a2 c4 3d 83 20 | 00 c5 5c 6e 21 88 82 00 |.\n..=. |..\n!...|
|00000a90| 00 c6 89 10 82 01 00 87 | 22 20 5b 64 6f 6e 65 20 |........|" [done |
|00000aa0| 72 65 61 64 2d 65 76 65 | 6e 74 20 65 76 65 6e 74 |read-eve|nt event|
|00000ab0| 20 6d 6f 75 73 65 2d 6d | 6f 76 65 6d 65 6e 74 20 | mouse-m|ovement |
|00000ac0| 73 63 72 6f 6c 6c 2d 62 | 61 72 2d 6d 6f 76 65 6d |scroll-b|ar-movem|
|00000ad0| 65 6e 74 20 73 63 72 6f | 6c 6c 2d 62 61 72 2d 64 |ent scro|ll-bar-d|
|00000ae0| 72 61 67 2d 31 20 74 5d | 20 33 29 29 29 5d 20 32 |rag-1 t]| 3)))] 2|
|00000af0| 20 22 5c 0a 53 63 72 6f | 6c 6c 20 74 68 65 20 77 | "\.Scro|ll the w|
|00000b00| 69 6e 64 6f 77 20 62 79 | 20 64 72 61 67 67 69 6e |indow by| draggin|
|00000b10| 67 20 74 68 65 20 73 63 | 72 6f 6c 6c 20 62 61 72 |g the sc|roll bar|
|00000b20| 20 73 6c 69 64 65 72 2e | 0a 49 66 20 79 6f 75 20 | slider.|.If you |
|00000b30| 63 6c 69 63 6b 20 6f 75 | 74 73 69 64 65 20 74 68 |click ou|tside th|
|00000b40| 65 20 73 6c 69 64 65 72 | 2c 20 74 68 65 20 77 69 |e slider|, the wi|
|00000b50| 6e 64 6f 77 20 73 63 72 | 6f 6c 6c 73 20 74 6f 20 |ndow scr|olls to |
|00000b60| 62 72 69 6e 67 20 74 68 | 65 20 73 6c 69 64 65 72 |bring th|e slider|
|00000b70| 20 74 68 65 72 65 2e 22 | 20 22 65 22 5d 29 0a 28 | there."| "e"]).(|
|00000b80| 64 65 66 61 6c 69 61 73 | 20 27 73 63 72 6f 6c 6c |defalias| 'scroll|
|00000b90| 2d 62 61 72 2d 73 63 72 | 6f 6c 6c 2d 64 6f 77 6e |-bar-scr|oll-down|
|00000ba0| 20 23 5b 28 65 76 65 6e | 74 29 20 22 c0 20 19 c2 | #[(even|t) ". ..|
|00000bb0| 8e 0b 1b c4 0b 38 3a 83 | 12 00 c4 82 13 00 c5 0b |.....8:.|........|
|00000bc0| 38 29 89 1e 06 40 1e 07 | c4 0e 06 38 1e 08 c9 0e |8)...@..|...8....|
|00000bd0| 07 21 88 ca cb 0e 08 cc | 20 53 5c 22 21 2d 87 22 |.!......| S\"!-."|
|00000be0| 20 5b 73 65 6c 65 63 74 | 65 64 2d 77 69 6e 64 6f | [select|ed-windo|
|00000bf0| 77 20 6f 6c 64 2d 73 65 | 6c 65 63 74 65 64 2d 77 |w old-se|lected-w|
|00000c00| 69 6e 64 6f 77 20 28 28 | 73 65 6c 65 63 74 2d 77 |indow ((|select-w|
|00000c10| 69 6e 64 6f 77 20 6f 6c | 64 2d 73 65 6c 65 63 74 |indow ol|d-select|
|00000c20| 65 64 2d 77 69 6e 64 6f | 77 29 29 20 65 76 65 6e |ed-windo|w)) even|
|00000c30| 74 20 32 20 31 20 65 6e | 64 2d 70 6f 73 69 74 69 |t 2 1 en|d-positi|
|00000c40| 6f 6e 20 77 69 6e 64 6f | 77 20 70 6f 72 74 69 6f |on windo|w portio|
|00000c50| 6e 2d 77 68 6f 6c 65 20 | 73 65 6c 65 63 74 2d 77 |n-whole |select-w|
|00000c60| 69 6e 64 6f 77 20 73 63 | 72 6f 6c 6c 2d 64 6f 77 |indow sc|roll-dow|
|00000c70| 6e 20 73 63 72 6f 6c 6c | 2d 62 61 72 2d 73 63 61 |n scroll|-bar-sca|
|00000c80| 6c 65 20 77 69 6e 64 6f | 77 2d 68 65 69 67 68 74 |le windo|w-height|
|00000c90| 5d 20 35 20 22 5c 0a 53 | 63 72 6f 6c 6c 20 74 68 |] 5 "\.S|croll th|
|00000ca0| 65 20 77 69 6e 64 6f 77 | 27 73 20 74 6f 70 20 6c |e window|'s top l|
|00000cb0| 69 6e 65 20 64 6f 77 6e | 20 74 6f 20 74 68 65 20 |ine down| to the |
|00000cc0| 6c 6f 63 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |location| of the |
|00000cd0| 73 63 72 6f 6c 6c 20 62 | 61 72 20 63 6c 69 63 6b |scroll b|ar click|
|00000ce0| 2e 0a 45 56 45 4e 54 20 | 73 68 6f 75 6c 64 20 62 |..EVENT |should b|
|00000cf0| 65 20 61 20 73 63 72 6f | 6c 6c 20 62 61 72 20 63 |e a scro|ll bar c|
|00000d00| 6c 69 63 6b 2e 22 20 22 | 65 22 5d 29 0a 28 64 65 |lick." "|e"]).(de|
|00000d10| 66 61 6c 69 61 73 20 27 | 73 63 72 6f 6c 6c 2d 62 |falias '|scroll-b|
|00000d20| 61 72 2d 73 63 72 6f 6c | 6c 2d 75 70 20 23 5b 28 |ar-scrol|l-up #[(|
|00000d30| 65 76 65 6e 74 29 20 22 | c0 20 19 c2 8e 0b 1b c4 |event) "|. ......|
|00000d40| 0b 38 3a 83 12 00 c4 82 | 13 00 c5 0b 38 29 89 1e |.8:.....|....8)..|
|00000d50| 06 40 1e 07 c4 0e 06 38 | 1e 08 c9 0e 07 21 88 ca |.@.....8|.....!..|
|00000d60| cb 0e 08 cc 20 53 5c 22 | 21 2d 87 22 20 5b 73 65 |.... S\"|!-." [se|
|00000d70| 6c 65 63 74 65 64 2d 77 | 69 6e 64 6f 77 20 6f 6c |lected-w|indow ol|
|00000d80| 64 2d 73 65 6c 65 63 74 | 65 64 2d 77 69 6e 64 6f |d-select|ed-windo|
|00000d90| 77 20 28 28 73 65 6c 65 | 63 74 2d 77 69 6e 64 6f |w ((sele|ct-windo|
|00000da0| 77 20 6f 6c 64 2d 73 65 | 6c 65 63 74 65 64 2d 77 |w old-se|lected-w|
|00000db0| 69 6e 64 6f 77 29 29 20 | 65 76 65 6e 74 20 32 20 |indow)) |event 2 |
|00000dc0| 31 20 65 6e 64 2d 70 6f | 73 69 74 69 6f 6e 20 77 |1 end-po|sition w|
|00000dd0| 69 6e 64 6f 77 20 70 6f | 72 74 69 6f 6e 2d 77 68 |indow po|rtion-wh|
|00000de0| 6f 6c 65 20 73 65 6c 65 | 63 74 2d 77 69 6e 64 6f |ole sele|ct-windo|
|00000df0| 77 20 73 63 72 6f 6c 6c | 2d 75 70 20 73 63 72 6f |w scroll|-up scro|
|00000e00| 6c 6c 2d 62 61 72 2d 73 | 63 61 6c 65 20 77 69 6e |ll-bar-s|cale win|
|00000e10| 64 6f 77 2d 68 65 69 67 | 68 74 5d 20 35 20 22 5c |dow-heig|ht] 5 "\|
|00000e20| 0a 53 63 72 6f 6c 6c 20 | 74 68 65 20 6c 69 6e 65 |.Scroll |the line|
|00000e30| 20 6e 65 78 74 20 74 6f | 20 74 68 65 20 73 63 72 | next to| the scr|
|00000e40| 6f 6c 6c 20 62 61 72 20 | 63 6c 69 63 6b 20 74 6f |oll bar |click to|
|00000e50| 20 74 68 65 20 74 6f 70 | 20 6f 66 20 74 68 65 20 | the top| of the |
|00000e60| 77 69 6e 64 6f 77 2e 0a | 45 56 45 4e 54 20 73 68 |window..|EVENT sh|
|00000e70| 6f 75 6c 64 20 62 65 20 | 61 20 73 63 72 6f 6c 6c |ould be |a scroll|
|00000e80| 20 62 61 72 20 63 6c 69 | 63 6b 2e 22 20 22 65 22 | bar cli|ck." "e"|
|00000e90| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00000ea0| c1 c2 5c 22 88 c0 c3 c2 | 5c 22 88 c0 c4 c5 5c 22 |..\"....|\"....\"|
|00000eb0| 88 c0 c6 c7 5c 22 88 c0 | c8 c7 5c 22 88 c9 ca 21 |....\"..|..\"...!|
|00000ec0| 87 22 20 5b 67 6c 6f 62 | 61 6c 2d 73 65 74 2d 6b |." [glob|al-set-k|
|00000ed0| 65 79 20 5b 76 65 72 74 | 69 63 61 6c 2d 73 63 72 |ey [vert|ical-scr|
|00000ee0| 6f 6c 6c 2d 62 61 72 20 | 6d 6f 75 73 65 2d 31 5d |oll-bar |mouse-1]|
|00000ef0| 20 73 63 72 6f 6c 6c 2d | 62 61 72 2d 73 63 72 6f | scroll-|bar-scro|
|00000f00| 6c 6c 2d 75 70 20 5b 76 | 65 72 74 69 63 61 6c 2d |ll-up [v|ertical-|
|00000f10| 73 63 72 6f 6c 6c 2d 62 | 61 72 20 64 72 61 67 2d |scroll-b|ar drag-|
|00000f20| 6d 6f 75 73 65 2d 31 5d | 20 5b 76 65 72 74 69 63 |mouse-1]| [vertic|
|00000f30| 61 6c 2d 73 63 72 6f 6c | 6c 2d 62 61 72 20 64 6f |al-scrol|l-bar do|
|00000f40| 77 6e 2d 6d 6f 75 73 65 | 2d 32 5d 20 73 63 72 6f |wn-mouse|-2] scro|
|00000f50| 6c 6c 2d 62 61 72 2d 64 | 72 61 67 20 5b 76 65 72 |ll-bar-d|rag [ver|
|00000f60| 74 69 63 61 6c 2d 73 63 | 72 6f 6c 6c 2d 62 61 72 |tical-sc|roll-bar|
|00000f70| 20 6d 6f 75 73 65 2d 33 | 5d 20 73 63 72 6f 6c 6c | mouse-3|] scroll|
|00000f80| 2d 62 61 72 2d 73 63 72 | 6f 6c 6c 2d 64 6f 77 6e |-bar-scr|oll-down|
|00000f90| 20 5b 76 65 72 74 69 63 | 61 6c 2d 73 63 72 6f 6c | [vertic|al-scrol|
|00000fa0| 6c 2d 62 61 72 20 64 72 | 61 67 2d 6d 6f 75 73 65 |l-bar dr|ag-mouse|
|00000fb0| 2d 33 5d 20 70 72 6f 76 | 69 64 65 20 73 63 72 6f |-3] prov|ide scro|
|00000fc0| 6c 6c 2d 62 61 72 5d 20 | 33 29 0a |ll-bar] |3). |
+--------+-------------------------+-------------------------+--------+--------+