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

  1. Path: sparky!uunet!think.com!spool.mu.edu!uwm.edu!ogicse!reed!bowman
  2. From: bowman@reed.edu (BoBolicious)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Default buttons in dialogs
  5. Message-ID: <1993Jan7.022657.24159@reed.edu>
  6. Date: 7 Jan 93 02:26:57 GMT
  7. Article-I.D.: reed.1993Jan7.022657.24159
  8. References: <880840m.29.726366713@axe.acadiau.ca>
  9. Organization: Reed College, Portland, OR
  10. Lines: 28
  11.  
  12. In article <880840m.29.726366713@axe.acadiau.ca> 880840m@axe.acadiau.ca (MICHAEL ALEXANDER MCKAY) writes:
  13. >Whenever I make a dialog box with ResEdit, my "OK" buttons, which are always
  14. >the number 1 button, fail to show up in my app with the heavy outline around 
  15. >them. What am I doing wrong?
  16.  
  17. Sounds like you're not drawing the heavy outline. ;-)
  18. Seriously, there's nothing I've seen anywhere that would indicate this
  19. happens automatically...whatever gave you that idea?
  20.  
  21. Anyhow...
  22.  
  23. There are several ways to do it.  One is to make a userItem whose sole purpose
  24. in life is to draw the outline whenever the dialog is updated.  Or you can
  25. do the simple-but-not-quite-as-kosher thing, right before you call ModalDialog:
  26.  
  27. GetDItem(theDialog,1,&DType,&DItem,&itsFrame);
  28. InsetRect(&itsFrame,-4,-4);
  29. PenSize(3,3);
  30. FrameRoundRect(&itsFrame,16,16);
  31. PenSize(1,1);
  32.  
  33. ...or something like that.  I think the 16's are "standard".
  34.  
  35. cheers,
  36. bobo              In seeking the unattainable,
  37. bowman@reed.edu            simplicity only gets in the way.
  38. "On Monday, numbers floated everywhere, and the world was full of 
  39. approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93
  40.