Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!saturn!ucscb.UCSC.EDU!alibaba From: alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg) Newsgroups: comp.sys.mac.programmer Subject: Re: Variable-sized elevators Message-ID: <3006@saturn.ucsc.edu> Date: 26 Apr 88 02:55:09 GMT References: <242@uvabick.UUCP> <8700@apple.Apple.Com> <2956@saturn.ucsc.edu> Sender: usenet@saturn.ucsc.edu Reply-To: alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg) Organization: University of California, Santa Cruz; CATS Lines: 17 This is really neat. Think of the following: ratioBits := (sBarTop.Y-sBarBot.Y)/ABS(sBarMax-sBarMin) value := ratioBits * (sBarTop.Y-sBarBot.Y) (This is all from memory, so I may be mesing it all up....) value is the height in pixels of a scroll bar "page". This is also the elevator height. QED. (Again, I think that this is wrong, but I don't got time now to look it up, ST:TNG is starting...) ------------------------------------------------------------------------------- - Alexander M. Rosenberg - INTERNET: alibaba@ucscb.ucsc.edu - Yoyodyne - - Crown College, UCSC - UUCP:...!ucbvax!ucscc!ucscb!alibaba- Propulsion - - Santa Cruz, CA 95064 - BITNET:alibaba%ucscb@ucscc.BITNET - Systems - - (408) 426-8869 - Disclaimer: Nobody is my employer - :-) - - - so nobody cares what I say. - -