Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucsd!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: converse@expo.lcs.mit.EDU Newsgroups: comp.windows.x Subject: Re: Two Athena widget questions. Message-ID: <9103281952.AA15167@excess.lcs.mit.edu> Date: 28 Mar 91 19:52:48 GMT References: <1991Mar28.161320.4648@thunder.mcrcim.mcgill.edu> Sender: tytso@athena.mit.edu (Theodore Y. Ts'o) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 31 2) Is the promise that an asciiTextWidget will call a callback when the data is modified a lie? I can't seem to register the callback. The promise that I'm referring to is in Section 5.5.1 of the Athena Widget Set docs. Under a description of the AsciiText resources, the entry for callback is: callbacks The callbacks registered on this resource will be called every time the text buffer changes. This is an AsciiSrc resource. The Ascii Text widget does not have a callback resource. Add the callback to the Ascii Source, not the Ascii Text. You can do GetValues on the AsciiText's textSource resource to get the source object, and add the callback to the source object. 1) Is there any way to get a viewport widget to recognize a child downsize? No matter what I try (short of rewriting the Viewport widget), any requests that result in reducing the size of the child widget leave the effective viewport exactly the same size. This may due to the Viewport's handling of its child's request for a size change, or it may be due to the Viewport's parent's handling of the Viewport's request for a size change, or it's parent's parent, and so on, on up to the Shell. I don't have any more time now. Donna Converse