Thomas Zehbe wrote: > Hi Klaas, > > i was struggeling some time with having a mdi child window external to his > mdi > parent frame (just as a normal frame). > > Because i'm using Dialogblocks with two step generation setted by default, I > found the bug (from CVS head): > > 156 bool a2dDocumentMDIChildFrame::Create( > 157 wxMDIParentFrame* frame, > 158 a2dView* view, > 159 wxWindowID id, > 160 const wxString& title, > 161 const wxPoint& pos, > 162 const wxSize& size, > 163 long style, > 164 const wxString& name) > 165 { > 166 bool res = wxFrame::Create(frame, id, title, pos, size, styl...... > > The last line has to be > bool res = wxMDIChildFrame::Create(frame, id, title, pos, size, styl...... > Oke, that looks like a bug indeed. > BTW, i added two step creation for the MDIPArentFrame to this file, too. > Send me that part, i add it. > And i have a question. I took MDI style for my first test, because I'd like > to > have two or more different drawings selectable like a tab widget. None of > these drawings are read from or stored to disk. They are generated (and > modified) by code. Is it possible f. E. to use the CanvasDoc approach with > simple scrolled windows on a tab widget as a view for the canvas doc? > Yes, the wire example and mars do something like that. But not simple scrolled windows, you should use a2dCanvas which is just a scrolled window, and there is also a2dCanvasSim. The a2dCanvasDocument, a2dCanvasView, a2dCanvas from a special relation, which makes it easy to display a2dCanvasDocument on several views. Still a2dCanvasDocument can be used standalone, but that you must do rendering yourself, which i would not find a good idea.
Klaas ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev