Path: utzoo!attcan!uunet!aplcen!samsung!umich!umeecs!dip.eecs.umich.edu!ehowe From: ehowe@dip.eecs.umich.edu (Ed Howe) Newsgroups: comp.sys.mac.hypercard Subject: Re: Intercepting deleteCard message Message-ID: <2916@zipeecs.umich.edu> Date: 17 Jul 90 20:24:07 GMT References: <6057@bgsuvax.UUCP> Sender: news@zip.eecs.umich.edu Organization: University of Michigan EECS Dept, Ann Arbor, MI Lines: 32 In article <6057@bgsuvax.UUCP> instone@bgsuvax.UUCP (Keith Instone) writes: >I can keep the user from sorting my stack with this simple little >handler: > > on sort > end sort > >but this doesn't work for the deleteCard message (that is, the empty handler >doesn't keep the card from getting deleted). > > >All I REALLY want to do is ask "Are you sure you want to delete this card?" >and abort if the user says NO. > >Any suggestions? Try putting this in your stack... on domenu what if what is "delete card" then answer "Are you sure?" with "Yes" or "No" if it is "Yes" then pass domenu else exit domenu end if pass domenu end domenu The routine can be easily modified to trap for other menu options as well. (Note that it is important to PASS DOMENU if WHAT isn't what you were trapping for...otherwise you'll totally disable menu commands...) ELH