Path: utzoo!utgpu!watmath!att!dptg!rutgers!apple!usc!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Access to Widget List in Composite Part. Message-ID: <8908301555.AA27189@LYRE.MIT.EDU> Date: 30 Aug 89 15:55:53 GMT References: <3809@ncsuvx.ncsu.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 17 > I wish there was a macro to access the structure "WidgetList children", in > the Composite part. Right now, the only way I can do it is to #include > IntrinsicP.h, which is ugly. If you are writing a widget (sub)class, then including IntrinsicP.h is a normal and expected thing to do. If you are writing an application and want to see the widget list, then you're out of luck until R4 at which time you will be able to do XtGetValues to retrieve these. > Furthermore, I do believe that "WidgetList > children" and "Cardinal num_children" in Composite part should be moved > to CorePart. Perhaps, but its not a source-compatible change for widgets (Xt _is_ a standard now) and it's not clear that this is the most efficient use of memory in the typical case. You are welcome to make all your own widgets subclasses of Composite if you wish.