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;

In reply to Rows of Tabs in Tabbed Frame Query by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.