home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!ceylon!choffman.gte.com!user
- From: chuck@gte.com (Chuck Hoffman)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Default buttons in dialogs
- Message-ID: <chuck-080193085136@choffman.gte.com>
- Date: 8 Jan 93 13:54:24 GMT
- References: <880840m.29.726366713@axe.acadiau.ca> <1ii3k5INNk3h@skeena.ucs.ubc.ca>
- Sender: news@ceylon.gte.com
- Followup-To: comp.sys.mac.programmer
- Organization: GTE Laboratories
- Lines: 30
-
- In article <1ii3k5INNk3h@skeena.ucs.ubc.ca>, sainaney@unixg.ubc.ca (Narayan
- R. Sainaney) wrote:
- >
- > 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?
- > >
- > >
- >
- > You have to use QuickDraw calls to draw that round rect around
- > your default button. Set PenSize to (3,3) and use FrameRoundRect(?? or some
- > routine like that =). Use GetDItem to get the items rect.
- >
-
- Sample code to do what Sainaney suggests, above, is in the sample
- application Chassis 4.3.1 posted at sumex-aim.stanford.edu, and
- mac.archive.umich.edu. You also can ftp directly from us at ftp.gte.com
- (directory /pub/chuck). Chassis may also answer other questions which you
- will have later as you develop your app.
-
- Chuck Hoffman
- chuck@gte.com
- GTE Laboratories, Waltham, Massachusetts, USA
- (617) 466-2131
- =====================================
- I'm not sure why we're here, but I am sure that while we're here we're
- supposed to help each other.
- =====================================
-