Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!purdue!iuvax!rutgers!usc!bloom-beacon!athena.mit.edu!jstravis
From: jstravis@athena.mit.edu (John S. Travis)
Newsgroups: comp.windows.x
Subject: Graphics Contexts
Message-ID: <13369@bloom-beacon.MIT.EDU>
Date: 8 Aug 89 21:42:14 GMT
References: <8908072258.AA09399@expo.lcs.mit.edu>
Reply-To: jstravis@athena.mit.edu (John S. Travis)
Organization: Massachusetts Institute of Technology
Lines: 13


	I'm confused about the creation and uses of GCs. What
is the real difference between XCreateGC and XtGetGC. Supposedly,
I'm not supposed to moidify a GC created by XtGetGC but I have and
it *seems* to work. I have some bugs, but I'm not sure where.
What should I use when I have many options as in a draw program.
Maintain multiple GCs and flip back & forth or modify existing?
For example, I allow 4 font sizes. Should i have 4 GC or one
in which i uses XSetFont? I've read Young's book and Oliver Jones'
X window book but am still confused. Thanks for any advice.

john travis
jstravis@athena.mit.edu