Laurent Veilleux wrote:
> Hi iam new to wxART2D and i am trying to do a visio like application. At 
> the moment I want to create a document where user can draw on them and 
> input text.

oke.

> 
> I would like to know if I have well understood how wxArt2D work
> For my window i use a2dCanvasSim ,

Not impossible, but a2dCanvas is what i use normally.
a2dCanvasSim is a simple version which has a bitmap for the whole scrollable 
area.

  for my view a2dCanvasView and for my
> document, a2dCanvasDocument

Right.

> 
> The architecture has to be : view own a pointer on a document and a 
> ad2Frame 

a2dDocumentFrame

(here a canvas) own a pointer on view isn'it ?

Yes a view has a smart pointer to its document.
a2dFrame should get a a2dCanvas as subwindow, and to that window you attach a 
view via a a2dConnector.
The a2dDocumentFrame has a view pointer for redirecting events directly to a 
view, even if it is several levels deep.
The thing is that other wise some events would not arrive at the view via the 
window hierarchy.
It can also have a view directly for other types of views, but for a2dCanvas 
this is not the case.

> 
> 
> To interact with my document I use tool actually but i didn't found any 
> tool to draw on a canvas document 

You must be joking ;-)

, shoul I make a new one derivating
> from the tool base class

No, sttools.cpp has several and there or more.

In the samples/editor has all samples to push and pop tools.

editmdi  and vdraws for instance.

> 
> Why tool are always push in  the samples and never pop ??
> 

Because the are poped automatically when ending/stopping a tool.
A tool is told to stop, and in the next event, it will be popped by the 
controller.


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