Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!newstop!sun!argv From: argv@turnpike.Eng.Sun.COM (Dan Heller) Newsgroups: comp.windows.x.motif Subject: Re: Text Widget In Popup Dialog Message-ID: <141713@sun.Eng.Sun.COM> Date: 31 Aug 90 23:03:52 GMT References: <1990Aug31.171033.24291@elroy.jpl.nasa.gov> Sender: news@sun.Eng.Sun.COM Organization: O'Reilly && Associates Lines: 22 In article <1990Aug31.171033.24291@elroy.jpl.nasa.gov> ems@socrates.jpl.nasa.gov writes: > I have a single-line Text widget inside of a popup Form Dialog > and am having problems with the activate callback, which > is supposed to be called when the user presses return. Namely, > it doesn't respond. The Form Widget is subclassed from the BulletinBoard widget.. When the BB widget is the child of a DialogShell widget (which sounds like the case you noted above), the normal translation table for the text dialog is overriden by the XmNtextTranslations resource of the dialog. This means that your text widget isn't going to work as you expected. You can do several things: get the translation you want and reinstall it after you've created the widget as a child of the Form, or you can create an intermediate compisite widget (a rowcolumn, bulletin-board, form, etc) as a child of the Form and make the text widget a child of that new composite widget. -- dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.