home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6061 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!wupost!psuvax1!postscript.cs.psu.edu!grio
  3. From: grio@postscript.cs.psu.edu (Daniel L Grillo)
  4. Subject: Re: setting a button key to be ESC
  5. Message-ID: <BuAH3q.BMB@cs.psu.edu>
  6. Sender: news@cs.psu.edu (Usenet)
  7. Nntp-Posting-Host: postscript.cs.psu.edu
  8. Organization: Penn State Computer Science
  9. References: <Bu68tK.37L@cs.psu.edu> <1992Sep7.150548.8473@next.cambridge.ma.us>
  10. Date: Wed, 9 Sep 1992 02:19:01 GMT
  11. Lines: 19
  12.  
  13. In article <1992Sep7.150548.8473@next.cambridge.ma.us> simsong@next.cambridge.ma.us writes:
  14. >In article <Bu68tK.37L@cs.psu.edu> grio@colossus.cs.psu.edu (Daniel L Grillo)  
  15. >writes:
  16. >> I should have been more explict.  A button in a _Panel_ can have a key
  17. >> equivalent that is not a command key.   Keys like "d" and "." work fine.
  18. >> I was hoping there was a way to use ESC, without subclassing Panel.
  19. >> 
  20. >What makes you think this?  NeXT's Calculator demo?  Their Panel subclass turns  
  21. >all keypresses into Command keypresses.
  22.  
  23. Uh, fired up IB, grabbed a Window, put 2 buttons on it.  Set keys for each.
  24. Run it.  Non-command keys do nothing.
  25.  
  26. Move the buttons to a Panel.  Run it.  Non-command keys work.
  27.  
  28.  
  29.             --Dan
  30. -- 
  31.  Dan Grillo   grio@cs.psu.edu   [NeXTmail, PrivateMail, MIME welcome]
  32.