Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!ucsd!rutgers!netnews.upenn.edu!kings.wharton.upenn.edu!jones From: jones@kings.wharton.upenn.edu (Christopher V. Jones) Newsgroups: comp.windows.x Subject: XCreateGC vs XtGetGC Message-ID: <25261@netnews.upenn.edu> Date: 25 May 90 15:17:33 GMT Sender: news@netnews.upenn.edu Reply-To: jones@kings.wharton.upenn.edu (Christopher V. Jones) Organization: desci Lines: 20 I am currently using R3 of the X toolkit and need to use a non-shareable graphics context for a new widget that I am building. According to the Nutshell books, I need to use XCreateGC rather than XtGetGC. All well and good. Except that when should I call XCreateGC. Originally I put it in the Initialize method for the widget, but it choked because the widget was not yet realized. XtGetGC worked just fine (at least the GC was created). I suspect that I should call XCreateGC in the Realize\ method for the widget, but wanted to know if that was correct. If this is a silly question, my apologies. Christopher V. Jones Department of Decision Sciences The Wharton School The University of Pennsylvania Philadelphia, PA 19104 215-898-7290 JONES@wharton.upenn.edu