Results 1 to 9 of 9

Thread: Menu Problem in MDI Form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Menu Problem in MDI Form

    Hi All,
    I posted this problem six months ago but no response all. I wish someone can help me this time.

    A quick question about menu in MDI form. I have a MDI form with a set of menu on the top. For some child forms, they have their own menu. The problem is whenever a child form which has its own menu is active, MDI form 's menu disppears. Is there a way to always keep MDI's menu on the top ? For example, a child form can have its own right-click pop-up menu while MDIform's menu is on the top. I solve this problem by making that child form an ActiveX control then i can have both menus. But i am sure it is not a good way to do this. Any suggestion?

    Thanks.

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Set the NegotiateToolbars property to false

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool

    No, the menu of parent form still disappears.

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Which form did you try it in?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool

    I tried the MDI form only, then Child form only, then both of them. Neither way works.

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Well, this is what MSDN says:
    The NegotiateToolbars property has these settings:

    Setting Description
    True (Default) The MDIForm object displays the toolbars of the active object on the top or bottom of the MDIForm. The active object determines whether the toolbars are displayed at the top or bottom of the MDIForm.
    False The toolbars of the active object either aren't displayed at all or are displayed as floating tool palettes, as determined by the active object.


    Remarks

    Use the NegotiateToolbars property when creating a multiple-document interface (MDI) application that includes objects on MDI child forms. With this property, you determine how the active object displays its toolbars. By setting this property to True, the MDIForm shares (or negotiates) space at the top or bottom of the form to display the toolbars of the active object.

    If the MDIForm also contains a toolbar, use the Negotiate property to determine how the various toolbars share the available space.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool

    It looks like NegotiateToolbars property applied for toolbar not for menu. Anyway, thank you for your help and so quick response, chrisjk.

  8. #8
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Doh! It's NegotiateMenus, not toolbars! (on the child form)

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool

    Following is from MSDN:

    ---------------------------------------------------------
    You can't negotiate menus between an MDIForm object and an object on the MDIForm
    -----------------------------------------------------------

    I guess i have to stick with my current method.

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