workaround for bug 1064351?

Vincent Wehren wrote:

Date: Thu, 17 Mar 2005 10:24:12 -0800
To: wxPython-users@lists.wxwidgets.org
From: Robin Dunn <robin@alldunn.com>
Subject: Re: [wxPython-users] workaround for bug 1064351?
Message-ID: <4239CB4C.60200@alldunn.com>

Robin Dunn wrote:

If you give the MDIChildFrames a menubar (even if it is just a copy of the parent's) then it should work. The bug appears to manifest only when the child frames don't have a menubar themselves.

Yes. I suspected that. And it does work when I set a new menu
bar for the child frame. But now I would like to use the menu of the parent frame. However - just to make sure I'm not heading down the wrong road - when you say "just a /copy/ of the parent's", do you mean it should be possible to do something like:
self.SetMenuBar(self.parent.menuBar())?

...which won't to work as this menu is already attached, or do you mean something
along the lines of "reuse the code to create the parent's menu bar"?

Yes, you need to create a new instance for each child.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!