wxFrame inside a wxPanel

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
zulya
In need of some credit
In need of some credit
Posts: 4
Joined: Thu Dec 01, 2005 6:23 pm

wxFrame inside a wxPanel

Post by zulya » Mon Apr 10, 2006 3:28 pm

Hello,

This might be a weird question, but Is it possible to put the wxFrame inside of a wxPanel? Or does wxFrame have to be a stand-alone window?

Thanks!

benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte » Mon Apr 10, 2006 7:46 pm

The wxFrame is derived from wxTopLevelWindow. I really doubt that you can put a frame on a panel... It corresponds to the main frame of your application.

Ksmith22
I live to help wx-kind
I live to help wx-kind
Posts: 199
Joined: Mon Nov 21, 2005 4:34 pm

Post by Ksmith22 » Mon Apr 10, 2006 9:09 pm

I'm not exactly sure why you would want to. The two are essentially the same (at least in this context - obviously not in the top level context).

Sof_T
Can't get richer than this
Can't get richer than this
Posts: 864
Joined: Thu Jul 28, 2005 9:48 pm
Location: New Forest, United Kingdom
Contact:

Post by Sof_T » Tue Apr 11, 2006 8:41 am

Most users of the forum will consider your request strange, but there are valid reasons to do this. One example of this in Microsoft's visual GUI design software.

A few of us have been struggling with acheiving this. So far we have found a couple of solutions. Mine is a frame derived from wxFrame which is a windows only solution. Death ghast has another solution which involves using a control which fakes it by drawing the frame on another control.

You can read more here. http://forums.wxwidgets.org/viewtopic.php?t=7408

Hope this helps.

Sof.T
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/

Post Reply