Oke, i start to understand/remember again,
a2dCanvasSim can not be used with tools currently/never.
The reason is that a2dCanvasView has:
a2dCanvas* GetCanvas() const { return (a2dCanvas*) m_display; }
which is used in function like this:
void a2dStToolContr::Zoomout()
{
m_view->GetCanvas()->SetMappingShowAll(m_zoomoutCentered);
a2dDocviewGlobals->RecordF( this, _T("zoomout") );
}
a2dCanvasSim is derived indirectly from wxScrolledWindow, while a2dCanvas is
derived from wxWindow.
If have not seen a chance to have thos use a common base class.
End conclusion a2dCanvasSim, can not be used together with tools in the editor
module, so your choice is a2dCanvas.
The best would be derive a2dCanvasSim from a2dCanvas, but i would have to
re-invent all that is in wxScrolledWindow again.
wxScrolledWindow is just a nasty thing.
Klaas
Laurent Veilleux wrote:
> Well i'am trying to work from samples, I tried to make a mix between my
> app and the samples with the aui frame managment and with a sample with
> canvas
>
--
Unclassified
-------------------------------------------------------------------------
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