Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!saturn!ssyx.ucsc.edu!sirkm From: sirkm@ssyx.ucsc.edu (Greg Anderson) Newsgroups: comp.sys.mac.programmer Subject: Re: What's wrong with this ModalDialog filterproc? Message-ID: <10135@saturn.ucsc.edu> Date: 28 Dec 89 01:16:33 GMT References: <10125@saturn.ucsc.edu> <9418@hoptoad.uucp> Sender: usenet@saturn.ucsc.edu Reply-To: sirkm@ssyx.ucsc.edu (Greg Anderson) Organization: UC Santa Cruz; Division of Social Sciences Lines: 41 In article <9418@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: >And so on. You have an internationalization problem here. These codes >are surely not the same under all langauges. IM I-53 and I-343 (and other places) state that Z, X, C and V _must_ be used for undo, cut, copy and paste. However, I suppose that this isn't possible to use these keys in non-roman systems, so you do have a point. I've never seen it addressed before, though. >(If you didn't have an edit menu handy in the menu bar -- for instance, >in a DA running under an application with an unknown edit menu id -- Unfortunately, this program is a DA. However, isn't the Edit menu always the third menu on the menu bar, and the order of the items always Undo, blank line, cut, copy, paste, clear by convention? You can get a copy of the menu list with GetMenuBar, but paging through IM, I am at a loss as to how one might use this information to step through the menu list and examine what is there. All I need to know is the ID of the third menu! (Frustration.) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! And if I cannot obtain this information, then how, praytell, can my DA flash the EDIT menu when the user selects undo, cut, copy or paste? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >then you would have to keep a STR# resource to keep track of the >appropriate shortcuts for editing.) This seems like a poor solution to a problem that should have a simple answer--namely, finding the ID of any arbitrary menu. Arg. So, has anyone else out there done anything like this with a DA? >Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com ___\ /___ Greg Anderson ___\ /___ \ \ / / Social Sciences Computing \ \ / / \ /\/\ / University of California, Santa Cruz \ /\/\ / \/ \/ sirkm@ssyx.ucsc.edu \/ \/