Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!ispd-newsserver!ism.isc.com!ico!auto-trol!marbru
From: marbru@auto-trol.com (Martin Brunecky)
Subject: Re: widget name -> widget
Message-ID: <1991Apr16.152333.3767@auto-trol.com>
Reply-To: marbru@auto-trol.UUCP (Martin Brunecky)
Organization: Auto-trol Technology, Denver
References: <1991Apr10.003309.10438@marlin.jcu.edu.au> <1991Apr10.161839.3589@sj.nec.com> <GNB.91Apr11172247@leo.bby.oz.au>
Date: Tue, 16 Apr 1991 15:23:33 GMT

In article <GNB.91Apr11172247@leo.bby.oz.au> gnb@bby.oz.au (Gregory N. Bond) writes:
>>>>>> On 10 Apr 91 16:18:39 GMT, achan@sparkle.nec.com (Amy Chan) said:
>
>A gotcha with this: It only succeeds on children that are real,
>fairdinkum managed children of a composite widget - I assume because
>it looks at the composite.num_children and composite.children fields.
>Some widgets have "hidden" children that are XtCreate'd but not
>managed (composite dialog boxes, sources or sinks for text widgets
>etc) where the pointer to the child widget is stored somewhere in the
>parent widget instance record.  XtNameToWidget cannot find these.
>
   Any widget created by XtCreate... is added to either composite.children
   or the popup list. Does not matter if it's "fairdinkum managed" or
   unmanaged. The only way to create an "orphan" widget is to
   use a non-composite parent, which (IMHO) is not a good practice,
   (in fact, I'd prefere to make it illegal).

   Athena Text source/sink are aparent examples of the later; IMHO this
   widget should be a composite. Or it should create source/sink as
   children of the Text's parent (which opens yet another can of worms).

   Composite dialog boxes are (normally) subclass of Composite, so there
   should be no problem ...

 -- Martin

-- 
=*= Opinions presented here are solely of my own and not those of Auto-trol =*=
Martin Brunecky                           {...}sunpeaks!auto-trol!marbru
(303) 252-2499                        (sometimes also:  marbru@auto-trol.COM )
Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404 
