Path: utzoo!mnetor!uunet!husc6!bbn!rochester!pt.cs.cmu.edu!andrew.cmu.edu!ws0n+ From: ws0n+@andrew.cmu.edu (Walter Ray Smith) Newsgroups: comp.sys.mac.programmer Subject: Re: Variable-sized elevators Message-ID: Date: 27 Apr 88 18:37:52 GMT References: <242@uvabick.UUCP> <8700@apple.Apple.Com> <2956@saturn.ucsc.edu> , <3006@saturn.ucsc.edu> Organization: Carnegie Mellon Lines: 16 In-Reply-To: <3006@saturn.ucsc.edu> > *Excerpts from: 26-Apr-88 Re: Variable-sized elevators Alexander* > *Rosenberg@ucsc (881)* > ratioBits := (sBarTop.Y-sBarBot.Y)/ABS(sBarMax-sBarMin) > value := ratioBits * (sBarTop.Y-sBarBot.Y) You're assuming that the programmer is using view y-coordinates as the scroll bar limits. That's a bad assumption. It will work occasionally, but when it doesn't work, it will be awfully confusing. For example, it won't work in most word processing programs--if their scroll bars worked that way, they could only edit 80-page documents (65536 pixels long)... But go ahead and do it; it will be interesting, at least. You could paste it into applications where it worked, and leave the rest alone. - Walt