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

  1. # NOTE: Derived from ..\blib\lib\Tk\Menubutton.pm.  Changes made here will be lost.
  2. package Tk::Menubutton;
  3.  
  4. # Leave --
  5. # This procedure is invoked when the mouse leaves a menubutton widget.
  6. # It de-activates the widget.
  7. #
  8. # Arguments:
  9. # w - The name of the widget.
  10. sub Leave
  11. {
  12.  my $w = shift;
  13.  $Tk::inMenubutton = undef;
  14.  if ($w->cget("-state") eq "active")
  15.   {
  16.    $w->configure("-state","normal")
  17.   }
  18. }
  19.  
  20. 1;
  21.