home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6150 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!milton!reggie
  3. From: reggie@milton.u.washington.edu (Reginald Perry)
  4. Subject: How to use ScrollView?
  5. Message-ID: <reggie.716500042@milton>
  6. Summary: How do I handle large docViews?
  7. Keywords: scrollview scrolling draw drawself
  8. Sender: news@u.washington.edu (USENET News System)
  9. Organization: University of Washington
  10. Date: Mon, 14 Sep 1992 19:47:22 GMT
  11. Lines: 28
  12.  
  13. >In article <1992Sep10.070945.13964@urz.unibas.ch> frank@ifi.unibas.ch writes:
  14. >>How do I tell the scrollview (per software) to scroll to the top of the view?
  15.  
  16. >    id clipview;
  17. >    NXPoint pt;
  18. >    
  19. >    pt.x = pt.y = 0;    // assumes flipped coordinates (0 at top)
  20. >    clipview = [[scrollview docView] superview];
  21. >    [clipview rawScroll:&pt];
  22. >    [scrollview reflectScroll:clipview];
  23.  
  24. >-- 
  25. >Ray Spalding, Office of Information Technology
  26. >Georgia Institute of Technology, Atlanta Georgia, 30332-0715
  27. >Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
  28.  
  29.  
  30.     In a similar vein, I would like to be able to scroll my view.
  31. The problem I am having is that the docView is bigger than the
  32. possible visible view. I get the visible rectangle and draw in it, but
  33. when I call display: I get logged off! I was wondering were there any
  34. good examples of drawself routines that are integrated in a
  35. ScrollView. Thanks for the help.
  36.  
  37.  
  38.                         Reggie
  39.  
  40.  
  41.