TableMatrix::Spreadsheet(3pm) | perl/Tk Documentation | TableMatrix::Spreadsheet(3pm) |
Tk::TableMatrix::Spreadsheet - Table Display with Spreadsheet-like bindings.
use Tk; use Tk::TableMatrix::Spreadsheet; my $t = $top->Scrolled('Spreadsheet', -rows => 21, -cols => 11, -width => 6, -height => 6, -titlerows => 1, -titlecols => 1, -variable => $arrayVar, -selectmode => 'extended', -bg => 'white', );
Tk::TableMatrix::Spreadsheet is a Tk::TableMatrix-derived widget that implements some bindings so the resulting widget behaves more like a spreadsheet.
Bindings Added:
Dragging these handles will resize the row or column. If multiple rows or columns are selected, then the new row/col size will apply to all row/cols selected.
Note: With the base Tk::TableMatrix, it is possible to resize the row/cols by dragging on any cell border. To be more spreadsheet-like, Tk::TableMatrix::Spreadsheet defaults to enable row/col resizing only thru the title row/col dragging. To override this default behavoir, set the -resizeborder option to 'both' at startup.
Widget methods, options, etc, are inherited from the Tk::TableMatrix widget. See its docs for additional information.
2020-11-09 | Tk1.26 |