Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!oakhill!tomj From: tomj@oakhill.UUCP (Tom Johnson) Newsgroups: comp.sys.mac.hypercard Subject: Re: Scrolling Multiple Fields Summary: Make your own "scroll bar" Message-ID: <2803@oakhill.UUCP> Date: 9 Jan 90 15:49:38 GMT References: <419@chervil.UUCP> Reply-To: tomj@oakhill.UUCP (Tom Johnson) Organization: Motorola Inc., Austin, Texas Lines: 41 In article <419@chervil.UUCP> sheppard%ukfca1@sj.ate.slb.com writes: >Can anyone help me with this problem ?? > >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...[rest of message deleted] > > >Ian Sheppard, >sheppard%ukfca1@sj.ate.slb.com I needed to do exactly this same thing only about a week ago. I also grappled with the problem, and finally came up with the following solution (albiet not perfect)...I created my four scrolling fields, overlapping each so that only a single scroll bar (the one farthest to the right) was showing. This scroll bar was then covered with an empty, non-scrollable, opaque field, which was sized to allow the top, right, and left borders of the scrollable field to show (made things look more polished). Buttons were then added to the top (a scroll-up button), and bottom (a scroll-down button) of this opaque field. The button handlers take care of setting the scroll of all of the scrollable fields. Note that all of my fields were locked, although this doesn't really matter, and all of the fields and buttons were background. If you could afford to make the "scroll bar" in the foreground, then instead of using an opaque field, you could add a painted gray pattern to cover the rightmost scroll bar, and add not only the scroll-up and scroll-doen bottons, but also a thumb button, adjusting its relative position each time you scroll (just like a "real" scroll bar). Hope this helps some, or puts you on the right path, or whatever. Tom Johnson tomj@oakhill.UUCP Motorola, Inc. Austin, TX Disclaimer: Motorola doesn't speak for me, and visa-versa.