Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!icdoc!qmw-cs!jeremyr From: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Newsgroups: comp.sys.mac.programmer Subject: Re: Looking for Mac portable help Message-ID: <1869@sequent.cs.qmw.ac.uk> Date: 5 Apr 90 08:08:07 GMT References: <9004031523.AA18805@jade.berkeley.edu> Reply-To: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Organization: Computer Science Dept, QMW, University of London, UK. Lines: 18 In article <9004031523.AA18805@jade.berkeley.edu> lwv27@CAS.BITNET writes: >A friend is having some trouble with some code he is testing. Previously, >the code was tested on SE, SE/30, Mac plus, etc. When a menu with a grey >item was selected, the program would catch a trap to some code which provided >additional help. But when the software runs on a Mac portable, the trap >'doesn't seem to work or be in the toolbox' according to a msg I received >this morning. You don't need to patch a trap to do this. According to IM V p240, the function MenuChoice will, if called after MenuSelect returns 0 in its high word, return a longint with the menu of the disabled item in the high word and the item number in the low word. The global variable MenuDisable ($b54) serves the same purpose. If you're using a custom MDEF, however, this may not work. Hope this helps Jeremy Roussak