home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / auto / Tk / Scrollbar / Enter.al < prev    next >
Encoding:
Text File  |  1997-08-10  |  381 b   |  18 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Scrollbar.pm.  Changes made here will be lost.
  2. package Tk::Scrollbar;
  3.  
  4. sub Enter
  5. {
  6.  my $w = shift;
  7.  my $e = $w->XEvent;
  8.  if ($Tk::strictMotif)
  9.   {
  10.    my $bg = $w->cget("-background");
  11.    $activeBg = $w->cget("-activebackground");
  12.    $w->configure("-activebackground" => $bg);
  13.   }
  14.  $w->activate($w->identify($e->x,$e->y));
  15. }
  16.  
  17. 1;
  18.