Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!cps3xx!usenet From: usenet@cps3xx.UUCP (Usenet file owner) Newsgroups: comp.sys.amiga.tech Subject: ScrollRaster + SIMPLEREFRESH windows Summary: Help Keywords: ScrollRaster() Message-ID: <3502@cps3xx.UUCP> Date: 21 Jun 89 19:46:53 GMT Reply-To: porkka@frith.UUCP (Joe Porkka) Followup-To: comp.sys.amiga.tech Organization: Michigan State University Lines: 27 References: I am writing a program that needs to manage several windows with text that can scroll up and down in them. I am using SIMPLEREFRESH windows to save memory, and because it is easy for the program to refresh things anyway. The function ScrollRaster says it does not update damage regions properly. So, how do I get that info so that I can refresh properly? It is a problem with there is another window partly overlapping my window when the contents get scrolled. My main loop looks like this: moved=0; do { /* NOTE: the below line is more complicated than that. It figures out which windows have scrolled */ if(moved) {refresh(window); moved=0;} Wait(sigs); While(GetMsg(port)!=0) { do stuff; /* set the moved flag if we scroll a window */ } } Is there a better way to do this? Will ScrollRaster be fixed in future releases? Or will there be a ScollRegion call? Or, do I need to write a ScrollRegion type call? REAL NAME: Joe Porkka jap@frith.cl.msu.edu