Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!MAX7.llnl.gov!rich From: rich@MAX7.llnl.gov (Rich Mayfield) Newsgroups: comp.windows.x.motif Subject: Setting keyboard focus Message-ID: <1991Mar7.124545@MAX7.llnl.gov> Date: 7 Mar 91 17:45:45 GMT Sender: usenet@lll-winken.LLNL.GOV Reply-To: rich@MAX7.llnl.gov (Rich Mayfield) Organization: Lawrence Livermore National Laboratory, CA, USA Lines: 15 Nntp-Posting-Host: max7.llnl.gov Here's the poop - I've got a few XmText widgets sitting in an XmForm. My basic goal is to re-write the tab grouping mechanism so that I can do my own validation before moving onto another XmText widget. (i.e. when I press Tab, I want to check the contents of the XmText, if it's ok then I'll move on; otherwise I stay where I am and do some sort of error handling). Currently, I'm using XtSetKeyboardFocus(), but I wind up with TWO text fields with cursors. I guess one of my problems is that I can't force one of the widgets to "give up" input focus. Any hints out there? Thanks much! rich mayfield