Path: utzoo!attcan!uunet!husc6!bloom-beacon!RIACS.EDU!davy From: davy@RIACS.EDU Newsgroups: comp.windows.x Subject: Re: background pixmap in a widget Message-ID: <8812121739.AA05913@intrepid.riacs.edu> Date: 12 Dec 88 17:39:27 GMT References: <8812121707.AA09186@LYRE.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 32 From: Ralph R. Swick Date: Mon, 12 Dec 88 12:06:59 EST Subject: Re: background pixmap in a widget > Thanks -- works like a charm. I made the mistake of looking at ... awk! don't look at the implementation, look at the specification. (I know this is difficult for died-in-the-wool Unix folks, but the X religion is supposed to be good for others, too :-). Yeah, but... I didn't really see anything in the manual that said "the default realize proc just calls XtCreateWindow" or whatever. It says that a realize proc should call this, but it doesn't say that's *all* it needs to do. Of course, part of the problem might be that I'm just new to all this widget stuff. The R3 docs are *much* better than the R2 docs in this respect, but there could still be a little more. Maybe O'Reilly or someone will come out with a "Programing the X Toolkit" and this will all be resolved anyway... BTW, don't forget to free your generated resources in a destroy procedure. Although server resources will usually be freed when a client closes the connection, it's reasonable for a widget client to create and destroy a widget multiple times on a single connection. Thanks for the tip. --Dave