[comp.sys.mac] mouseUp events in scroll bars

news@siemens.UUCP (login for the netnews) (02/10/88)

--------
About the problem with keeping scrolling fields together: you could put this
into your card script --
From: jts@demon.siemens-rtl (Jim Sasaki)
Path: demon!jts

    on mouseWithin
        set scroll of card field a to scroll of target
        set scroll of card field b to scroll of target
        set scroll of card field c to scroll of target
        ...
    end mouseWithin

You do get a lot of mouseWithin messages passed around, unfortunately.
(Anyone know how expensive they are?)

You can also use "mouseLeave" instead of "mouseWithin", but then the other
fields only scroll to match when the mouse moves out of the field.  (With
"mouseWithin", the scrolling happens after every click in the scroll bar or
whenever the elevator or scroll arrow is released.)

-----

    -- Jim Sasaki (jts%siemens.com@princeton.edu, princeton!siemens!jts)

Any opinions above are my own, and not necessarily those of Siemens RTL, for
whom I consult.