because I want to add a button below the canvas :) This button will do a
process based on some objects in canvas.
What I have done so far is create a derived wxPanel class and declare
a2dCanvas and a button here. Then, the derived wxPanel class is declared in
my wxFrame class. It works but then I confuse to add "New, Open, Save, etc"
function and also confuse how to use correct docview way. :p
On Thu, Mar 13, 2008 at 9:19 PM, Klaas Holwerda <[EMAIL PROTECTED]>
wrote:
>
> 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
>
-------------------------------------------------------------------------
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