Path: utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!decwrl!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: carriage_return binding Message-ID: <2962@bacchus.dec.com> Date: 5 Mar 90 17:32:54 GMT References: <9918@pyr.gatech.EDU> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Organization: DEC Western Software Laboratory Lines: 14 In article <9918@pyr.gatech.EDU>, belk@pyr.gatech.EDU (Eddie) writes: > Few days ago, someone mentioned carriage_return binding to an OK button > in the dialog box. Could this person or anybody out there drop an example > on how a carriage_return can be binded to a button. If you want to catch a carriage return while focus is on the button, use a translation to the button's action. If you want to catch the carriage return while focus is elsewhere, use an accelerator. Both are documented in Chapter 10 of the MIT Xt manual. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee