[wxPython] Docked miniframes in MDI frame

RE: [wxPython] Docked miniframes in MDI frame

···

-----Original Message-----

From: Robin Dunn [mailto:robin@alldunn.com]

Sent: Wed, 2002 January 02 19:01

To: wxpython-users@lists.wxwindows.org

Subject: Re: [wxPython] Docked miniframes in MDI frame

The first problem is that I can’t seem to get a wxMiniFrame to stay inside

an MDI parent. If I switch to a wxMDIChildFrame then it is bound by the

parent but has a nasty fat title bar.

This is untested, but try using a wxMDIChildFrame with a wxFRAME_TOOL_WINDOW

style.

Thanks for the reply. I Tried that and it doesn’t work. I still get the fat title bar.

I haven’t got the docking bit working yet. From what I’ve read so far, it

seems that I should be using wxLayoutAlgorithm is this right? It doesn’t

look very well documented and none of the Python demos use it so I’m not

sure I can see how it works. Any examples would be much appreciated.

I think that is what the wxSashLayoutWindow and others were created for.

When you want to doc a child you should do something like creating the

wxSashLayoutWindow and reparenting the contents of your child frame into the

layout window and then destroying the child frame, and do the opposite for

undocking. I don’t know of any examples showing this (C++ or Python) so if

you can come up with a little sample along the way it would be nice to see

it.

There is some C++ code in contrib that I hope to get wrapped sometime soon

that should make this much easier, but for now you are stuck with

wxSashLayoutWindow.

I think I’m getting there. Thanks.

Dale Strickland-Clark

Riverhall Systems Ltd. Custom database and Web applications.

Offices: London: 020 7448 9795 Wokingham: 0870 321 2378

Mobile 0701 071 DALE (3253)