Thanks for you help
ok now it compiles but i can't test cause since i binded my view my canvas
window is black
and i can't do anything (text ,polyline tool don't work)


here s my code

   StaticSchemeView* staticSchemeView = new StaticSchemeView();

   StaticSchemeDocument* staticSchemeDoc = new StaticSchemeDocument();
   staticSchemeDoc->SetFilename( wxFileName(wxT("dummy.drw")) );
   staticSchemeDoc->CreateCommandProcessor();
   staticSchemeView->SetDocument( staticSchemeDoc );

   a2dDocviewGlobals->GetDocviewCommandProcessor()->AddCreatedDocument(
staticSchemeDoc );

   m_canvas1 = new a2dCanvasSim(m_notebook, -1 , wxPoint(0, 0), size,
wxNO_FULL_REPAINT_ON_RESIZE);
   m_canvas1->SetView(staticSchemeView);
   m_canvas1->SetCursor(wxCursor(wxCURSOR_PENCIL));

   m_notebook->AddPage( m_canvas1, wxT("StaticScheme"), true );

   // Give it scrollbars
   m_canvas1->SetScrollbars(20, 20, 50, 50);
   m_canvas1->SetBackgroundColour(*wxWHITE);
   m_canvas1->ClearBackground();


   // Make sure the document manager knows that this is the
   // current view.
   staticSchemeView->Activate(true);
   staticSchemeDoc->CreateCommandProcessor(); //I added this line else it
bugs  ont the next line cause

//intern command processoir point is null
   staticSchemeDoc->GetCommandProcessor()->Initialize();



any idea?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to