Laurent Veilleux wrote:
> How to get the list of view created ? I can only get the list of doc
> created with
>
> a2dDocviewGlobals->GetDocviewCommandProcessor()->GetDocuments();
>
> Bit I don't find a way to get canvas associated with them
Search this:
void a2dDocument::ReportViews( a2dViewList* allviews )
A2D_EVT_REPORT_VIEWS( a2dView::OnReport )
You will get a list of views on the document.
And each one has a
wxWindow* a2dView::GetDisplayWindow() { return m_display; }
which is the same as the one you would get like:
a2dCanvas* a2dCanvasView::GetCanvas() const { return (a2dCanvas*)
m_display; }
You don't really associate a canvas with a document, only views. Indirectly you
can find a window if use.
Printing and bitmap drawing etc. is also via views, they do not have a display.
Klaas
--
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