Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!udel!sbcs!csws10.ic.sunysb.edu!mmoss From: mmoss@csws10.ic.sunysb.edu (Matthew D Moss) Newsgroups: comp.sys.mac.programmer Subject: Re: Menu command key Message-ID: <1990Dec10.044033.19193@sbcs.sunysb.edu> Date: 10 Dec 90 04:40:33 GMT Sender: usenet@sbcs.sunysb.edu (Usenet poster) Distribution: usa Organization: State University of New York at Stony Brook Lines: 32 Originator: mmoss@csws10.ic.sunysb.edu Sorry, my system won't let me 'R'espond to any postings, so I can't include the original question, nor do I remember the person's name. The basic question was how to make the menu of a DA accept COMMAND-W as Close in the File menu. The peron who asked had gone into the program's resources with ResEdit, but had no luck after changing the resource. My answer : If you change the resource, all that will do is change it's appearance when the menu is drawn onscreen. To make the DA (or any program) accept a change of Command key, you must change the source code of the program. Basically, write in a event handler routine that watches for keyDown events, then use a switch to catch any W's, and check to see if the Command key was down (some other function). At least, that's what I know. I've only begun programming, so I may be wrong. ---------------- Matthew Moss mmoss@libserv1.ic.sunysb.edu "To spam or not to spam, that is the lunchmeat!" - He who would be me ----------------