Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!bellcore!jello!aw From: aw@jello.bae.bellcore.com (Andrew Wason) Newsgroups: comp.windows.x.motif Subject: Re: how do I refresh widgets inside a drawing area Keywords: refresh widgets Message-ID: <1991Apr15.195138.25002@bellcore.bellcore.com> Date: 15 Apr 91 19:51:38 GMT References: <571@clbull.frcl.bull.fr> Sender: usenet@bellcore.bellcore.com (Poster of News) Reply-To: aw@jello.bae.bellcore.com (Andrew Wason) Organization: Bell Communications Research Lines: 23 In article <571@clbull.frcl.bull.fr>, pierrest@cl.bull.fr (Frederic Pierresteguy) writes: > I have drawn pictures inside a drawing area widget and also > put several drawn button widgets. > > I use "XCopyArea" to copy the pictures (done with the Xlib functions) > from a pixmap to the drawing area. Then, my drawn buttons become hidden > by the pictures. > If there any possibility to tell the drawing area: "Now, redraw your > children (the drawn buttons) to get them visible". Anything you draw into the XmDrawingArea should be clipped by the windows of it's children, unless you set subwindow_mode to IncludeInferiors in your GC. If you didn't do that, then are you sure that the child buttons are Widgets and not Gadgets? Gadgets don't have windows so your graphics wouldn't be clipped. Andrew _______________________________________________________________________________ Andrew Wason Bell Communications Research aw@bae.bellcore.com Piscataway, NJ bellcore!bae!aw