home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20987 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.6 KB

  1. Path: sparky!uunet!noc.near.net!ceylon!choffman.gte.com!user
  2. From: chuck@gte.com (Chuck Hoffman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Default buttons in dialogs
  5. Message-ID: <chuck-080193085136@choffman.gte.com>
  6. Date: 8 Jan 93 13:54:24 GMT
  7. References: <880840m.29.726366713@axe.acadiau.ca> <1ii3k5INNk3h@skeena.ucs.ubc.ca>
  8. Sender: news@ceylon.gte.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: GTE Laboratories
  11. Lines: 30
  12.  
  13. In article <1ii3k5INNk3h@skeena.ucs.ubc.ca>, sainaney@unixg.ubc.ca (Narayan
  14. R. Sainaney) wrote:
  15. > In article <880840m.29.726366713@axe.acadiau.ca> 880840m@axe.acadiau.ca (MICHAEL ALEXANDER MCKAY) writes:
  16. > >
  17. > >Whenever I make a dialog box with ResEdit, my "OK" buttons, which are always
  18. > >the number 1 button, fail to show up in my app with the heavy outline around 
  19. > >them. What am I doing wrong?
  20. > >
  21. > >
  22. >     You have to use QuickDraw calls to draw that round rect around   
  23. > your default button. Set PenSize to (3,3) and use FrameRoundRect(?? or some
  24. > routine like that =). Use GetDItem to get the items rect.
  25.  
  26. Sample code to do what Sainaney suggests, above, is in the sample
  27. application Chassis 4.3.1 posted at sumex-aim.stanford.edu, and
  28. mac.archive.umich.edu.  You also can ftp directly from us at ftp.gte.com
  29. (directory /pub/chuck).  Chassis may also answer other questions which you
  30. will have later as you develop your app.
  31.  
  32. Chuck Hoffman
  33. chuck@gte.com
  34. GTE Laboratories, Waltham, Massachusetts, USA
  35. (617) 466-2131
  36. =====================================
  37. I'm not sure why we're here, but I am sure that while we're here we're
  38. supposed to help each other.
  39. =====================================
  40.