Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R Swick) Newsgroups: comp.windows.x Subject: Re: Text widget question #3862195 Message-ID: <8902221913.AA27052@LYRE.MIT.EDU> Date: 22 Feb 89 19:13:01 GMT References: <8902221656.AA24640@tub.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 29 Date: Wed, 22 Feb 89 17:56:11 +0100 From: Oliver Laumann I don't understand why it is possible to set the ``edit type'' resource of an AsciiDisk or AsciiString widget (i.e. by passing an argument with the name XtNeditType to XtCreateWidget()). Look at XtSetSubvalues() and Core.set_values_hook Neither the AsciiDisk (or AsciiString) nor the Text widget class declares such a resource, nor does a call to XtGetResourceList() return an ``edit type'' resource. Correct. It is obviously possible to set resources for a widget that are neither defined in the widget's class nor in a super class nor by the parent widget's constraints. Yes, the hooks are put there for many purposes, not all of them benign. Is there a way for the application programmer to obtain a list of these resources similar to XtGetResourceList() for ``normal'' resources? No, not in general. Such resources are effectively hidden from the Intrinsics and unless the widget class itself exports a way to retrieve the list of extra resources, you're out of luck.