I've got an application that contains a frame, which in turn contains a splitter window, which in turn contains a notebook on one of the two panels. On MS Windows, when the application is maximized, the notebook remains the original size, rather than expand to fill the available area. I've registered an EVT_MAXIMIZE event (where self is the frame):
self.Bind(wx.EVT_MAXIMIZE, self.OnMaximize)
Here's the handler:
def OnMaximize(self, event):
# resize windows in splitter if frame was maximized
for child in self.infoview.GetChildren():
child.SetSize(self.infoview.GetMaxSize())
self.log.SetSize(self.sysmsg.GetSize())
self.Layout()
event.Skip()
infoview is a panel of the splitter window. The notebook is a child of self.infoview.
Can anyone suggest how to make the notebook fill the available area when the frame is maximized?
Thanks.
Brian