wxFrame and wxShapeCanvas in one Window

Hello!
Someone know how can I use wxFrame and wxShapeCanvas in the same window?
I like to do something like this:

···

------------------------------

                                               >

------------------------------

      > >

------------------------------
In the top I want to put a menu, in the left will have some buttons and in the right the wxShapeCanvas.

Diego.

Diego Prestes wrote:

Hello!
Someone know how can I use wxFrame and wxShapeCanvas in the same window?

No, but I suspect that you have wxTerminology mixed up.

I like to do something like this:
------------------------------
> >
------------------------------
> > >
> > >
> > >
> > >
------------------------------
In the top I want to put a menu, in the left will have some buttons and
in the right the wxShapeCanvas.

That you can do. The whole thing will be a custom class you derive from
wxFrame, you put he menubar on that. In that frame you probably want to
put a wxSashWindow, and you put a wxPanel with your buttons on it in one
side of the sash window, and the wxShapeCanvas in the other side.

If you don't want to use a wxSashWindow, you could use a xwBoxSizer to
lay out the panel and the shapecanvas, or use abaoute positioning (bad
choice however)

See the demo for all the pieces.....

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov