home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / hypercar / 3397 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.9 KB

  1. Path: sparky!uunet!olivea!hal.com!decwrl!csus.edu!netcom.com!boserj
  2. From: boserj@netcom.com (Jeffrey Boser)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: <None>
  5. Message-ID: <t!sn!sn.boserj@netcom.com>
  6. Date: 9 Sep 92 02:50:00 GMT
  7. References: <1992Sep8.175152.1@rulfsw.leidenuniv.nl>
  8. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  9. Lines: 35
  10.  
  11. buurt1@rulfsw.leidenuniv.nl (Jasper Kips) writes:
  12. >This is a question about scrolling fields. For a stack I need 5 or 6 
  13. >fields to scroll simulteanueosly. Is there a way to do this??
  14. >Let me clarify : if the scroll of 1 scrolling field changes the scroll
  15. >of the other fields need to change to, prefably at the same time.
  16.  
  17. After some serious investigation, I hit upon a way of handling some
  18. basic scrolling of multiple fields..  its clunky, but it seems to
  19. work.
  20.  
  21. Firstly make a field that is entirely scrollbar.  this is the controller..
  22. in the font dialog boxes of all the fields you want to scroll, make sure
  23. you got the same font, same line height, and fix it.  also make sure you
  24. keep the lines in each field the same..  to make sure the fields dong
  25. get out of alignment.
  26.  
  27. Make two buttons to cover up the the up and down arrows.  make them
  28. transparent.  Use their mousedown scripts to handle scrolling up
  29. and down in all the fields by a line at a time, using set scroll of..
  30.  
  31. To handle the scrolling by the thumb and grey page up and down areas,
  32. let the scroll bar scroll.  In the card's IDLE script, check every
  33. second if the scroll of the scroll bar is the same as one of the
  34. fields, if different, set the scroll of them all to that of the
  35. scroll bar.
  36.  
  37. If you want to disable other scrollings, cover up any extranious scroll
  38. bars with cover fields..
  39.  
  40. Hypercard's implementaiton of scrolling is really pathetic..  It should
  41. have made a scrollbar object to link with a field..  instead of the
  42. damn field being the scroller too.
  43.  
  44.  
  45. .....jeff
  46.