-
yeeeaaaaarrrgghhh!!
i'm still stuck with this problem of having popup menus in child forms which make an MDI form's menus disappear. i thought i found a way to create the MDI form's menus in the child forms at runtime using the CreateMenu API, but now i've learned that you can't create menus on MDI child forms (unless i can make the main menu item invisible somehow??).
the only other ways i can think of are to either create the MDI form's menus on each child form at design time (which would get very annoying if i need to add other menus in future), or to create the child form menus in the MDI form (which i already had, but this creates too much code to have in memory throughout the life of the app).
can anyone think of any way i can do this? :confused:
-
I just had my pop ups all on the MDI form and in there click event I just executed a sub on the child form using ActiveForm.MySub. That way most of the code was still in the child form but the menu wasn't. Kind of the same theory behind a callback.
-
thanks everyone. :) the idea of Edneeis to have all the menus on the MDI form and the code in the child forms is a nice idea (not too sure if that's what you meant also, mlewis), so i think i'll give that a go. :)
-
Yeh that's what I was thinking of but my wording sukd!