The item at index 0 is the title of the menu. Menus are index 1
based, so if you want the first item in specialmenuref to have a
submenu, pass 1 as the index instead of zero. In fact,
SetMenuItemHierarchicalMenu() may be returning an error in your code.
Also, since you are using SetMenuItemHierarchicalMenu(), you don't
need to use InsertMenu() afterwards.
Ack, at 10/28/06, David Walters said:
if (isSpecialCommandsSubMenu(menustrings[mi])) {
//here is the problem
SetMenuID(m1ref, 0);
SetMenuItemHierarchicalMenu(specialmenuref, 0, m1ref);
InsertMenu(m1ref, kInsertHierarchicalMenu);
} else {
//this works fine
InsertMenu(m1ref, 0);
}
}
DrawMenuBar();
}
I can add menus directly to the root space quite easily, and I think
I'm doing what the example code does, it must be something simple?
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden