Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!news From: donnald@visual1.jhuapl.edu (Creig Donnald) Newsgroups: comp.sys.mac.programmer Subject: A Menu Question Message-ID: <1991May16.175749.14987@aplcen.apl.jhu.edu> Date: 16 May 91 17:57:49 GMT Sender: news@aplcen.apl.jhu.edu (USENET News System) Reply-To: donnald@visual1.jhuapl.edu (Creig Donnald) Organization: Johns Hopkins University Lines: 47 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. The following segements of code are extracted from my program. When I run it, I get the Apple and File menus but none of the others. #define APPLE_MENU_ID 400 #define FILE_MENU_ID 401 #define EDIT_MENU_ID 402 #define FONT_MENU_ID 403 #define STYLE_MENU_ID 404 . . . MenuBarInit() { int i; myMenus[0] = NewMenu( APPLE_MENU_ID, "\p\024" ); AddResMenu( myMenus[0], 'DRVR' ); myMenus[1] = GetMenu (FILE_MENU_ID); myMenus[2] = GetMenu (EDIT_MENU_ID); myMenus[3] = GetMenu (FONT_MENU_ID); myMenus[4] = GetMenu (STYLE_MENU_ID); AddResMenu (myMenus[3], 'FONT'); for (i = 0; i <= 4; i++) InsertMenu (myMenus[i], 0); DrawMenuBar (); } The debugger tells me that the menuID for the Apple menu is indeed 400. However, all of the other menuIDs are 128, and only the first one shows up. Can anyone tell me what is going on? Please email responses to donnald@visual1.jhuapl.edu. Thank You --