Path: utzoo!attcan!uunet!lll-winken!brutus.cs.uiuc.edu!usc!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: 'hiding' a widget AND constraining a widget. Message-ID: <8909012050.AA29578@LYRE.MIT.EDU> Date: 1 Sep 89 20:50:36 GMT References: <297@oscsuna.osc.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 21 > Is there a way that I can 'turn a widget off'; set some flag so that it > does not get drawn? Look at the mappedWhenManaged resource, and the XtSetMappedWhenManaged function. This is probably what you want. > 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. This depends entirely upon the window manager. Your best bet is to make your popup a transient (using TransientShell, or a variant), and hope that the window manager will conspire with you to give the user less control over the window. However, there's no way to absolutely guarantee that no window manager will ever allow the user to reposition the window (the user signed the check, after all :-). If the popup is always drawn entirely in the confines of one of your application windows, then you could consider making the popup window a subwindow of the application window rather than a separate top-level window.