pg has asked for the wisdom of the Perl Monks concerning the following question:
I was doing something with Tk::Table, and found this bug. If you run this code you will see:
use Tk; use Tk::Table; use strict; use warnings; my $mw = MainWindow->new; $mw->geometry("200x200"); my $table = $mw->Table(-rows => 9, -columns => 9, -fixedrows => 9, fix +edcolumns => 8)->pack; foreach my $row (0 .. 8) { foreach my $col (0 .. 8) { my $cell = $mw->Entry(-width => 1); $table->put($row, $col, $cell); } } MainLoop;
Tk::Table will try to display a north scrollbar for you. That's fine, I think it is because columns is greater than fixedcolumns. The problem is with the position the scrollbar is placed. It is not right over the table, but over on the right side.
The testing was done on windows xp with activestate perl 5.8.4.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: misplaced scroll bar with Tk::Table
by GrandFather (Saint) on Aug 12, 2005 at 06:41 UTC | |
by pg (Canon) on Aug 12, 2005 at 07:19 UTC | |
by GrandFather (Saint) on Aug 12, 2005 at 10:36 UTC | |
by pg (Canon) on Aug 12, 2005 at 10:56 UTC | |
by GrandFather (Saint) on Aug 12, 2005 at 11:28 UTC | |
|
Re: misplaced scroll bar with Tk::Table
by zentara (Cardinal) on Aug 12, 2005 at 11:49 UTC |