Path: utzoo!attcan!uunet!decwrl!wuarchive!cs.utexas.edu!oakhill!razdan From: razdan@chanakya.oakhill.uucp (Anshuman Razdan) Newsgroups: comp.windows.x Subject: Re: How do I erase XDrawLine()? Message-ID: Date: 11 Jul 90 20:06:32 GMT References: <390@bohra.cpg.oz> Sender: news@oakhill.UUCP Organization: Motorola Inc., SPS CAD, Austin, Texas. Lines: 33 In-reply-to: ejp@bohra.cpg.oz's message of 10 Jul 90 09:05:13 GMT -----On 10 Jul 90 09:05:13 GMT, ejp@bohra.cpg.oz (Esmond Pitt) said: Esmond> Article-I.D.: bohra.390 Esmond> Posted: Tue Jul 10 04:05:13 1990 Esmond> I am doing some XDrawLine()'s in an expose callback of a Motif Esmond> Drawing Area widget. Nobody but me knows these lines are on Esmond> the screen. [Good reasons exist for all this.] Esmond> My question is, what is the approved way to erase the lines Esmond> again? I'd rather not just blast away with XClearArea(). Esmond> -- Esmond> Esmond Pitt, Computer Power Group Esmond> ejp@bohra.cpg.oz Esmond> D Use XDrawLines with GXxor mode in the GC. Now if you draw the lines again they will erase themselves. -- Anshuman Razdan Motorola Sector CAD Internal: razdan@chanakya Austin Tx Internet: razdan@chanakya.sps.mot.com ****************************************************************** * * * PS: All opinions are my own and my employers have their own * * which of course, most probably, in all honesty, as far * * as I know, which sure is a guess, do not coincide with mine. * * * ******************************************************************