|
-
Aug 24th, 2001, 08:24 AM
#1
Thread Starter
Lively Member
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.
-
Aug 24th, 2001, 08:27 AM
#2
PowerPoster
Set the NegotiateToolbars property to false
-
Aug 24th, 2001, 08:39 AM
#3
Thread Starter
Lively Member
No, the menu of parent form still disappears.
-
Aug 24th, 2001, 08:41 AM
#4
PowerPoster
Which form did you try it in?
-
Aug 24th, 2001, 08:45 AM
#5
Thread Starter
Lively Member
I tried the MDI form only, then Child form only, then both of them. Neither way works.
-
Aug 24th, 2001, 08:49 AM
#6
PowerPoster
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.
-
Aug 24th, 2001, 08:59 AM
#7
Thread Starter
Lively Member
It looks like NegotiateToolbars property applied for toolbar not for menu. Anyway, thank you for your help and so quick response, chrisjk.
-
Aug 24th, 2001, 09:06 AM
#8
PowerPoster
Doh! It's NegotiateMenus, not toolbars! (on the child form)
-
Aug 24th, 2001, 09:19 AM
#9
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|