Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!munnari.oz.au!mel.dit.csiro.au!yarra!bohra!ejp From: ejp@bohra.cpg.oz (Esmond Pitt) Newsgroups: comp.windows.x.motif Subject: Re: Setting location of input cursor Message-ID: <432@bohra.cpg.oz> Date: 1 Aug 90 04:43:17 GMT References: <9007301755.AA29376@hare.udev.cdc.com> Distribution: inet Organization: Computer Power Group, Melb, Australia Lines: 21 In article <9007301755.AA29376@hare.udev.cdc.com> slc1290@HARE.UDEV.CDC.COM (steve chesney x4662) writes: > How can I control which XmText receives the keyboard focus (i.e., > contains the tab cursor and will receive keyboard events). It seems > that the focus initially belongs to the first XmText added to the > list of tab groups. > > I have tried XtSetKeyboard focus; while it highlights the intended XmText, > the first text widget in the list also has a highlight, and it gets all > keyboard events. I even see two blinking I-beam cursors! This is a known problem. Solution: Motif 1.0*: use _XmGrabTheFocus(widget): undocumented but effective. Motif 1.1: use XmProcessTraversal(...) (details unknown to me). -- Esmond Pitt, Computer Power Group ejp@bohra.cpg.oz D