Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!rochester!cornell!biar!trebor From: trebor@biar.UUCP (Robert J Woodhead) Newsgroups: comp.sys.mac.programmer Subject: Buttons in SFGetFile dialog Keywords: SFGetFile hook buttons custom Message-ID: <1049@biar.UUCP> Date: 10 Apr 90 02:44:36 GMT Organization: Biar Games, Inc. Lines: 23 Ok, so I need to add a custom button to the standard file dialog. Thats easy -- just copy the DLOG and DITL resources from the system file and edit them. The DLOGHook routine is easy too. No problem. Except... The hook routine just gets the item number and a pointer to the dialog. What I need to do is be able to set a flag so that my main program knows the extra button is pressed. It would be lovely to be able to diddle the SFReply field but no can do apparently. Which means i have to alter a global from within the hook routine. Which means futzing with the A5-WORLD. Unfortunatley, the recommended way to do this seems to change with every new set of tech-notes, and I for one have never been able to get it to work. Anyone run into this problem before and got a simple solution that works? PS: It seems really STUPID that the dloghook routine in SFGetFile can't touch SFReply! -- Robert J Woodhead, Biar Games, Inc. !uunet!biar!trebor | trebor@biar.UUCP Announcing TEMPORAL EXPRESS. For only $999,999.95 (per page), your message will be carefully stored, then sent back in time as soon as technologically possible. TEMEX - when it absolutely, postively has to be there yesterday!