🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by Scott R Violet Fri, 22 Jan 1993 23:30
Query about Scroll Views
#2261
Author: Scott R Violet
Date: Fri, 22 Jan 1993 23:30
19 lines
1455 bytes
HI all,
	I am a little confused about the nature of the scroll view.
The confusion of course comes from ignorance about the behavior of the
scroll view.  Anyway, I am wondering just how a scroll view works.
For example, in digital librarian you type in a search and get a bunch
of icons below with the results.  Usually the list is more then a
screen full, so you have to use the scroller.  What I am wondering is
if DL actually has to recalculate and redraw the scroll view each time
it is scrolled.  Or, is there some tricky way to do it so that the
scroll view actually does the recalculated and what not.  I guess what
it comes down to is, if I want scrollable graphics, do I need to
overwrite the drawself with some code to calculate what should be
redrawn in the doc view of the scroll view?  I hope that I haven't
been to general in my question, but any input would be great.
Thanks in advance,
-- 

		-Scott Violet (xepo@csd4.csd.uwm.edu)
Re: Query about Scroll Views
#2341
Author: Nick Kline
Date: Tue, 26 Jan 1993 05:27
32 lines
1877 bytes

+	I am a little confused about the nature of the scroll view.
+The confusion of course comes from ignorance about the behavior of the
+scroll view.  Anyway, I am wondering just how a scroll view works.
+For example, in digital librarian you type in a search and get a bunch
+of icons below with the results.  Usually the list is more then a
+screen full, so you have to use the scroller.  What I am wondering is
+if DL actually has to recalculate and redraw the scroll view each time
+it is scrolled.  Or, is there some tricky way to do it so that the
+scroll view actually does the recalculated and what not.  I guess what
+it comes down to is, if I want scrollable graphics, do I need to
+overwrite the drawself with some code to calculate what should be
+redrawn in the doc view of the scroll view?  I hope that I haven't
+been to general in my question, but any input would be great.
+Thanks in advance,
+-- 
+


The way this usually works is you keep adding things to the scrollview.
So your view inside the scrollview is bigger than the scrollview
(ie you are showing only the first 15 lines of a 200 line scrollview)

When the user scrolls the window or scrollview or whatever, your view
gets a message that says to redraw the part of the view that is now visible.

So you only need to remember how to redraw that part of the view.  Another
solution is to draw your image somewhere else (another, offscreen view)
and just copy from there back to the screen.

-nick
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