Budi Irawan wrote:
> Hello Klaas,
> 
> it seems that if we want to use "File, Print, Save, etc" commands, we 
> need a frame class that is derived from a2dDocumentFrame.

That is a way, and its more easy.
a2dDocumentFrame also has a mechanism to redirect events to a a2dView (which in 
case of a2dCanvas is a a2dCanvasView.)
So certain events go directly to the a2dView which is nested in one of the 
window in a a2dDocumentFrame.

And a2dDocumentViewWindow is a specialized window for events traveling up from 
a 
view to reach the surrounding frame.

> 
> How about if my canvas is declared inside a class that is derived from 
> wxPanel. In my wxFrame class, this panel class is called.

should be oke as long as you use a2dDocumentFrame instead of wxFrame.

> How to call those several a2dCommand functions from my menu? 

Same way i think.

Should I
> use a2dDocumentViewWindow for my panel class?

No, and a2dCanvas is already a a2dDocumentViewWindow.

class A2DCANVASDLLEXP a2dCanvas: public a2dDocumentViewWindow


samples_docview_splitwin might teach you how to deal with other combination 
inside

MyFrame derived from EditorFrame  derived from a2dDocumentFrame

Klaas

-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to