Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!haven!mimsy!tove.umd.edu!tian From: tian@tove.umd.edu (jianhui Tian) Newsgroups: comp.windows.x Subject: How to erase lines and rectangles? Message-ID: <18556@mimsy.UUCP> Date: 14 Jul 89 20:58:04 GMT Sender: nobody@mimsy.UUCP Reply-To: tian@tove.umd.edu (jianhui Tian) Organization: University of Maryland, Dept. of Computer Sci. Lines: 21 Help! Help! I am a new X window system user. In the process of writing applications, I have encountered with the problem or erasing lines and blocks. [Acturally I am trying to make blocks(rectangles) appear to be moving by erase the old ones and redraw the new ones] I have tried both XClearArea() and XFillRectangle() But none of them worked. It seems that XClearArea only works in text windows; and XFillRectangle only toggles the initial contents inside the rectangle area. Can anyone in the net tell me what Xlib function to use.... Thanks a lot in advance. Jeff Tian