Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!uflorida!mephisto!mcnc!rti!dg-rtp!bigben!lintilla!john From: john@lintilla.dle.dg.com (John Farrell) Newsgroups: comp.windows.x.motif Subject: How can I set the input focus? Message-ID: <1990Sep17.132421.3858@dle.dg.com> Date: 17 Sep 90 13:24:21 GMT Sender: usenet@dle.dg.com (Net News) Organization: Data General, Development Lab Europe Lines: 13 Can someone tell me how I can explicitly set the input focus to a particular widget from within my application? I have a screen consisting of lots of XmText widgets within a Form. In one of the Text widgets, I process the input in the Activate callback, and if the input was empty I want to move the input focus/cursor to the next Text widget (yes, I know it's a bit weird). Browing the man pages I thought that XtCallAcceptFocus() looked just the thing, but when I tried to use it I discover it does not actually exist in my libXt. Any ideas? John M. Farrell | john@dle.dg.com Data General | Development Lab Europe | /C=gb/ADMD=gold 400/PRMD=dgc/O=dle/SN=Farrell/GN=John Cambridge, England |