Hello, thanks for all the comments, I am getting a better idea, but seem to have more work ahead. I replaced a2dDocumentViewScrolledWindow by a2dCanvas and use a2dCanvasView. No derived own classes for now.
Then I got error 1>D:\wxArt2D\modules\docview/include/docviewref.h(3269) : error C2664: 'a2dCanvas::a2dCanvas(wxWindow *,wxWindowID,const wxPoint &,const wxSize &,long,a2dDrawer2D *)' : cannot convert parameter 1 from 'a2dView *' to 'wxWindow *' because a2dCanvas (a2dCanvasView *view, wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxScrolledWindowStyle) requires a2dCanvasView * as first param, but gets only a2dView*, a type cast is missing. I hacked line 3269 with a dynamic cast to a2dCanvasView, so the right constructor gets used. Now it compiles and I get multiple canvas inside my auinotebook. :-) What is the proper solution, library hacking should not be needed? Viele Grüße, Michael PS: Klaas, where is that mars application? klaas.holwerda schrieb: > Bionic Badger wrote: >> On Sat, Jul 18, 2009 at 2:52 PM, Michael Stratmann<stratm...@micst.de> wrote: >> >>> I wonder, if and how I can combine a2dCanvas with my auiFrame's >>> auiNotebook. Then I could go with the regular circle, rectangle etc. tools. >>> I just started with doodleline because all docview examples use it. >>> >> I use an a2dDocumentFrame with its view set to NULL, and then create >> my own canvas in one of the panels, and grab *its* view for attaching >> the tool to. > a2dEditorFrame derived from a2dDocumentFrame, and explains the idea > (creating a canvas and such). > But the view needs to be set for the a2dDocumentFrame somehow to > redirect events the right way to view. > See a2dDocumentFrame::ProcessEvent() > >> The a2dDocumentFrame is basically a regular wxFrame with >> some extra setup for wxArt2D. I think it can work for AUINotebook as >> well. I know I do have AUINotebooks inside that GUI; you just need to >> create a canvas in one of the panels. > Right, just make sure the notebook redirect event correctly to views. I > think you need to set the view(of a2dCanvas) of/in the active notebook > page to the a2dDocumentFrame. > So frame event go to a2dCanvasView. > Maybe have a look at the mars application, where its done. > > Klaas > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Wxart2d-users_dev mailing list > Wxart2d-users_dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev > ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev