home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!darwin.sura.net!haven.umd.edu!umd5!williams.smcm.edu!bwilliam
- From: bwilliam@oyster.smcm.edu (Bill Williams)
- Newsgroups: comp.sys.mac.programmer
- Subject: How to use Default Button in Modeless Dialog
- Message-ID: <16832@umd5.umd.edu>
- Date: 5 Nov 92 18:39:46 GMT
- Sender: news@umd5.umd.edu
- Organization: St. Mary's College of Maryland
- Lines: 14
- X-UserAgent: Nuntius v1.1.1d10
- X-XXMessage-ID: <A71EE38F790201D2@williams.smcm.edu>
- X-XXDate: Thu, 5 Nov 92 19:43:27 GMT
-
- I am an ad-hoc programmer currently updating a data acquisition and
- control program I wrote a long time ago, and I have the following
- question: is there some way to make the "OK" button in a modeless
- dialog sensitive to the "enter" key? If so, how do I do it? It's dead
- easy, of course, in a modal dialog, but I can see how it might not be
- possible in a modeless box, since some other window could be foremost.
- But I'm 99% sure I've seen other applications that do this.
-
- Help?
- ___________________________________
- William E. Williams, bwilliam@oyster.smcm.edu
- Divison of Natural Sciences and Mathematics
- St. Mary's College of Maryland
- St. Mary's City, MD 20686
-