Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!ico!ism.isc.com!emisle!dvb From: dvb@emisle.uucp (David Van Beveren) Newsgroups: comp.windows.x.motif Subject: Re: auto-traverse of text widgets Message-ID: <1991Apr20.055856.7113@emisle.uucp> Date: 20 Apr 91 05:58:56 GMT References: <2801F4F9.5C0D@deneva.sdd.trw.com> Reply-To: dvb@emisle.UUCP (David Van Beveren) Distribution: usa Organization: Emerald Isle Systems, Ltd. Agoura Hills, CA Lines: 35 In article <2801F4F9.5C0D@deneva.sdd.trw.com> rroux@rigel.sdd.trw.com () writes: > >I'm stumped. I have a bulletinboard widget that contains two single line >text widgets and a couple labels. I want to be able to press >in one of the text widgets and have the focus automatically shift to the >other text widget. > >I tried using XtSetKeyboardFocus with limited success. The focus _does_ >change, but the text cursor in the first widget keeps blinking. It seems >that there is confusion between the program and the window manager as to >which widget really has the focus. Motif and XtSetKeyboardFocus indeed do not cooperate. OSF tells you not to use them together, and in X11R4 provides a set of routines to do what you need (XmProcessTraversal, XmAdd(Remove)TabGroup). This is one of the major improvements of Motif 1.1 over Motif 1.0. > >Is there a better/another way? By the way, I'm using Motif 1.0.3 and the >X11R3 libraries, but running X11R4. > I assume this means you are running on an X11R4 server? My advice is to pursue X11R4 and Motif 1.1 aggressively. It is really quite an improvement. Both in features and bug fixes. >Thanks, > Ray Roux > rroux@rigel.sdd.trw.com -- David Van Beveren INTERNET: emisle!dvb@ism.isc.com EIS ltd. Professional Software Services UUCP: ..uunet!emisle!dvb voice: (818) 587-1247