Path: utzoo!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!ispd-newsserver!ism.isc.com!ico!attc!marbru From: marbru@attc.UUCP (Martin Brunecky) Newsgroups: comp.windows.x.motif Subject: Re: Setting keyboard focus Message-ID: <1232@attc.UUCP> Date: 8 Mar 91 19:19:39 GMT References: <1991Mar7.124545@MAX7.llnl.gov> Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 23 In article <1991Mar7.124545@MAX7.llnl.gov> rich@MAX7.llnl.gov (Rich Mayfield) writes: >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). > Learn about XmNmotionVerifyCallback. At least in Motif 1.0 this one (attempted to) do exactly what you want. Check with you if the focus can be moved to another widget. See, it's is not cursor motion it refers to, it's focus motion (or was in 1.0). -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky {...}sunpeaks!auto-trol!marbru (303) 252-2499 (sometimes also: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404