Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!decwrl!decwrl!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: XtWindow(w) HELP!!!!! Message-ID: <4704@bacchus.dec.com> Date: 8 Jun 90 16:41:35 GMT References: <110318@linus.mitre.org> Sender: news@decwrl.dec.com Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 18 In article <110318@linus.mitre.org>, cookson@helios.mitre.org (Cookson) writes: > I'm trying to draw to a workspace widget that is not the top most widget > in a window. When I use the window returned by XtWindow, I get a > bad drawable error. What am I doing wrong??? Most likely, you are not realizing the widget before trying to extract the window ID. Note that the best way to solve this problem is to write your own widget that gives you a drawing area and provides the appropriate interfaces to exposure and other X events. Alternatively, you can use a general purpose drawing widgets, such as the one in Motif or the one outlined in the MIT intrinsics manual. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee