Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!pacbell!ames!ll-xn!mit-eddie!bbn!bbn.com!levin From: levin@bbn.com (Joel B Levin) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you highlight a default button? Message-ID: <22923@bbn.COM> Date: 1 Apr 88 21:25:28 GMT References: <618@unioncs.UUCP> <1107@cadre.dsl.PITTSBURGH.EDU> Sender: news@bbn.COM Reply-To: levin@powell.BBN.COM (Joel B Levin) Distribution: na Organization: BBN Communications Corporation Lines: 22 In article <1107@cadre.dsl.PITTSBURGH.EDU> jas@cadre.dsl.PITTSBURGH.EDU (Jeffrey A. Sullivan) writes: |According to IM V1 (P. 407), here is the way to highlight the default button |so thast it looks like the normal highlit default button: | |PenSize(3,3); |InsetRect(displayRect,-4,-4); |FrameRoundRect(displayRect,16,16); | |where displayRect is the rect of the button. I have a feeling I read somewhere a year ago that you have to do more than this; if an alert comes up in front of the dialog (or if it is a modeless dialog?) your new rectangle will not be properly updated with just the code shown above. I couldn't find a tech note on the subject, but someone from Apple described somewhere how to do this right, maybe with a userItem. /JBL UUCP: {backbone}!bbn!levin USPS: BBN Communications Corporation ARPA: levin@bbn.com 50 Moulton Street POTS: (617) 873-3463 Cambridge, MA 02238