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