Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!cs.utexas.edu!uunet!mcsun!ukc!icdoc!qmw-cs!jeremyr From: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Newsgroups: comp.sys.mac.programmer Subject: Re: How to Border Default Button in SFGetFile + SFPutFile? Message-ID: <2568@sequent.cs.qmw.ac.uk> Date: 25 Jul 90 21:27:34 GMT References: <1990Jul25.071908.22728@gpu.utcs.utoronto.ca> Reply-To: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Organization: Computer Science Dept, QMW, University of London, UK. Lines: 22 In article <1990Jul25.071908.22728@gpu.utcs.utoronto.ca> topix@gpu.utcs.utoronto.ca (R. Munroe) writes: >I think this question has been asked here before but I forgot to keep >the reply ... sorry. > >What I am looking for is a tip on how to implement a hook that will >border the default button (Open/Save) in SFGetFile and/or SFPutFile. > A simple way is to make a copy of the SF{Pu/Ge}tFile dialog (the details of all the DITL items are in IM-I), add an outline and then use SFPPutFile/SFPGetfile with your new dialog ID. The border drawing has been discussed here recently. Three approaches are: 1. A user item with some code that draws the outline. 2. A PICT with the outline in it (less flexible, but requires no code and is automatically updated for you) 3. Default CDEF (available free from sumex - recommended) Hope this helps Jeremy Roussak