home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21252 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!charon.amdahl.com!netcomsv!netcomsv!dms!petrick
  3. From: petrick@dms.agames.com (Jim Petrick)
  4. Subject: Re: Default buttons in dialogs
  5. Message-ID: <1993Jan12.040047.28035@dms.agames.com>
  6. Organization: Atari Games Corporation
  7. References: <880840m.29.726366713@axe.acadiau.ca>
  8. Date: Tue, 12 Jan 1993 04:00:47 GMT
  9. Lines: 34
  10.  
  11. In article <880840m.29.726366713@axe.acadiau.ca> 880840m@axe.acadiau.ca (MICHAEL ALEXANDER MCKAY) writes:
  12. >
  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. From the back of MacTutor V8 No.1 Apr/May '92 (tip of the month):
  18.  
  19. In System 7, there are 3 toolbox traps not in the Think C interfaces.
  20.  
  21. pascal OSErr SetDialogDefaultItem( DialogPtr dlog, short item ) =
  22.     {0x303C, 0x0304, 0xAA68};
  23.  
  24. pascal OSErr SetDialogCancelItem( DialogPtr dlog, short item ) =
  25.     {0x303C, 0x0305, 0xAA68};
  26.  
  27. pascal OSErr SetDialogTracksCursor( DialogPtr dlog, Boolean tracks ) =
  28.     {0x303C, 0x0306, 0xAA68};
  29.  
  30.  
  31. SetDialogDefaultItem    - Specifies the default item for a dialog AND
  32.               ensures a thick round rect around the button.
  33.  
  34. SetDialogCancelItem    - Ties item to the Command-Period key sequence.
  35.  
  36. SetDialogTracksCursor    - Tells Dialog Manager to use the I-beam cursor
  37.               when cursor enters an editable text field.
  38.  
  39.  
  40. The first may be of some help to you.
  41. -- 
  42. ===========================================================================
  43. Atari Games Corp.                            -- jim petrick
  44. Milpitas, Ca                                    petrick@agcvax.agames.com
  45.