.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "TableMatrix::Spreadsheet 3pm" .TH TableMatrix::Spreadsheet 3pm 2024-03-07 Tk1.29 "perl/Tk Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Tk::TableMatrix::Spreadsheet \- Table Display with Spreadsheet\-like bindings. .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& use Tk; \& use Tk::TableMatrix::Spreadsheet; \& \& my $t = $top\->Scrolled(\*(AqSpreadsheet\*(Aq, \& \-rows => 21, \-cols => 11, \& \-width => 6, \-height => 6, \& \-titlerows => 1, \-titlecols => 1, \& \-variable => $arrayVar, \& \-selectmode => \*(Aqextended\*(Aq, \& \-bg => \*(Aqwhite\*(Aq, \& ); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Tk::TableMatrix::Spreadsheet is a Tk::TableMatrix\-derived widget that implements some bindings so the resulting widget behaves more like a spreadsheet. .PP \&\fBBindings Added:\fR .IP \(bu 1 Row/Col resize handles appear when the cursor is placed over a row/col border line in the rol/col title area. .Sp 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. .Sp 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 behavior, set the \-resizeborder option to \&'both' at startup. .IP \(bu 1 A popup menu for row/col insert/delete appears when the mouse is right-clicked in the row/col title areas. .IP \(bu 1 Cells activate (i.e. the contents become edit-able) only when the cell is double-clicked or the F2 button is pressed. The default Tk::TableMatrix behavior is for the cell to be activated when the cell is single-clicked. .IP \(bu 1 The Escape key causes any changes made to a cell to be canceled and the current selection cleared. .IP \(bu 1 The return key causes the the current cell to move down. .IP \(bu 1 The tab (or shift tab) key causes the current cell to be moved to the right (left). .IP \(bu 1 The delete key will delete the current selection, if no cell is currently active. .IP \(bu 1 The Mouse button 2 (middle button) paste from the PRIMARY. (Control-v pastes from the clipboard). .SH "Additional Information" .IX Header "Additional Information" Widget methods, options, etc, are inherited from the Tk::TableMatrix widget. See its docs for additional information.