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
>
> Now I am making a new test project I have copied the aui sample project
> and files and i have make several modifications
Aui was a docview sample. And the last one i added written not by me, and
complicated.
Better start with the canvas and/or editor samples.
They already have tools, and therefore are a better start:
single2
editmdi
But this one here is a bug, i found already:
a2dDocviewGlobals->GetDocviewCommandProcessor()->AddCreatedDocument( doc
); //=> commandprocessor pointer is put
at NULL !!!!!
But i never noticed it, since a needed a2dToolContr, creates it again if
missing.
And its a rather interesting bug, but i am sure you are no interested in that
now :-)
So i suggest you start with single2, and look at like this:
m_contr = new a2dStToolContr( drawer, this );
This creates the commandprocessor if its not there, and its needed to have
tools.
Next there is a2dCanvasSim which is hardly used, so i will make single2 work
with a2dCanvasSim to see if all is right.
Will check in this evening, so have a look at single2 already, tomorrow there
will be a define to switch the canvas type.
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