Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / auto / Tk / Scrollbar / ButtonUp.al
CommitLineData
86530b38
AT
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.
4package Tk::Scrollbar;
5
6#line 153 "../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
16sub 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
261;