@Hans
uhm..
MyWindow = (struct Window *)mglGetWindowHandle();
UserPortMsg = MyWindow->UserPort;
if ( ( MyScreen = IIntuition->LockPubScreen ( "Workbench") ) )
{
vi = IGadTools->GetVisualInfoA(MyScreen,NULL);
if (vi)
{
menu = IGadTools->CreateMenusA(nm,NULL);
if (menu)
{
if (IGadTools->LayoutMenus(menu,vi,GTMN_NewLookMenus,TRUE,TAG_END)) {
if (IIntuition->SetMenuStrip(MyWindow,menu))
printf("menu attached\n");
else
printf("error attaching menus\n");
}
}
}
}
if (MyScreen) IIntuition->UnlockPubScreen(NULL, MyScreen);
seems to work since i get "menu attached" but no menus are displayed on screen.. what's wrong?