Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.hypercard Subject: Re: Scrolling Multiple Fields Message-ID: <9574@hoptoad.uucp> Date: 9 Jan 90 15:22:58 GMT References: <419@chervil.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 34 In article <419@chervil.UUCP> sheppard%ukfca1@sj.ate.slb.com writes: >I'm trying to get multiple fields to scroll together. i.e. clicking in one >scrollbar would scroll all the fields the same number of lines in the same >direction at the same time !!. I think I probably need to use multiple >scrollable fields, have only one scrollbar visible (hide the other scrollbars >by overlapping the fields) and achieve the scrolling by modifying the scroll >value of the fields. That works. I've done it. It's too slow, though. >However, how do I trap the fact that the scrollbar is active, e.g. the up >or down arrow being pressed, or the elevator having been moved. Even with the >fields locked, I don't seem to get mouseDown etc. type messages. I don't show a real scroll bar at all. The rightmost field's scroll bar is covered by lookalike buttons. These button scripts set the scrolling of all the fields. >Does anyone have a script, (or even better an Xcmd because that should be >faster) that will solve this problem ? What I've given you should be enough to solve the problem yourself. However, note the speed problems. HyperCard 2.0 may be fast enough, or it may not. An XCMD is not necessarily noticeably faster than a script; if most of what it does is pass script lines to the interpreter, then you might as well just use a script. There's no way to directly access properties like "the scroll" from an XCMD, so I don't see how you'll get much improvement. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "Something was badly amiss with the spiritual life of the planet, thought Gibreel Farishta. Too many demons inside people claiming to believe in God." -- Salman Rushdie, THE SATANIC VERSES