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

  1. Path: sparky!uunet!usc!sdd.hp.com!nigel.msen.com!yale.edu!ira.uka.de!chx400!urz.unibas.ch!lucy.ifi.unibas.ch!news
  2. Newsgroups: comp.sys.next.programmer
  3. Subject: how to scroll a view on demand?
  4. Message-ID: <1992Sep10.070945.13964@urz.unibas.ch>
  5. From: frank@ifi.unibas.ch (Robert Frank)
  6. Date: Thu, 10 Sep 1992 07:09:45 GMT
  7. Reply-To: frank@ifi.unibas.ch
  8. Sender: news@urz.unibas.ch (USENET News System)
  9. Organization: Institut fuer Informatik
  10. Keywords: scroll, IB
  11. Nntp-Posting-Host: woodstock.ifi.unibas.ch
  12. Lines: 27
  13.  
  14.  
  15. Something simple for the IB-gurus (I'm a beginner):
  16.  
  17. The setup: I have a scrollview with a view as it's docView. The View's rectagle  
  18. is larger than the visible area of the scrollviews docView - making the  
  19. vertical scroller visible and functional. 
  20. When displaying the window the scroller is at bottom of the bar and I see the  
  21. bottom of the view.
  22.  
  23. How do I tell the scrollview (per software) to scroll to the top of the view?
  24. I've tried the -scrollRect:by: method for views but with no luck. I know how to  
  25. place and size the scroller itself but not how to actually scroll the view.
  26.  
  27. The examples I have looked at all use matrixes as docViews which allow easy  
  28. scrolling to any position.
  29.  
  30. Any help appreciated.
  31.  
  32. -Robert
  33.  
  34. --
  35. Robert Frank                         tel. + (061) 321 99 67                 
  36. Institut fuer Informatik             fax  + (061) 321 99 15                 
  37. University of Basel, Switzerland                                            
  38. Mittlere Strasse 142      rfc822: frank@ifi.unibas.ch (NeXT mail accepted)  
  39. CH-4056 Basel          X400: S=frank;OU=ifi;O=unibas;P=switch;A=arcom;C=ch
  40.                    ( if all fails try frank@urz.unibas.ch )
  41.