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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!wupost!calvin.sbc.com!cunetto
  3. From: cunetto@calvin.sbc.com (Philip C. Cunetto)
  4. Subject: Bad MenuSelect return value
  5. Message-ID: <1992Jul31.202423.29383@sbctri.sbc.com>
  6. Sender: cunetto@sbctri.sbc.com (Philip C. Cunetto)
  7. Organization: Southwestern Bell Technology Resources, St.Louis, MO
  8. Distribution: usa
  9. Date: Fri, 31 Jul 92 20:24:23 GMT
  10. Lines: 21
  11.  
  12.  
  13. All of a sudden, it seems a call to MenuSelect in my application is
  14. behaving differently than before.  MenuSelect is supposed to return
  15. a longint with the menuID in the high order word, and the index of
  16. the selected item in the low order word (assuming the user released
  17. the mouse on a valid menu item).  That was apparently working
  18. correctly in my application for a long time.
  19.  
  20. Now MenuSelect returns the correctly encoded menuID and item index,
  21. except that the high order bit in the returned longint is set (thus
  22. screwing up the value of the menuID).  This does not seem to be a
  23. documented return value.  Is the system trying to tell me something by
  24. flipping just the high order bit in an otherwise valid return value?
  25.  
  26. This setting of the high bit happens on some menus and not others.
  27. It either happens on all items of a particular menu, or none of them. Never
  28. on some items in a menu but not others.  It seems to happen on menus my
  29. application adds to the menu bar, not on menus already in the menu bar.
  30.  
  31. Thanks in advance.
  32. Phil
  33.