Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!nrl-cmf!ukma!gatech!udel!rochester!PT.CS.CMU.EDU!cadre!jas From: jas@cadre.dsl.PITTSBURGH.EDU (Jeffrey A. Sullivan) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you highlight a default button? Message-ID: <1107@cadre.dsl.PITTSBURGH.EDU> Date: 31 Mar 88 18:55:38 GMT References: <618@unioncs.UUCP> Distribution: na Organization: Decision Systems Lab., Univ. of Pittsburgh, PA. Lines: 21 Summary: Here's the way from IM In article <618@unioncs.UUCP>, brownh@unioncs.UUCP (H. Brown) writes: > Can someone tell me how to specify a DLOG or ALRT button to be a > highlighted default button (I have ResEdit v1.d4). According to Mac > Revealed 2 this is done automatically to if the button is first in the > item list, this is true except that it doesn't get highlighted. 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. According to AUG, if you don't do this, then you shouldn't support the return and enter key as default substitutes in your DLOG. -- .......................................................................... Jeffrey Sullivan | University of Pittsburgh jas@cadre.dsl.pittsburgh.edu | Intelligent Systems Studies Program jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student