home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18381 < prev    next >
Encoding:
Text File  |  1992-11-14  |  2.0 KB  |  48 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!cs.utexas.edu!bcm!aio!mark@cheers.jsc.nasa.gov
  3. From: mark@cheers.jsc.nasa.gov (Mark Manning)
  4. Subject: SOLVED!  (The Menu Problem)
  5. Message-ID: <1992Nov13.193046.20761@aio.jsc.nasa.gov>
  6. Sender: news@aio.jsc.nasa.gov (USENET News System)
  7. Organization: Simulacron I
  8. Date: Fri, 13 Nov 1992 19:30:46 GMT
  9. Lines: 37
  10.  
  11. Thanks go to Chuck at chuck@gte.com for solving this problem for
  12. me!  Thanks also go to everyone else who sent in suggestions on
  13. what was the matter.
  14.  
  15. What Chuck suggested was that maybe the submenus had been moved from
  16. a previous location within the resource.  Thus, the hidden menu ids
  17. were different than those displayed.  Since I've never had any problems
  18. with creating submenus before, I never had seen this happen.  But
  19. that was the exact error.  Thanks again Chuck! :)
  20.  
  21. Synopsis:
  22.  
  23. Within ResEdit, there are at least three (that I know of) places
  24. where a menu id can be located.  The first is when you create
  25. the menu.  The menu is assigned a unique id so it can be separated
  26. from the rest of the menus when it is stored in the resource.  This
  27. is the menu id you see when you open up a file and double click on
  28. the "MENU" resource.
  29.  
  30. The second menu id is found when you are using ResEdit 2.1.1 and are
  31. creating a given menu.  If you say the menu entry has submenus, then
  32. an ID field pops up and you can declare where the submenu is located.
  33.  
  34. The last location (the one I didn't know about) is a new menu entry
  35. which appears whenever you open a menu to look at it.  The new menu
  36. entry (which appears on the menu bar) is called "MENU".  This entry
  37. allows you to change the internal menu id by which the menu you are
  38. looking at is known to the Macintosh system.  This id number should
  39. match the id number of the menu you are presently looking at.  If it
  40. doesn't, then bad things can happen (like loosing the menu).  Adjust
  41. it accordingly and your menus should pop up ok.
  42.  
  43. Notes:
  44.  
  45. Well, thanks again to everyone (especially Chuck) and now I'm off to
  46. continue my programming.  Later!
  47.  
  48.