home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20233 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.1 KB  |  22 lines

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