Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!kth!draken!d88-jwa From: d88-jwa@nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: OK button and return in modeless dialog Message-ID: <1206@draken.nada.kth.se> Date: 21 Jun 89 17:38:52 GMT References: <846@manta.NOSC.MIL> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 17 In article <846@manta.NOSC.MIL> lulue@manta.NOSC.MIL (Dan Lulue ) writes: >In a modal dialog the user can click the OK button or hit return and the >OK button will blink. How does one get this behavior in a modeless >dialog? Do I need to get the key down event, figure out that it was the >enter key, and then toggle the OK button? Yes you have. It isnd't that much work, now, is it ? Or you can have the return/enter to post a mouse-down event in the button, and hope to God that no mouse-downs in between move the window (FlushEvents ? not a friendly way !) Or am I missing something, too ? -- __ Jon W{tte (The dread Smiley Shark) email:h+@nada.kth.se / \ (+46 (0) 8 258 268) /--- (c) 1989 Yessbox Allright Professional Products Inc. - Y.A.P.P.I. / -- No More --