Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!decwrl!sun!quintus!pds From: pds@quintus.UUCP (Peter Schachte) Newsgroups: comp.sys.amiga Subject: Clipping Keywords: windows clipping rastport Message-ID: <658@sandino.quintus.UUCP> Date: 17 Feb 88 21:34:20 GMT Organization: Quintus Computer Systems, Mountain View, CA Lines: 24 A question for all you Gurus (sorry if this is an old, stale question): what is the blessed way to clip stuff to the inside of a window? I don't want to waste the space of a SMART_REFRESH or GIMME_ZERO_ZERO window, I'm using SIMPLE_REFRESH. Right now I'm just displaying text, but later I may want to do graphics in my window. I don't want to have to clip everything I put in the window myself, I want the system (hardware?) to do it for me. What I've been doing is changing the window's clipping rectangle before I draw, and resetting after I'm done. The problem with this is that when I have a scroll bar in the right margin of my window, and I mouse in it while my code is redrawing the contents of the window, the elevator box in the scroll bar is not changed. I suppose I could forbid()/permit() around my drawing, but it may take a while to fill the window, and this doesn't seem very sporting. Or I could try to redraw the window in small installments, and forbid()/permit() around them. But what I'd really like is to have my own clipping rectangle for the inside of the window, like a GZZ window, without having the overhead of another bitmap. Any suggestions? -- -Peter Schachte pds@quintus.uucp ...!sun!quintus!pds