Laurent Veilleux wrote:
> Ok i restarted from scratch (one more time) from the aui sample using no 
> custom type just a2dCanvas a2dCanvasView a2dCanvas a2dViewConnector
> and it works with no memory leaks =)

Good.

> 
> Now i will try with your new canvasSim (thanks for the update) , and i 
> guess i will have to use a a2dScrolledWindowViewConnector instead 
> .a2dViewConnector

     a2dScrolledWindowViewConnector* singleconnector = new 
a2dScrolledWindowViewConnector();

instead of

     a2dWindowViewConnector* singleconnector = new a2dWindowViewConnector();


I found some update problems in the new canvasSim, so will check in a few 
changes.
But as a whole it works fine.

> I would like to know if there is a simple way to get the currect view ? 
> to know which document is opened  at any moment ?

a2dView *a2dDocumentCommandProcessor::GetCurrentView() const

> 
> To save my canvas I guess too that i have nothing to code no ? if i just 
> want to save the items displayed on the canvas

Yes, that will be CVG as standard format.
Like in the single2 example, you can load cvg files from here ( just try a few, 
maybe not all work).

wxArt2D\samples\editor\samples\common\drawings

Saving is the same.

Other formats as SVG etc. require other templates, see vdraws/vdrawm etc.
But CVG is the best for load it back the same way.

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

Reply via email to