Switch between MDI and normal Frames

Hello All,

For an app that has many frames i would like that the user can switch between an MDI workspace and normal floating frames.

I don't know how to do it.

Any tip?

Thanks.

···

--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************

Oswaldo Hernández wrote:

Hello All,

For an app that has many frames i would like that the user can switch between an MDI workspace and normal floating frames.

I don't know how to do it.

You need to create all new frames (either wx.MDIChildFrames or wx.Frames depending on which way you are switching) as you can't change an existing frame to another type. However you can reparent the contents of the existing frames to the new frames without recreating.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi Osvaldo,

For an app that has many frames i would like that the user can switch between an MDI workspace and
normal floating frames.

I don't know how to do it.

Any tip?

In theory, that would be a work for wxAUI, but unfortunately wxAUI is
still not able to handle that situation. Even if patches that allow
this switching exist on Kirix forum (posted by some kind wxAUI C++
user), they have not been added to wxAUI. The only option I see is to
reparent the MDI content to a newly created frame (and maybe
destroying the MDI page if you need it).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

···

On 6/12/07, Oswaldo Hernández wrote: