home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!well!oster
- From: oster@well.sf.ca.us (David Phillip Oster)
- Subject: Re: Scrollbars with more than 32000 lines?
- Message-ID: <BzpBE1.4n4@well.sf.ca.us>
- Sender: news@well.sf.ca.us
- Organization: Whole Earth 'Lectronic Link
- References: <5854@krafla.rhi.hi.is> <jpugh-191292130340@kip2-42.apple.com>
- Date: Wed, 23 Dec 1992 07:27:36 GMT
- Lines: 10
-
- In one of my products I implemented a data type I called an
- ExtendedControlHandle : it was a handle to a record that had long
- min, max, values, and a scale factor and a control handle. I wrote
- GetExCtlValue(), GetExCtlMin(), and GetExCtlMax(), and the corresponding
- set functions. These stored the actual value in the ExCtlRec, scaled it
- by the scale factor, and put the result into the ownded control. The
- remaining thing you need is ResolveExCtl(), which you call after the user
- drags the thumb of the control using the mouse, which reads the current
- control value, scales it, and stores it in the value field of the extended
- control record. The whole thing is about one page of code.
-