Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!husc6!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x Subject: Re: XmText - Questions Message-ID: <1990Jul3.200422.3104@alphalpha.com> Date: 3 Jul 90 20:04:22 GMT References: <2280@laura.UUCP> Organization: asi Lines: 30 In article <2280@laura.UUCP> muenx@heike.informatik.uni-dortmund.de (Holger Muenx) writes: > Text-Widgets. If I press the key in one widget the next text > widget should automatically be activated so that the user can continue Using TabGroups will make the Tab key do this, it should be straightforward to add a translation so that the Return key does as well. I don't know why this isn't the default, except that in dialog boxes return is mapped to clicking on the default button. >2. I have written an application which uses different windows. I create a > new window using the XmBulletinBoard-class. Text-Widgets in my main-window > call their callback without any problem. Text-Widget in BulletinBoards > refuse to call their callback. What's my mistake? See the sample code > below my signature. It created two text-widgets, one in the main-window > and one in the new BulletinBoard. As above, return is mapped to invoking the default button in a dialog box, I wouldn't be supprised if the bulletin board (which doubles as the thing that handles dialog box translations) is getting in the way here. You may be able to override, but I think that using activate in a text widget is dangerous. What if the user types something but doesn't press return. As far as they can tell it is there, but you haven't seen it. I'd tend to instead have a confirm button somewhere which gathers up the contents of you text widgets. -- Alphalpha Software, Inc. | motif-request@alphalpha.com nazgul@alphalpha.com |----------------------------------- 617/646-7703 (voice/fax) | Proline BBS: 617/641-3722 I'm not sure which upsets me more; that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.