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

Is there anyway to have multiple text wdigets or windows ocupying the same space as in some sort of layering? My application is a text editor and I want to be able to open up multiple files and have them keep the previous file, just moved to the background and tabbed up top for future access.
  • Comment on Multiple text widgets tabbed in same space?

Replies are listed 'Best First'.
Re: Multiple text widgets tabbed in same space?
by zentara (Cardinal) on Jan 10, 2004 at 18:33 UTC
    This is a nice one which does what you want. Look at the demo. Its not perfect, but it does the job. DynaTabFrame
Re: Multiple text widgets tabbed in same space?
by Anonymous Monk on Jan 10, 2004 at 02:01 UTC
    You're looking for a notebook

      Just to give one example of what Anonymous Monk have said:

      use Tk; use Tk::NoteBook; use strict; use warnings; my $m = new MainWindow(); my $mw = $m->NoteBook()->pack; my $page1 = $mw->add("page1", -label => "page1"); $page1->Entry(-width => 10)->pack; my $page2 = $mw->add("page2", -label => "page2"); $page2->Button(-text => "you are now on page 2")->pack; my $page3 = $mw->add("page3", -label => "page3"); $page3->Entry(-width => 20)->pack; my $page4 = $mw->add("page4", -label => "page4"); $page4->Button(-text => "you are now on page 4")->pack; MainLoop;
Re: Multiple text widgets tabbed in same space?
by neuroball (Pilgrim) on Jan 10, 2004 at 02:04 UTC

    Elijah, what kind of text widgets are we talking about here? What Operations System are you running? What kind of GUI software do you want to use? Qt? Tk? Wx?

    I would say that you gather yourself and come back with a destinct choice of GUI and maybe even an example of what you want to archive... It would certainly help us to help you.

    /oliver/

      I'm sorry to say that the answers to all your questions (in order) are: 1 - doesn't matter, 2 - doesn't matter, 3 - doesn't matter, 4 - doesn't matter, 5 - doesn't matter, 6 - doesn't matter.

      He's looking for a notebook (a tabbed widget/control/whatever, it's got tabs).

      Calling it a "widget" hints it's probably Tk, but it doesn't matter :)(pretty much every toolkit has one)