Path: utzoo!attcan!uunet!husc6!uwvax!umn-d-ub!umn-cs!bungia!datapg!ems!andrew From: andrew@ems.Ems.MN.ORG (Andrew C. Esh) Newsgroups: comp.sys.mac.programmer Subject: Re: Highlight "OK" buttons Summary: How to highlight a button Keywords: Dialogs Message-ID: <6642@ems.Ems.MN.ORG> Date: 7 Sep 88 15:12:11 GMT References: <3316@homxc.UUCP> Reply-To: andrew@ems.Ems.MN.ORG (Andrew C. Esh) Organization: EMS/McGraw-Hill, Eden Pairie, MN Lines: 20 If you open a dialog with this: GetSelection := GetNewDialog(21, nil, Pointer(-1) ); {Bring in dialog} Then you can highlight the button with these lines: {HighLight the OK button} GetDItem(GetSelection, I_OK, DType, DItem, tempRect); {Get button info} PenSize(3,3); InsetRect(tempRect,-4,-4); FrameRoundRect(tempRect,16,16); PenSize(1,1); Check IM I-431 for a description of the arguments. I_OK is defined as the item number of the button. 21 is the resource number of the dialog. - Andrew -- Andrew C. Esh DOMAIN: andrew@ems.MN.ORG APPLELINK: D0492 EMS/McGraw-Hill UUCP: ihnp4!meccts!ems!andrew AT&T: (612) 829-8200