home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18043 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.1 KB

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