Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!boulder!uswat!csn!news From: raney@boulder.Colorado.EDU (Scott Raney) Newsgroups: comp.windows.x.motif Subject: Re: Highlighting text fields upon entering Keywords: text, highlight Message-ID: <1990Dec11.172152.15541@csn.org> Date: 11 Dec 90 17:21:52 GMT References: <12150@hacgate.UUCP> Sender: news@csn.org Reply-To: raney@onefish.Colorado.EDU.Colorado.EDU (Scott Raney) Organization: University of Colorado, Boulder Lines: 17 Nntp-Posting-Host: onefish.colorado.edu Using the focus callback won't work (you can't distinguish tabbing to the field from clicking in it). The only answer is to override the tab translations. Unfortunately Motif 1.0's translation (and tabgroup) stuff is so broken I was never able to get it to work. With 1.1, you should be able to override the tab translation, then do the XmSelect stuff in your own action handler. Why OSF didn't design the widget to operate this way in the first place (as the Mac and MS-Windows equivalents do) is beyond me. There are going to be a lot of user interface inconsistencies because of this weakness. Scott ====================================================================== Scott Raney No other person or organization raney@gabor.colorado.edu can be held responsible for my (303)499-9855 opinions or actions