🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37166

Command widgets and ancestorSensitive

#37166
From: Tom Weinstein
Date: Thu, 22 Feb 1990 01:39
23 lines
1502 bytes
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.

I have managed to do what I want by doing a XtVaGetValues on the Box
widget to get a list of the children, and then setting sensitivity on
each one individually, but I would rather just change it on the Box
widget.

Am I doing something wrong, or do I misunderstand something, or is this
a bug?


--
It does not do to leave a dragon | Tom Weinstein  ...ucbvax!hub!ucsbuxa!6600tom
out of your calculations, if you | 6600tom@ucsbuxa.bitnet  tom@bears.ucsb.edu
live near him.  --J.R.R. Tolkien | 6600tom@ucsbuxa.ucsb.edu tomw@cornu.ucsb.edu
Technical Details
Message-ID: <4027@hub.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!mintaka!ogicse!ucsd!hub!tom

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!mintaka!ogicse!ucsd!hub!tom
From: tom@capella.ucsb.edu (Tom Weinstein)
Newsgroups: comp.windows.x
Subject: Command widgets and ancestorSensitive
Message-ID: <4027@hub.UUCP>
Date: 22 Feb 90 01:39:55 GMT
Sender: news@hub.UUCP
Reply-To: tom@bears.ucsb.edu
Distribution: comp
Organization: Kingdom of Oz, Department of Wizardry
Lines: 23