Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menus and MDI

Status
Not open for further replies.

yamamoto

Programmer
Oct 6, 2003
3
GB
I have an MDI interface and on one MDI-child I have a popup-menu and don't want that one to be visible in the parent menu. Right now when the MDI-child got focus the parent-menu switches to the popup-menu I have in the MDI-child.

I also wonder if it is possible to have a menu on an MDI-child and always show that one in the MDI-parent window regardless of which MDI-child got the focus.

thank you
 
Ummm... No?

I don't think what you want to do is possible. When you have a menu on an MDI parent AND and MDI child, the child menu will take over, if there is one, and over-ride the parent. A possible simple workaround is to recreate all the same menus on the child as on the parent, but add the popup menu to the child. Then inside each of the Menu_Click() subs, call another public sub inside of a .bas module. Also, maybe you can just add your pop-up menu to the parent, uncheck the visible box on the property page, and still call it from code. Just qualify it with MDIForm1.mnuName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top