I tried this, in the agg sample, and its oke. wxPanel* panel = new wxPanel( this );
m_view = canvasview; m_canvasview = canvasview; m_canvas = new a2dCanvas( m_canvasview, panel, -1 , wxPoint(0,0), wxSize(wx,wy), wxHSCROLL|wxVSCROLL ); But since there is a panel ( which is normally used for several controls ), you need to stuff to resize thing properly, when resizing the frame. Maybe wxSizer is fine, or just work with Onsize event handling. Why do you need a panel ? Klaas Klaas Holwerda wrote: > 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. -- 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