Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Xlib drawing routines in DEC widgets Message-ID: <9002091851.AA01326@expo.lcs.mit.edu> Date: 9 Feb 90 18:51:16 GMT References: <9002081943.AA01411@brahms.cs.byu.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 12 > I also defined a widget for drawing (lines, rectangles > etc.) by using the DwtWindow call. I get the screen, display, and > window from the XtScreen, XtDisplay, and XtWindow calls using > the widget I defined for drawing as the argument for these calls. > When I then use these returned values to XDrawLine the line will not > appear on the display. The error is probably that didn't know that you have to wait until you receive the first expose event on the drawing widget's window before you begin to draw. converse@expo.lcs.mit.edu