home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6039 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.5 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!wupost!darwin.sura.net!haven.umd.edu!mimsy!alex
  2. From: alex@cs.umd.edu (Alex Blakemore)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: setting a button key to be ESC
  5. Message-ID: <60141@mimsy.umd.edu>
  6. Date: 7 Sep 92 21:25:28 GMT
  7. References: <Bu68tK.37L@cs.psu.edu> <1992Sep7.150548.8473@next.cambridge.ma.us> <SCOTT.92Sep7160540@nic.gac.edu>
  8. Sender: news@mimsy.umd.edu
  9. Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
  10. Lines: 24
  11.  
  12. In article <SCOTT.92Sep7160540@nic.gac.edu> scott@nic.gac.edu (Scott Hess) writes:
  13. > What gave it away to me is when I ran IB, pulled in a Panel, but
  14. > a Button on it, made the Key for it a 'd', and then did a Run/Test.
  15. > Pressing d caused the Button to flash, regardless of whether I had
  16. > Command down or not.  [Really, try it, it works.]
  17.  
  18. its even documented in (2.X)
  19. /NextLibrary/Documentation/NextDev/NextStep/Reference/02_Classes/AppKit/Panel.rtf
  20.  
  21. - keyDown:(NXEvent *)theEvent
  22.  
  23.  Translates the key-down event into a commandKey: message for the
  24.  Panel, thus interpreting the event as a potential keyboard
  25.  alternative.  If the Panel has a button that displays the Return
  26.  symbol and the key-down event is for the Return key, it will operate
  27.  the button.
  28.  
  29.  A Panel can receive keyDown: event messages only when it's the key
  30.  window and none of its Views is the first responder.
  31.  
  32.  
  33. -- 
  34. ---------------------------------------------------
  35. Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
  36.