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

I want to use a tabbed frame with more tabs than can be seen on a single row.
This is illustrated with the attached Perl that generates 30 tabbed frames but you can only see 26 of them
I appreciate that I can see more by increasing the width value in the Label definition but I do
want to have a value here which can be less than that required for the total number of tabbed frames I
want to use.
Is there any way I can get multiple rows of tabs?
use strict "vars"; use Tk; use Tk::TabFrame; my ($a_tbfr, $tab_mw, $b_tbfr, $frame_wg); my ($label_text, $CurrentSelection, $child, $childb, $childc, $childd) +; my ($CurrentSelectionC, $CurrentSelectionR, %tabwg, $tabwg_item, $curr +ent_product, $gen_str); my ($gen_intials, $gen_str, $gen_whog, $gen_whoa, $gen_whob, $gen_whoc +, $pb_intials, $pa_intials, $pb2_intials, $j, $j_str); $current_product = 'unset'; $tab_mw = MainWindow->new; $tab_mw->Label(-text => 'Tabbed Frame to Check which is Raised')->grid +(-row => 0); $a_tbfr = $tab_mw->TabFrame ( -font =>'-adobe-times-medium-r-bold--14', -tabcurve =>4, -padx => 10, -pady => 10, -width => 400 ); $a_tbfr->grid ('-row' => 1); for($j = 1; $j <= 30; $j ++) { $j_str = "Tab " . $j; $tabwg{$j_str} = $a_tbfr->Frame ( -caption => $j_str, ); $tabwg{$j_str}->Label(-text => "Text in Label in $j_str", -width => 200)->grid(-row => 2, -column=>0); } foreach $tabwg_item (keys %tabwg) { print "item <$tabwg_item> wg <$tabwg{$tabwg_item}>\n"; } print "\n"; MainLoop;

Replies are listed 'Best First'.
Re: Rows of Tabs in Tabbed Frame Query
by planetscape (Chancellor) on Aug 25, 2009 at 11:51 UTC

    Doesn't answer your question, but an observation: </br> is not valid PM markup.

    HTH,

    planetscape
Re: Rows of Tabs in Tabbed Frame Query
by Anonymous Monk on Aug 25, 2009 at 11:33 UTC
    There is no way other than to have the last page, contain another notebook/tabframe

    Or you reinvent the widget to have scrolling

Re: Rows of Tabs in Tabbed Frame Query
by $self (Friar) on Aug 25, 2009 at 12:30 UTC