by Ben on Tue Oct 31, 2006 4:32 am
Hello,
I'd love a patch.
To get started, do a search on HasCloseButton in wxaui. You should add HasMaximizeButton to wxPaneInfo() for starters. Next, in wxFrameManager::AddPane(), you need to add your maximize button in the appropriate place. In the dock art class, you will need to provide a bitmap so that the maximize button is drawn properly.
Finally, you'll have to actually implement the maximize functionality. Basically, it should shrink all other panes in the dock (use the dock_proportion member of wxPaneInfo for this). You can put your initial implementation in wxFrameManager::OnPaneButton() for starters. It can be factored out into a utility function later.
Hope this helps,
Ben