Path: utzoo!utgpu!watmath!clyde!att!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Command Key D.A.s (a message box for the finder?) Message-ID: <27486@ucbvax.BERKELEY.EDU> Date: 12 Jan 89 00:09:25 GMT References: <730078@hpcilzb.HP.COM> <6195@hoptoad.uucp> <13370@cup.portal.com> <6229@hoptoad.uucp> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 21 In article <6229@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: >However, you can put a menu shortcut key into a DA. Just put the magic >menu manager metacharacters into the DA resource name. Then when the >application does an AddResMenu, the shortcut will appear normally in >the apple menu. It is not quite that simple. You'll get the command key in the menu, because the D.A. has the metacharacters in its name all right. However, when the user actually types the command key, the program will do a: GetItem(GetMHandle(APPLEMENU), item, daName); OpenDeskAcc(daName); But the daName GetItem returns doesn't have the metacharacters, so it won't match the name of any D.A. when OpenDeskAcc() does a GetNamedResource('DRVR', daName); The reason SuiteCase works is, it is already overrriding most of the resource manager, so it just checks for itself, as long as it is checking for anything. --- David Phillip Oster --"When we replace the mouse with a pen, Arpa: oster@dewey.soe.berkeley.edu --3 button mouse fans will need saxophone Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu --lessons." - Gasee