Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!rs4u+ From: rs4u+@andrew.cmu.edu (Richard Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you highlight a default button? Message-ID: Date: 6 Apr 88 01:47:55 GMT References: <8804030612.AA02313@decwrl.dec.com> Organization: Carnegie Mellon University Lines: 23 In-Reply-To: <8804030612.AA02313@decwrl.dec.com> I handle the issue of highlighting default button by implementing my own library of standard dialog-filters that I use for all of my dialogs. In the standard dialog filtering, part of the update code highlights d^.aDefItem if it's a button. The code also mimics the ROM routines in that a press of the Return or Enter key dismisses the dialog and returns d^.aDefItem if the default button is enabled. This way, I can have standard bold default button and Return-key highlighting of things like Standard File boxes (by using SFP{Get, Put}File), as well as my own custom dialog boxes.... --Rich =================================================================== Rich Siegel Confused Undergrad, Carnegie-Mellon University The opinions stated here do not represent the policies of Carnegie-Mellon University. Arpa: rich.siegel@andrew.cmu.edu UUCP: {decvax,ucbvax,sun}!andrew.cmu.edu!rich.siegel ==================================================================