Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!ucdavis!iris!lim From: lim@iris.ucdavis.edu (Lloyd Lim) Newsgroups: comp.sys.mac.programmer Subject: Re: How to highlight buttons Keywords: button, mac, macintosh, dialog Message-ID: <6929@ucdavis.ucdavis.edu> Date: 5 Mar 90 23:36:57 GMT References: <288@bii.UUCP> Sender: uucp@ucdavis.ucdavis.edu Reply-To: lim@iris.ucdavis.edu (Lloyd Lim) Organization: U.C. Davis - Department of Electrical Engineering and Computer Science Lines: 20 In article <288@bii.UUCP> jsl@bii.UUCP (jsl) writes: >I have been trying to figure out how to highlight the default >buttons in a dialog. However I have been unsuccessfull. Can >anyone tell me what I am doing wrong. Below is the code segment >I am using to do this. Thanks in advance for any help. > >[...] > OffsetRect(&ItemRect, 50, 50); I don't think you need this line. My Default CDEF also draws outlines for you automatically, with the proper color and even for unusual sizes. Plus, it's free! Disclaimer - Yeah, I wrote it, so what should I disclaim? +++ Lloyd Lim Internet: lim@iris.ucdavis.edu (128.120.57.20) Compuserve: 72647,660 US Mail: 146 Lysle Leach Hall, U.C. Davis, Davis, CA 95616