home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13171 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.1 KB  |  27 lines

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