Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!decwrl!gilroy.pa.dec.com!klee From: klee@gilroy.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: 'hiding' a widget AND constraining a widget. Keywords: X Xt widget Message-ID: <1763@bacchus.dec.com> Date: 1 Sep 89 21:30:18 GMT References: <297@oscsuna.osc.edu> Sender: news@decwrl.dec.com Distribution: usa Lines: 21 In article <297@oscsuna.osc.edu>, spencer@heinlein.osc.edu (Stephen Spencer) writes: > 1. Is there a way that I can 'turn a widget off'; set some flag so that it > does not get drawn? XtUnmapWidget does what you want directly. There are also indirect methods such as the "mapped when managed" resource. > > 2. I have a popup window, a dialog box really, which I do not want the user > to be able to move while it is popped up. I take it you mean moving the window with a window manager. There are 2 ways to do this. The easy way is to create your popup in an override shell. An alternative, which may be more appropriate to some applications, is to create the popup in a transient shell, then give your window manager special instructions (this is window manager dependent) for handling transient windows. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee