Skip Menu |

This queue is for tickets about the Tk-TableMatrix CPAN distribution.

Report information
The Basics
Id: 2029
Status: resolved
Priority: 0/
Queue: Tk-TableMatrix

People
Owner: Nobody in particular
Requestors: jeff.holt [...] hotsos.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.01
Fixed in: (no value)



Subject: Bug in Tk::TableMatrix 1.01 spans method
I am using Tk::TableMatrix 1.01 with ActiveState perl 5.6.1 build 633 for MSWin32 with Tk 800.023. I wish to produce a 2 row, 2 column table with row 0 as the title row and row 1 as having both columns spanned with some text. I can get the spans to work properly if I define a 3 row, 2 column table. Here's what it should look like if the 3rd row weren't necessary. I've shown row numbers (offsets, actually) for clarity. 0 Id Value 1 Nothing selected If I tell the widget that it has 2 rows, then this is what I see 0 Id 1 If I tell the widget that it has 3 rows, then this is what I see 0 Id Value 1 Nothing selected 2 I execute the two examples with: perl t.pl 2 perl t.pl 3 Here's the code use Tk; use Tk::TableMatrix; my $top = MainWindow->new; my $v = {}; my $t = $top->Scrolled('TableMatrix', -rows=>$ARGV[0], -cols=>2, -variable=>$v, -titlerows=>1); $v->{"0,0"} = "Id"; $v->{"0,1"} = "Value"; $v->{"1,0"} = "Nothing selected"; $t->spans('1,0'=>'0,1'); $t->pack(-expand=>1, -fill=>'both'); Tk::MainLoop;
Date: Wed, 05 Feb 2003 07:49:10 -0600
From: John Cerney <j-cerney1 [...] raytheon.com>
To: bug-Tk-TableMatrix [...] rt.cpan.org
Subject: Re: [cpan #2029] Bug in Tk::TableMatrix 1.01 spans method
RT-Send-Cc:
The test case you sent works fine on my Windows machine running TableMatrix 1.01. It does fail when running TableMatrix 0.9 however. Are you sure you are running version 1.01 of Tk::TableMatrix? You can verify this by typing the following on the command line: perl -e "use Tk::TableMatrix; print $Tk::TableMatrix::VERSION" -John Guest via RT wrote: Show quoted text
> This message about Tk-TableMatrix was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=2029 > > > I am using Tk::TableMatrix 1.01 with ActiveState perl 5.6.1 build 633 for MSWin32 with Tk 800.023. > > I wish to produce a 2 row, 2 column table with row 0 as the title > row and row 1 as having both columns spanned with some text. I can get the spans to work properly if I define a 3 row, 2 column table. Here's what it should look like if the 3rd row weren't necessary. I've shown row numbers (offsets, actually) for clarity. > > 0 Id Value > 1 Nothing selected > > If I tell the widget that it has 2 rows, then this is what I see > > 0 Id > 1 > > > If I tell the widget that it has 3 rows, then this is what I see > > 0 Id Value > 1 Nothing selected > 2 > > > I execute the two examples with: > perl t.pl 2 > perl t.pl 3 > > Here's the code > > use Tk; > use Tk::TableMatrix; > my $top = MainWindow->new; > my $v = {}; > my $t = $top->Scrolled('TableMatrix', -rows=>$ARGV[0], -cols=>2, -variable=>$v, -titlerows=>1); > $v->{"0,0"} = "Id"; > $v->{"0,1"} = "Value"; > $v->{"1,0"} = "Nothing selected"; > $t->spans('1,0'=>'0,1'); > $t->pack(-expand=>1, -fill=>'both'); > Tk::MainLoop; >
From: jeff.holt [...] hotsos.com
Wow. I am so sorry. ppm told me the version was 1.01 but the expression printed 0.9. I'll install 1.01, somehow, and please consider this "bug" closed. [guest - Tue Feb 4 23:55:50 2003]: Show quoted text
> I am using Tk::TableMatrix 1.01 with ActiveState perl 5.6.1 build 633 > for MSWin32 with Tk 800.023. > > I wish to produce a 2 row, 2 column table with row 0 as the title > row and row 1 as having both columns spanned with some text. I can get > the spans to work properly if I define a 3 row, 2 column table. > Here's what it should look like if the 3rd row weren't necessary. > I've shown row numbers (offsets, actually) for clarity. > > 0 Id Value > 1 Nothing selected > > If I tell the widget that it has 2 rows, then this is what I see > > 0 Id > 1 > > > If I tell the widget that it has 3 rows, then this is what I see > > 0 Id Value > 1 Nothing selected > 2 > > > I execute the two examples with: > perl t.pl 2 > perl t.pl 3 > > Here's the code > > use Tk; > use Tk::TableMatrix; > my $top = MainWindow->new; > my $v = {}; > my $t = $top->Scrolled('TableMatrix', -rows=>$ARGV[0], -cols=>2, > -variable=>$v, -titlerows=>1); > $v->{"0,0"} = "Id"; > $v->{"0,1"} = "Value"; > $v->{"1,0"} = "Nothing selected"; > $t->spans('1,0'=>'0,1'); > $t->pack(-expand=>1, -fill=>'both'); > Tk::MainLoop;