Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Reginald Perry
Mon, 14 Sep 1992 19:47
How to use ScrollView?
Author: Reginald Perry
Date: Mon, 14 Sep 1992 19:47
Date: Mon, 14 Sep 1992 19:47
26 lines
1511 bytes
1511 bytes
>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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads