Laurent Veilleux wrote:
> StaticSchemeDocument::StaticSchemeDocument(void):
> a2dCanvasDocument()
> {
> m_documentTypeName = _T("StaticSchemeDocument");
>
> //create two layers one for the background image
>
> // Clone the current layer setup
> a2dLayers* docLayers = doc->GetLayerSetup()->Clone( bool deep =
> true );
There is no need to clone what is already there, and what is doc here??
Just start a new layer setup, and set it to the document.
>
> // Add layer to to the a2dLayers
> docLayers->Append(layer);
> doc->SetLayerSetup(docLayers);
I would say just SetLayerSetup(docLayers), since you are in the constructor.
>
> }
> But know I am wondering how to choose in which layer i add object when
> i make a Appen(cavnasObject) ?
myobject->SetLayer()
>
> When i was speaking about zoom, i meant that I wanted my background
> image behave live canvas object when i zoom (scaling on the screen
> according to zoom value)
Oke,
Klaas
-------------------------------------------------------------------------
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