Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!oscsuna.osc.edu!heinlein.osc.edu!spencer From: spencer@heinlein.osc.edu (Stephen Spencer) Newsgroups: comp.windows.x Subject: 'hiding' a widget AND constraining a widget. Keywords: X Xt widget Message-ID: <297@oscsuna.osc.edu> Date: 1 Sep 89 19:36:29 GMT Sender: news@oscsuna.osc.edu Distribution: usa Lines: 25 I have two questions concerning widgets. I am running X V11 R3 on a Sun 3/60 with the HP widget set (from expo.lcs.mit.edu). I am a relative newcomer to writing user-interface code using X, having done lots of it in SunView. My questions are these: 1. Is there a way that I can 'turn a widget off'; set some flag so that it does not get drawn? In SunView, one can set the PANEL_SHOW_ITEM field of a button, etc. to FALSE and that will do what I want. I have not found anything similar (yet) in X. 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. Any ideas out there as to how that might be accomplished? I tried adding an event handler for MotionNotify events to the popup widget (a transientShellWidget) to no success. I know it can be done, the popups in FrameMaker under X do this. Any help is greatly appreciated. -=- Stephen N. Spencer |"For a successful technology, reality must take ACCAD, 1224 Kinnear Rd. | precedence over public relations, for Nature Columbus OH 43212 | cannot be fooled." - Richard P. Feynman spencer@heinlein.cgrg.ohio-state.edu OR spencer@cis.ohio-state.edu