Page 1 of 1

telescopic frames or dialogs

Posted: Mon Nov 24, 2008 8:18 pm
by acen28
Hi,
I have a main frame (parent). I want that my other frames or dialogs are be able to open as child window in my main frame. I mean, when the user set minimize any child frame, it will minimize to my main frame (not taskbar or system tray).Shortly, I want to develope apps like MFC. I couldn't any sample about this. How can I do this with wxwidgets?(I use wx-Devcpp)

Thanks for helps.

Posted: Mon Nov 24, 2008 8:27 pm
by timg
Did you look at the MDI sample in the samples directory?

I think this does what you want.

Posted: Tue Nov 25, 2008 1:30 pm
by Jorg
Be aware that the MDI interface as standard is abandoned my Microsoft, although still supported, it is ourdated. You should look at things like wxAUI which provide a more modern approach. Under Linux MDI is only emulated as tab windows so if your application is cross platform it might look silly. That is because MDI the way microsoft implemented it does not exist under Linux.

With regards,
- Jorgen

Posted: Tue Nov 25, 2008 3:41 pm
by NinjaNL
Jorg wrote: You should look at things like wxAUI which provide a more modern approach. Under Linux MDI is only emulated as tab windows so if your application is cross platform it might look silly.
And if you do use wxAUI then you might want to investigate my patch adding pane minimizing. It might serve as a starting point for your own implementation.

Mal