well i am trying the easiest way :-)

I have defined a document type and in the constructor i specify two layer

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 );
   // Create a new layer with an index above the predefined layers
   a2dLayerInfo* layer = new a2dLayerInfo(wxLAYER_USER_FIRST,
wxT("BackgroundLayer"));
   // Set layer available
   layer->Set_Available(true);
   //Set layer unselectable
   layer->Set_Selectable (false);

   // Add layer to to the a2dLayers
   docLayers->Append(layer);
   doc->SetLayerSetup(docLayers);

}
But know I am wondering how to choose in which layer i add object when i
make a Appen(cavnasObject) ?

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)
-------------------------------------------------------------------------
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