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.

How about if my canvas is declared inside a class that is derived from
wxPanel. In my wxFrame class, this panel class is called.
How to call those several a2dCommand functions from my menu? Should I use
a2dDocumentViewWindow for my panel class?

For example for "New" we can use

a2dDocviewGlobals->GetDocviewCommandProcessor()->FileClose();


I'm so sorry for this silly question because I'm still confusing with
docview framework.

Thank you so much



On Mon, Mar 10, 2008 at 4:53 PM, Budi Irawan <[EMAIL PROTECTED]> wrote:

> thanks Klaas,
>
> I'm still learning docview framework because it is really new for me. I
> understand it as a concept but when I tried to implement it in my
> application, I often got stucked.
>
>
>
>
> On Fri, Mar 7, 2008 at 5:39 AM, klaas.holwerda <[EMAIL PROTECTED]>
> wrote:
>
> > Budi Irawan wrote:
> > > Yes, that is what I mean....File New Command
> > > Crash is happened when I click this menu....:(
> > Oke i decided to change that sample, its now using docview framework as
> > in vdraws.
> > But it is therefore much different. So i will decide later if the old
> > simple way will be added as an extra sample or not.
> > It does not load files properly yet, so it is not completely ready. But
> > the new file is oke, and the rest will follow soon.
> >
> > Hope it helps,
> >
> > Klaas
> >
> >
> >
> > -------------------------------------------------------------------------
> > 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
> >
>
>
-------------------------------------------------------------------------
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