Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!snorkelwacker!ira.uka.de!smurf!urlichs From: urlichs@smurf.ira.uka.de Newsgroups: comp.sys.mac.programmer Subject: Re: Implementing close box on DA subwindows Message-ID: <1365@smurf.ira.uka.de> Date: 5 Jan 90 21:19:28 GMT References: <1990Jan4.180945.5660@smsc.sony.com> Reply-To: urlichs@smurf.ira.uka.de (Matthias Urlichs) Organization: University of Karlsruhe, FRG Lines: 18 In comp.sys.mac.programmer dce@smsc.Sony.COM (David Elliott) writes: < < Is there a way to implement subwindow close boxes? < Yes. Oh, you also want to know _how_? Well.. If the user clicks into your close box, your DA's close routine gets called. It then should close the frontmost window (which presumably is the one which the user clicked the close box of) and return an _error_ to prevent the Desk manager from deallocating your DA. Simple, huh? Disclaimer: This doesn't work on 64k ROMs. -- Matthias Urlichs