Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
These are short questions and I hope, are simple ones
As per documentation, the value specified for setting the width can be negative (for pixels instead of positive for characters). But what do the negative value for column index refer to ?$t->colWidth( -2 => 8, -1 => 9, 0=> 12, 4=> 14);
use strict; use warnings; use Tk; use Tk::TableMatrix; my $mw = MainWindow->new; my $tm = $mw->Scrolled('TableMatrix', -rows => 5, -cols => 10, -width => 5, -height => 12, -selecttitles => 0, -bg=>'yellow', -drawmode => 'slow', )->pack(-expand => 1, -fill => 'both'); $tm->activate("topleft"); #$tm->selectionSet("2,3"); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: activate and selectionSet methods, negative columns in TableMatrix (focus)
by Anonymous Monk on Jan 22, 2015 at 07:29 UTC | |
by Anonymous Monk on Jan 22, 2015 at 09:54 UTC | |
by Anonymous Monk on Jan 23, 2015 at 01:24 UTC | |
by Anonymous Monk on Jan 23, 2015 at 04:53 UTC | |
|
Re: activate and selectionSet methods, negative columns in TableMatrix
by RonW (Parson) on Jan 22, 2015 at 21:07 UTC |