Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!oceania!sdd From: sdd@oceania.UUCP (Steve Dakin) Newsgroups: comp.sys.mac.programmer Subject: Re: A Menu Question Message-ID: <1991May17.174723.15077@oceania.UUCP> Date: 17 May 91 17:47:23 GMT References: <1991May16.175749.14987@aplcen.apl.jhu.edu> Sender: sdd@oceania.UUCP Reply-To: sdd@oceania.UUCP Organization: Oceania Healthcare Systems Lines: 36 In article <1991May16.175749.14987@aplcen.apl.jhu.edu> donnald@visual1.jhuapl.edu (Creig Donnald) writes: > I am trying to learn how to program a Mac IIfx using Think C. I am > running under System 6.0.7. I have the first two volumes of Inside Macintosh > but not the later ones. > > My problem is this: I use the GetMenu procedure to request menu resources > from my resource file. However, the MenuID of the requested menus is being > set to 128 rather than the number I supply. For some reason, this also means > that the menus will not show up on my menubar. > I just ran across this exact same problem about a week ago when I transferred all my hard coded menu setup stuff to resources with ResEdit. The problem, as I found it (I would assume that yours is identical) is you have to set the menu ID in ADDITION to the resource ID of the MENU. I can't remember the exact command name in the ResEdit menu, but when you edit MENUs with ResEdit 2.1, there is a new menu that gets added to the ResEdit menubar that is specific to editing MENU resources. The first item in that menu is what allows you set the menu ID. It is this menu ID that needs to be unique for your menus to appear. If this is too confusing, email me and I will give ya more details later after I poke around with ResEdit. -- +-----------------------------------+ | Steve Dakin | | oceania!sdd@uunet.uu.net | | (NeXT mail) | | tread lighty so others may follow | +-----------------------------------+ -- +-----------------------------------+ | Steve Dakin | | oceania!sdd@uunet.uu.net | | (NeXT mail) |