home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!spool.mu.edu!uwm.edu!ogicse!reed!bowman
- From: bowman@reed.edu (BoBolicious)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Default buttons in dialogs
- Message-ID: <1993Jan7.022657.24159@reed.edu>
- Date: 7 Jan 93 02:26:57 GMT
- Article-I.D.: reed.1993Jan7.022657.24159
- References: <880840m.29.726366713@axe.acadiau.ca>
- Organization: Reed College, Portland, OR
- Lines: 28
-
- 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?
-
- Sounds like you're not drawing the heavy outline. ;-)
- Seriously, there's nothing I've seen anywhere that would indicate this
- happens automatically...whatever gave you that idea?
-
- Anyhow...
-
- There are several ways to do it. One is to make a userItem whose sole purpose
- in life is to draw the outline whenever the dialog is updated. Or you can
- do the simple-but-not-quite-as-kosher thing, right before you call ModalDialog:
-
- GetDItem(theDialog,1,&DType,&DItem,&itsFrame);
- InsetRect(&itsFrame,-4,-4);
- PenSize(3,3);
- FrameRoundRect(&itsFrame,16,16);
- PenSize(1,1);
-
- ...or something like that. I think the 16's are "standard".
-
- cheers,
- bobo In seeking the unattainable,
- bowman@reed.edu simplicity only gets in the way.
- "On Monday, numbers floated everywhere, and the world was full of
- approximations." -- Spencer Heinz, _The Oregonian_, 1/5/93
-