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. 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. a2dDrawer2D* aggDrawer = new a2dAggDrawer ( a2dCanvasGlobals->m_initialDocChildFrameSize ); m_canvas = new a2dCanvas ( m_panelRight, -1, wxDefaultPosition, wxDefaultSize, wxHSCROLL | wxVSCROLL | wxSUNKEN_BORDER | wxALWAYS_SHOW_SB ); a2dCanvasView *canvasView = m_canvas->GetCanvasView (); canvasView->SetDrawer2D( aggDrawer ); bSizerCanvas->Add( m_canvas, 1, wxALL|wxEXPAND, 0 ); ... // Canvas parameters a2dCanvasDocument* root = m_canvas->GetCanvasDocument(); root->CreateCommandProcessor(); ... // Other document stuff m_toolControl = new a2dStToolContr( canvasView, this ); m_toolControl->SetDragMode (wxDRAW_REDRAW); m_toolControl->SetSnap(true); ------------------------------------------------------------------------------ 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