Results 1 to 4 of 4

Thread: yeeeaaaaarrrgghhh!!

  1. #1
    nullus
    Guest

    Angry 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?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3
    nullus
    Guest
    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.

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Yeh that's what I was thinking of but my wording sukd!
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width