home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _018088273c7476cd31973127be6641f9 < prev    next >
Text File  |  2004-06-01  |  783b  |  27 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Scrollbar.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Scrollbar;
  5.  
  6. #line 163 "..\blib\lib\Tk\Scrollbar.pm (autosplit into ..\blib\lib\auto\Tk\Scrollbar\ButtonUp.al)"
  7. # tkScrollButtonUp --
  8. # This procedure is invoked when a button is released in a scrollbar.
  9. # It cancels scans and auto-repeats that were in progress, and restores
  10. # the way the active element is displayed.
  11. #
  12. # Arguments:
  13. # w -        The scrollbar widget.
  14. # x, y -    Mouse coordinates.
  15.  
  16. sub ButtonUp
  17. {my $w = shift;
  18.  my $e = $w->XEvent;
  19.  $w->CancelRepeat;
  20.  $w->configure('-activerelief' => 'raised');
  21.  $w->EndDrag($e->x,$e->y);
  22.  $w->activate($w->identify($e->x,$e->y));
  23. }
  24.  
  25. # end of Tk::Scrollbar::ButtonUp
  26. 1;
  27.