Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Athena Widget Set Message-ID: <9006122017.AA26936@expo.lcs.mit.edu> Date: 12 Jun 90 20:17:27 GMT References: <9006121942.AA19570@Todi.ORC.Olivetti.Com> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 43 > text widgets stop accepting > any inputs. I don't see any connection between the two. Can you help me? I have seen this behavior in R3, it seemed to be an interaction between Xt and the window manager's focus management stuff. I believe that this was fixed in R4, however. If you are running R4 and still having the problem, send me a SHORT example program, and I will take a look. > Also, I would like to use a toggle widget. But it seems that Chris Peterson has > mentioned in the code for Toggle.c that... This was necessary to allow the Toggle to override the Command's set() action. The hack I had to add is still necessary in R4, but the Toggle does work just fine. It should only affect you if you are subclassing your own widgets. > I was told that toplevel shell can have only child, but it seems to me that > the popup shell is also a child of toplevel. Am I wrong? There are two types of Children in Xt, Popup children and Normal children. Popup children are things like menus and dialog boxes. The shell can have only 1 normal child, but any number of popup children. Popup children are not managed by the geometry manager of their parent, and are not sub-windows of their parent's window. > Suppose I have a cmdBtn which calls XtPopup ,to popup a dialog box with done and > cancel buttons,in it's callback function. In the DialogDone or DialogCancel > function, is it possible to find out the name of that cmdBtn? The callback functions return the widget that caused them to be invoked (in this case the command buttons) You can retreive the name of the Command button by using the XtName() function on the widget argument to the callback routine. > Thanks a LOT. Manu Das You're welcome. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213