Hi Klaas,

Am Dienstag, 15. April 2008 schrieb klaas.holwerda:
> 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.
I added two patchfiles for fixing and two step creation.

...
> > 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.
I agree that's not a good idea :). And I won't do that. Thanks for the 
a2dCanvas hint.

Regards,
Thomas

>
> 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/java
>one _______________________________________________
> Wxart2d-users_dev mailing list
> Wxart2d-users_dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev



-- 
Thomas Zehbe
 
 Dipl.-Ing.
 Allied-Visions GmbH
 Bäckerstraße 18
 31683 Obernkirchen
 
 Tel. +49 5724 951822
 Fax. +49 5724 951813
 
 E-mail: [EMAIL PROTECTED]
 
 Geschäftsführer: Dipl.-Ing. Martin Seger
 Amtsgericht Stadthagen, HRB 2124 
Index: src/docmdiref.cpp
===================================================================
RCS file: /cvsroot/wxart2d/wxArt2D/modules/docview/src/docmdiref.cpp,v
retrieving revision 1.38
diff -u -r1.38 docmdiref.cpp
--- src/docmdiref.cpp	29 Jan 2008 21:46:18 -0000	1.38
+++ src/docmdiref.cpp	15 Apr 2008 19:25:21 -0000
@@ -66,6 +66,23 @@
 {
 }
 
+a2dDocumentMDIParentFrame::a2dDocumentMDIParentFrame()
+{
+}
+
+bool a2dDocumentMDIParentFrame::Create(     
+                    wxWindow* frame,
+                    wxWindowID id,
+                    const wxString& title,
+                    const wxPoint& pos,
+                    const wxSize& size,
+                    long  style,
+                    const wxString& name)
+{
+    bool res = wxMDIParentFrame::Create(frame, id, title, pos, size, style, name);
+	return res;
+}
+
 void a2dDocumentMDIParentFrame::OnExit(wxCommandEvent& WXUNUSED(event))
 {
     Close();
@@ -163,7 +180,7 @@
                     long  style,
                     const wxString& name)
 {
-    bool res = wxFrame::Create(frame, id, title, pos, size, style, name);
+    bool res = wxMDIChildFrame::Create(frame, id, title, pos, size, style, name);
     m_view = view;
     if ( m_view )
     {
Index: include/docmdiref.h
===================================================================
RCS file: /cvsroot/wxart2d/wxArt2D/modules/docview/include/docmdiref.h,v
retrieving revision 1.9
diff -u -r1.9 docmdiref.h
--- include/docmdiref.h	13 Dec 2006 21:43:28 -0000	1.9
+++ include/docmdiref.h	15 Apr 2008 19:23:43 -0000
@@ -50,6 +50,28 @@
     a2dDocumentMDIParentFrame( wxFrame *parent, wxWindowID id,
         const wxString& title, const wxPoint& pos = wxDefaultPosition,
         const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxT("frame"));
+	
+	a2dDocumentMDIParentFrame();
+	
+	    //! Constructor for two-step creation (2nd step).
+    /*!
+        \param frame The parent frame. This should not be <code>NULL</code>
+        \param id    The window identifier. 
+                     It may take a value of -1 to indicate a default value.
+        \param title The caption to be displayed on the frame's title bar.
+        \param pos   The window position.
+        \param size  The window size.
+        \param style Window style, please look into wxWindows docs for an overview.
+        \param name  The name of the window.
+    */
+    bool Create(
+            wxWindow* frame,
+            wxWindowID id = -1,
+            const wxString& title = wxT("frame"),
+            const wxPoint& pos = wxDefaultPosition,
+            const wxSize& size = wxDefaultSize,
+            long  style = wxDEFAULT_FRAME_STYLE,
+            const wxString& name = wxT("frame"));
 
     //! Extend event processing to search the document manager's event table
     virtual bool ProcessEvent(wxEvent& event);
-------------------------------------------------------------------------
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

Reply via email to