home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _73a499ad4e881ed8926ba75d645dca93 < prev    next >
Encoding:
Text File  |  2004-06-01  |  1.0 KB  |  47 lines

  1. # NOTE: Derived from blib\lib\Tk\Table.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Table;
  5.  
  6. #line 559 "blib\lib\Tk\Table.pm (autosplit into blib\lib\auto\Tk\Table\see.al)"
  7. sub see
  8. {
  9.  my $t = shift;
  10.  my ($row,$col) = (@_ == 2) ? @_ : @{$t->{Slave}{$_[0]->PathName}};
  11.  my $see = 1;
  12.  if (($row -= $t->cget('-fixedrows')) >= 0)
  13.   {
  14.    if ($row < $t->{Top})
  15.     {
  16.      $t->{Top} = $row;
  17.      $t->QueueLayout(_ViewChange);
  18.      $see = 0;
  19.     }
  20.    elsif ($row >= $t->{Bottom})
  21.     {
  22.      $t->{Top} += ($row - $t->{Bottom}+1);
  23.      $t->QueueLayout(_ViewChange);
  24.      $see = 0;
  25.     }
  26.   }
  27.  if (($col -= $t->cget('-fixedcolumns')) >= 0)
  28.   {
  29.    if ($col < $t->{Left})
  30.     {
  31.      $t->{Left} = $col;
  32.      $t->QueueLayout(_ViewChange);
  33.      $see = 0;
  34.     }
  35.    elsif ($col >= $t->{Right})
  36.     {
  37.      $t->{Left} += ($col - $t->{Right}+1);
  38.      $t->QueueLayout(_ViewChange);
  39.      $see = 0;
  40.     }
  41.   }
  42.  return $see;
  43. }
  44.  
  45. 1;
  46. # end of Tk::Table::see
  47.