home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!mentor.cc.purdue.edu!mace.cc.purdue.edu!haynes
- From: haynes@mace.cc.purdue.edu (Carl W. Haynes III)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Adding menus to existing applications (a la Thunder)
- Message-ID: <BuH8LA.Crq@mentor.cc.purdue.edu>
- Date: 12 Sep 92 17:58:22 GMT
- References: <1992Sep12.154540.15753@prism.poly.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University
- Lines: 31
-
- In article <1992Sep12.154540.15753@prism.poly.edu> korfhage@weston.poly.edu writes:
- > [ asks how to add menus to existing applications ]
- >
-
- I wrote an INIT awhile ago which added a menu to SimAnt (SimAnt Cheater)
-
- What I ended up doing was tail-patching _SetMenuBar and _MenuSelect.
-
- On SetMenuBar, I would check to see if I was dealing with SimAnt and then
- Create a new menu and insert it. The patch for _MenuSelect would simply
- check to see if my menu was selected and respond accordingly.
- I was only worried about making it work with this one application, I don't
- know how generalizable this would be to others.
-
- If you're only dealing with system 7, I'd suggest looking into how to
- add icon menus, like the help and application menu, to all applications.
- (I think they call them Finder Menus). I believe that this years
- MacHack disk has a couple examples of how to do this. In fact I
- believe Dylan Talk (available at the usual archives and the MacHack disk)
- does this also and has source code.
-
- carl
-
-
- --
- Carl W. Haynes III
- Haynes Consulting Services || CWH3@aol.com
- PO Box 2715 || haynes@mace.cc.purdue.edu
- W. Lafayette, IN 47906 || hcs@applelink.apple.com
- ----------------------------------------------------------------------
- Macintosh Programming & Consulting
-