Win32-GUI
view release on metacpan or search on metacpan
Win32-GUI_Grid/Grid.pm view on Meta::CPAN
Gets whether the current sort column is sorted ascending.
=item C<SortTextCells> (nCol, bAscending)
Sorts the grid on the given column based on cell text.
Returns TRUE on success
=item C<SortNumericCells> (nCol, bAscending)
Sorts the grid on the given column based on cell numeric text.
Returns TRUE on success
=item C<SortCells> (nCol, bAscending, [pfun = NULL])
Sort given method and given sort order.
Optional a custom sort fonction.
Sort Function sample :
sub { my ($e1, $e2) = @_; return (int($e1) - int ($e2)); }
=item C<SetSortFunction> ([pFun = NULL], [nCol = -1])
Set or Remove Perl sort function.
If nCol is -1, Set or remove a default sort method.
If nCol is a valid column , Set or remove a sort method
for this column only.
Sort Function sample :
sub { my ($e1, $e2) = @_; return (int($e1) - int ($e2)); }
=back
=head3 Printing
TODO
=head3 Save and load method
=over
=item C<Save> (filename, [chSeparator = ',']);
TBD
=item C<Load> (filename, [chSeparator = ',']);
TBD
=back
=head3 Clipboard
=over
=item C<OnEditCut> ()
Copies contents of selected cells to clipboard and deletes the
contents of the selected cells. (Ctrl-X)
=item C<OnEditCopy> ()
Copies contents of selected cells to clipboard. (Ctrl-C)
=item C<OnEditPaste> ()
Pastes the contents of the clipboard to the grid. (Ctrl-V)
=item C<OnEditSelectAll> ()
Not actually a clipboard function, but handy nevertheless.
This routine selects all cells in the grid. (Ctrl-A)
=back
=head2 Grid Event
=over
=item C<_Click> (nRow, nCol)
Simple left click event.
=item C<_RClick> (nRow, nCol)
Simple right click event.
=item C<_DblClick> (nRow, nCol)
Double left click event.
=item C<_Changing> (nRow, nCol)
Start changing selection event.
=item C<_Changed> (nRow, nCol)
Selection have change event.
=item C<_BeginEdit> (nRow, nCol)
Start Cell Edit event.
Return non zero value to prevent editing.
=item C<_ChangedEdit> (nRow, nCol, str)
ListBox selection change event.
str is current selected item.
Available with GVIT_COMBO, GVIT_LIST.
=item C<_EndEdit> (nRow, nCol, [str])
End Cell Edit event.
Return non zero value to prevent change.
[virtual Mode Only]
str contains edited cell data.
=item C<_BeginDrag> (nRow, nCol)
Begin drag event.
=item C<_GetData> (nRow, nCol)
[virtual Mode Only]
You must return cell data.
=item C<_CacheHint> (nMinRow, nMinCol, nMaxRow, nMaxCol)
[virtual Mode Only]
Range before request data.
( run in 0.926 second using v1.01-cache-2.11-cpan-81fc1098f69 )