Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!apple!anderson From: anderson@Apple.COM (Clark Anderson) Newsgroups: comp.sys.mac.programmer Subject: Re: Query: Double lines on default button...How? Message-ID: <42585@apple.Apple.COM> Date: 3 Jul 90 04:12:55 GMT References: <9883@odin.corp.sgi.com> Organization: Apple Computer Inc, Cupertino, CA Lines: 31 From: myoung@joker.sgi.com (Mark Young) Subject: Query: Double lines on default button...How? >that describes how to make a button with the double lines that indicates >the default selection. I found a comment indicating that item #1 was the >default selection, but my "ok" button, which is item #1 doesn't appear with >the telltale double lines? On an Alert box, it's done automatically. In a dialog box, you have to draw the surrounding box to create the 'double line' effect. GetDItem(RecordPtr, 1, ItemType, ItemHandle, ItemRect); PenSize(3, 3); InsetRect(ItemRect, -4, -4); FrameRoundRect(ItemRect, 16, 16); (You'll have to declare ItemType, ItemHandle and ItemRect, but you'll have to anyway, if you ever do anything extensive with dialogs) --clark -- ----------------------------------------------------------- Clark Anderson InterNet: anderson@apple.com CPU Engineering AppleLink: C.ANDERSON Apple Computer, Inc BellNet: 408-974-4593 "I speak only for myself, much to my employer's relief..." -------------------------------------------------------------