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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!bcm!aio!mark@cheers.jsc.nasa.gov
  3. From: mark@cheers.jsc.nasa.gov (Mark Manning)
  4. Subject: A simple question about menus
  5. Message-ID: <1992Nov12.154914.23682@aio.jsc.nasa.gov>
  6. Sender: news@aio.jsc.nasa.gov (USENET News System)
  7. Organization: Simulacron I
  8. Date: Thu, 12 Nov 1992 15:49:14 GMT
  9. Lines: 44
  10.  
  11. Hi!  I used to think I knew how to create menus and (especially)
  12. hierarchical (sp?) menus.  But, foolish me, I don't. :(
  13.  
  14. What I'm trying to do is to create a menu which looks like this:
  15.  
  16. <Apple> File Edit Forms Options Format
  17.                                 Font  >
  18.                                 Size  >
  19.                                 Style >
  20.  
  21. With the ">" being where the submenus go.  Using ResEdit, I have
  22. created the above menus (with their pull down stuff like "New", "Open",
  23. and all of the rest).  I have created the entries under "Format"
  24. with the submenu option box clicked on and the ids entered.  I've
  25. also created the submenu entries.
  26.  
  27. The "Font >" submenu has zero entries, they are added via an AddResMenu
  28. command within the program.  The "Size >" submenu is figured out after
  29. the "Font >" menu is created so I can find out what the standard system
  30. font is and insert all of the available sizes into the "Size >" submenu.
  31. The "Style >" submenu has all of the standard stuff already inserted
  32. into it (ie:Plain, Bold, etc...).
  33.  
  34. When I go to insert the submenus though, only the "Font >" submenu comes
  35. up and it only appears under the "Style >" part of the "Format" menu.
  36. Everything else simply disappears.
  37.  
  38. I've been trying to get this to work for weeks and, unfortunately, our
  39. Usenet node has been down that long.  Otherwise I would have asked
  40. someone much earlier. :)
  41.  
  42. Before I forget:The entire program is written using MPW Pascal under
  43. System 6.0.8 (Please, no flames.  I work for the government and I'm
  44. just happy to even HAVE a Mac. :) ).  ResEdit 2.1.1 is the ResEdit
  45. version I'm using.  My mail code is mark@cheers.jsc.nasa.gov (which
  46. is also located at the top of this message).  Please e-mail me an
  47. answer as our Usenet node keeps acting like a popcorn popper and I
  48. don't know how long this particular kernel is going to last.  ;)
  49. Thanks ahead of time for your help.
  50.  
  51. PS: To insert a hierarchical menu into the "Format" menu, I use the
  52. "InsertMenu( gFontMenu, -1 );" command which, from what I've read,
  53. seemed to be the correct way to insert submenus.  Thanks again.
  54.  
  55.