I have changed FaceConstFrm => MyFrame

however, I'm still learning gdb... I think I will give the report after I
check my code in gdb.

Thanks Klaas

>
On Mon, Apr 7, 2008 at 8:02 PM, Klaas Holwerda <[EMAIL PROTECTED]>
wrote:

> Budi Irawan wrote:
>
>
> > BEGIN_EVENT_TABLE(FaceConstFrm,a2dDocumentFrame)
> >      EVT_CHANGEDMODIFY_DOCUMENT(MyFrame::OnModified)
> > END_EVENT_TABLE()
> >
>
> MyFrame here???
>
> Put a breakpoint on event.SetEventObject( this ); here, to see it is
> called or not.
>
> void a2dDocument::Modify(bool mod)
> {
>    if (m_documentModified != mod)
>    {
>        m_documentModified = mod;
>
>        a2dDocumentEvent event( wxEVT_CHANGEDMODIFY_DOCUMENT );
>        event.SetEventObject( this );
>        DistributeEvent( event );
>    }
> }
>
> I think you need to add this in FaceConstFrm constructor:
>
>    a2dDocviewGlobals->GetEventDistributer()->Register( this );
>
>
>
> > And then, I tried to make my own document class that derived from
> > a2dCanvasDocument and catch this event inside and it didn't work too.
> > And my last effort is I tried to implement it inside my own canvas view
> > class that derived from a2dCanvasView and it didn't work too.
> >
>
> Read class A2DGENERALDLLEXP a2dEventDistributer : public wxEvtHandler
> comments.
>
> Regards,
>
> Klaas
>
>
> --
> Unclassified
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> 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 the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to