home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!wupost!calvin.sbc.com!cunetto
- From: cunetto@sbctri.sbc.com (Philip C. Cunetto)
- Subject: MenuSelect and return codes
- Message-ID: <1992Jul29.194943.21468@sbctri.sbc.com>
- Organization: Southwestern Bell Technology Resources, St.Louis, MO
- Date: Wed, 29 Jul 92 19:49:43 GMT
- Lines: 17
-
- All of a sudden my application began acting differently and I don't
- understand what has happened. Calls to the MenuSelect trap return
- the menu ID in the high order word, and the index of the selected item
- in the low order word, except that the high order bit is set (in effect,
- screwing up the menu ID). This wasn't happening before, and it showed
- up all of a sudden. It doesn't always set the high order bit,
- but only when certain menus are being selected from.
-
- My temporary work around is to check the return value, and if its negative
- zero out the high order bit. But that's going to get me in trouble eventually.
-
- What is the system trying to tell me when is sets the high order bit
- on the MenuSelect return value?
-
- Thanks
- Phil C.
-
-