Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Problems on changing borderWidth in Athena text widget & using accelerators focusing input Message-ID: <9007021943.AA19873@expo.lcs.mit.edu> Date: 2 Jul 90 19:43:24 GMT References: <9007021835.AA06703@mn.ecn.purdue.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 29 > I make my own globe action function > to change the borderwidth resource by using XtSetValues. > But it does not do anything to the window. I suspect that your parent widget is disallowing this geometry change. Many of the Athena Constraint widgets disallow the geometry requests of their children by default. Check the docs for the parent, to see of it supports an "allowResize" or some such constraint resource. As a side note: I have done this sort of thing often, and have found that setting the border color == background is almost always better, it avoids the size of the Text widget changing, and results in less user confusion. Personal preference, but at least consider it. This is what the Athena Text widget's Search dialog does in R4, BTW. > The second problem is about using accelerator: I'll leave this to someone more familiar with accelerators. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213