wxMac: The dot in the red circle in document windows
Vadim Zeitlin
vadim at wxwidgets.org
Mon Jul 2 08:58:11 PDT 2007
On Mon, 2 Jul 2007 16:21:12 +0200 Stefan Csomor <csomor at advancedconcepts.ch> wrote:
SC> > But this is unfortunately not as simple as just adding
SC> > wxDocumentFrame as this wouldn't work in wxMDIChildFrame (which
SC> > derives from wxFrame). So if we want to
SC> >
SC> > 1. keep these document-specific methods in a separate class
SC> > 2. be able to use them in MDI child frames
SC> >
SC> > then the mix-in solution is necessary. But if nobody except me feels
SC> > strongly about (1) then we should indeed just add these methods to
SC> > wxFrame.
SC>
SC> and to interpose wxDocumentFrame between wxFrame and wxMDIChildFrame ?
No, I meant to have wxDocumentFrame inheriting from wxFrame and some
wxDocumentWindow mix-in class. Then you could also have wxMDIDocumentFrame
inherit from wxMDIChildFrame and wxDocumentWindow mix-in.
As Vaclav wrote, this is more complicated than just having these methods
directly in wxFrame. But IMHO it might be worth it.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list