Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!caesar.cs.montana.edu!ogicse!decwrl!asente From: asente@decwrl.dec.com (Paul Asente) Newsgroups: comp.windows.x Subject: Re: Command widgets and ancestorSensitive Message-ID: <2853@bacchus.dec.com> Date: 22 Feb 90 06:28:30 GMT References: <4027@hub.UUCP> Distribution: comp Organization: DEC Western Software Lab Lines: 24 In article <4027@hub.UUCP> tom@bears.ucsb.edu writes: >I have a Box widget that contains a number of Command widgets, and I >want to be able to change their sensitivity. Ideally, I would like to >be able to do this by just changing the sensitivity of the Box widget >that is their parent. This doesn't seem to work, however. > >If I set the sensitivity explicity when I create the Box widget, the >Command widgets have the specified sensitivity. If, on the other hand, >I set the sensitivity of the Box with XtVaSetValues, it doesn't seem to >change the sensitivity of the children. > >Am I doing something wrong, or do I misunderstand something, or is this >a bug? You're doing something wrong. There are two ways to change sensitivity: - When you create the widget by using the XtNsensitive resource. - Later on, by using XtSetSensitive. XtSetSensitive has the logic in it for setting the children of the specified widget insensitive. -paul asente asente@decwrl.dec.com decwrl!asente