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