Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!julius.cs.uiuc.edu!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Hierarchial Menus with ResEdit 2.1 Message-ID: <22528@well.sf.ca.us> Date: 10 Jan 91 06:35:26 GMT References: Distribution: comp Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 20 According to IM V 4: SetMenuBar(GetNewMBar( id )); will read in, initialize, and put up an entire menu bar. But, to get hierarchical menus to work, you need to individually InsertMenu(GetMenu( id), -1); (This is all from memory, so double check in the book.) The MBAR resource doesn't know about this second part of the process. You might consider using a second MBAR resource, and writing your own GetNewHierarchicalMBar( id ) that runs down the resource getting and inserting menus. If you are going to be really picky, Menu Manager wants you to insert the menus when they are appicable, and delete them when they become inapplicable. This is more an issue for popup menus that are assoicated with particular windows, but just thought I'd mention it. -- -- David Phillip Oster - At least the government doesn't make death worse. -- oster@well.sf.ca.us = {backbone}!well!oster