home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!charon.amdahl.com!netcomsv!netcomsv!dms!petrick
- From: petrick@dms.agames.com (Jim Petrick)
- Subject: Re: Default buttons in dialogs
- Message-ID: <1993Jan12.040047.28035@dms.agames.com>
- Organization: Atari Games Corporation
- References: <880840m.29.726366713@axe.acadiau.ca>
- Date: Tue, 12 Jan 1993 04:00:47 GMT
- Lines: 34
-
- In article <880840m.29.726366713@axe.acadiau.ca> 880840m@axe.acadiau.ca (MICHAEL ALEXANDER MCKAY) writes:
- >
- >Whenever I make a dialog box with ResEdit, my "OK" buttons, which are always
- >the number 1 button, fail to show up in my app with the heavy outline around
- >them. What am I doing wrong?
-
- From the back of MacTutor V8 No.1 Apr/May '92 (tip of the month):
-
- In System 7, there are 3 toolbox traps not in the Think C interfaces.
-
- pascal OSErr SetDialogDefaultItem( DialogPtr dlog, short item ) =
- {0x303C, 0x0304, 0xAA68};
-
- pascal OSErr SetDialogCancelItem( DialogPtr dlog, short item ) =
- {0x303C, 0x0305, 0xAA68};
-
- pascal OSErr SetDialogTracksCursor( DialogPtr dlog, Boolean tracks ) =
- {0x303C, 0x0306, 0xAA68};
-
-
- SetDialogDefaultItem - Specifies the default item for a dialog AND
- ensures a thick round rect around the button.
-
- SetDialogCancelItem - Ties item to the Command-Period key sequence.
-
- SetDialogTracksCursor - Tells Dialog Manager to use the I-beam cursor
- when cursor enters an editable text field.
-
-
- The first may be of some help to you.
- --
- ===========================================================================
- Atari Games Corp. -- jim petrick
- Milpitas, Ca petrick@agcvax.agames.com
-