Path: utzoo!utgpu!water!watmath!clyde!att!ucbvax!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Drawing on widgets [was: Drawing lines with the Xtool kit] Message-ID: <8809261146.AA12438@LYRE.MIT.EDU> Date: 26 Sep 88 11:46:38 GMT References: <4361@thorin.cs.unc.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 4 The principal error in your code is that you are not waiting for the window to be mapped before drawing on it. The best way to accomplish this is to move all your drawing code into the Expose procedure of a new widget.