Hello, I'm using tk::Tablematrix to display data from a database. it works OK, but sometimes the cells are bigger than the width of the screen. As Tablematrix horizontally scrolls only cell by cell, the data are hard to read. So I'm looking for a workaround to a custom scroll for Tablematrix. One idea could be to insert the Tablematrix into another widget, fully scrollable. I tried something like this:
... my $framebottom = $mw->Frame->pack(-side => 'bottom', -anchor => 'w', +-padx => 5, -pady => 5, -expand => 1, -fill => 'both'); my $tablecontainer = $framebottom->Scrolled('ROText', -relief=>"groove", -wrap=>"word", -cursor=>"arrow", -scrollbars=>'se' ); my $table = $tablecontainer->Scrolled( 'TableMatrix', -rows => 20, -cols => 12, -width => 5, -height => 5, -font => $font, -variable => $data, -background => "#ffffff", -titlerows => 1, -titlecols => 1, -selectmode => 'extended', -flashmode => 'on', -borderwidth => 0, -scrollbars => 'se', -anchor => 'w', -colstretchmode=> 'last', ); ...
but this doesn't display anything. Has someone an idea? Thanks.
In reply to Tablematrix scroll by marz12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |