home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- 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
- From: reggie@milton.u.washington.edu (Reginald Perry)
- Subject: How to use ScrollView?
- Message-ID: <reggie.716500042@milton>
- Summary: How do I handle large docViews?
- Keywords: scrollview scrolling draw drawself
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Date: Mon, 14 Sep 1992 19:47:22 GMT
- Lines: 28
-
- >In article <1992Sep10.070945.13964@urz.unibas.ch> frank@ifi.unibas.ch writes:
- >>How do I tell the scrollview (per software) to scroll to the top of the view?
-
- > id clipview;
- > NXPoint pt;
- >
- > pt.x = pt.y = 0; // assumes flipped coordinates (0 at top)
- > clipview = [[scrollview docView] superview];
- > [clipview rawScroll:&pt];
- > [scrollview reflectScroll:clipview];
-
- >--
- >Ray Spalding, Office of Information Technology
- >Georgia Institute of Technology, Atlanta Georgia, 30332-0715
- >Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
-
-
- In a similar vein, I would like to be able to scroll my view.
- The problem I am having is that the docView is bigger than the
- possible visible view. I get the visible rectangle and draw in it, but
- when I call display: I get logged off! I was wondering were there any
- good examples of drawself routines that are integrated in a
- ScrollView. Thanks for the help.
-
-
- Reggie
-
-
-