stonyy has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to create a Perl/Tk app that has a single main container under which multiple subwindows can be created via menus by the user. The desired behaviors are that the user should be able to move, resize, iconify, and deiconify each subwindow, but only within the bounds of the outer window. The end goal is much like many MS Windows apps where you can open a number of documents and arrange them all in the main window however you want.

It seems like I want to "embed" numerous Toplevels in either a canvas, or frame which will be under the MainWindow. I have tried that and the problem is that the window-ness of the Toplevel goes away when I used "-use" and "-container" to get that to happen. The canvas widget doesn't want me to createWindow for a toplevel either. I have searched the web and looked at tutorials. Any suggestions?

Replies are listed 'Best First'.
Re: Perl Tk, Windows within Windows
by bmann (Priest) on May 25, 2004 at 20:42 UTC
    What you're looking for is "MDI", or Multiple Document Interface.

    mdi+tk should get you started. It looks like the number two hit belongs to samtregar

Re: Perl Tk, Windows within Windows
by gri6507 (Deacon) on May 25, 2004 at 20:32 UTC
    Have you considered using Tk::Notebook as a solution? This would create a tabbed interface to your multiple windows. There are editors that use this approach, most notoriously UltraEdit.