----- Original Message -----
From: "Primanti, Joseph T" <[EMAIL PROTECTED]>
To: "'kalinabears'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, June 14, 2003 12:08 AM
Subject: RE: Tk:Columns Error on Win32 System


> Rob,
>
> Yes, I have both the latest Tk::DKW and Tk::Contrib. I got the same
results
> on another machine that had 5.8.0 build 805. I think it functions in 5.6.1
> but has a bug in 5.8.0. I tried the ptk list before this post but never
got
> a reply. Thank you for testing this for me. My program was nearly done but
> now this throws a wrench into it. I was going to use HList but it doesn't
> have sortable columns. I have got to be able to enable -selectmode =>
> 'extended' and change the column widths.
>
> This code works but I get the .al error trying to change a column width.
> Using -selectmode doesn't error but it does not make any change.
>
> use Tk;
> use Tk::Columns;
>
> $mw = MainWindow->new;
> my $cols = $mw->Columns(-width => 640,
> -height => 480,
> -selectmode => "extended" #This is not functioning!!!
> );
> $cols->columnlabels([qw(Column1 Column2 Column3)]);
> #$cols->buttonwidth('Column1', 7); #This causes an error when un-remarked
> $cols->pack(-side => 'top',
> -fill => 'both'
> );
>
> $cols->insert('end', 'A1', 'A2', 'A3');
> $cols->insert('end', 'B1', 'B2', 'B3');
> $cols->insert('end', 'C1', 'C2', 'C3');
>
> MainLoop;
>
> Here is the error:
>
> Can't locate auto/Tk/TiedListbox/buttonwidth.al in @INC (@INC contains:
> C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/site/
> lib/Tk/Derived.pm line 467
>
> Joe

I can't get anything sensible from 'buttonwidth' with either 5.6.1 or 5.8.0.

For me it produces the error "Failed to AUTOLOAD
'Tk::__ButtonContainer::indexedbutton".

I don't understand OO perl at all well - and I don't use Tk very much - but
it seems to me that the above error is to be expected because there is no
'Tk::__ButtonContainer::indexedbutton' subroutine. Columns.pm does contain
an 'indexedbutton' subroutine, but it exists in package Tk::Columns, *not*
in package 'Tk::__ButtonContainer'.

None of the demos that ship with the cpan distro utilise 'buttonwidth'. You
should probably check with the author - maybe he has made a mistake.

That's about all that *I* can come up with.

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to