Path: utzoo!attcan!uunet!husc6!bbn!oberon!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga Subject: Re: Clearing Gadget Imagery Message-ID: <12087@oberon.USC.EDU> Date: 10 Sep 88 05:10:54 GMT References: <8423@watdragon.waterloo.edu> Sender: news@oberon.USC.EDU Reply-To: papa@pollux.usc.edu (Marco Papa) Distribution: na Organization: Felsina Software, Los Angeles, CA Lines: 25 In article <8423@watdragon.waterloo.edu> bmacintyre@watsol.waterloo.edu (Blair MacIntyre) writes: > >I'm posting for a friend who has the following question: > > How do you clear gadget imagery once it has been rendered? > ( I know how to remove gadgets from the system, but the > image stays there ) I use the following trick to generate a "window" with background different from the parent screen, which should also work for you. Remove all the gadgets you want SetRast(w->RPort, back); /* back is new fore in MY case, not yours */ RefreshWindowFrame(w); AddGList(w, gad, -1, -1, NULL); RefreshGadgets(w->FirstGadget,w,NULL); This might cause a "flash" but should do the job. -- Marco Papa 'Doc' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=