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

  1. # NOTE: Derived from blib\lib\Tk\Toplevel.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Toplevel;
  5.  
  6. #line 188 "blib\lib\Tk\Toplevel.pm (autosplit into blib\lib\auto\Tk\Toplevel\FG_Out.al)"
  7. # tkFocusGroup_Out --
  8. #
  9. #    Handles the <FocusOut> event. Checks if this is really a lose
  10. #    focus event, not one generated by the mouse moving out of the
  11. #    toplevel window.  Calls the FocusOut command for the widget
  12. #    who loses its focus.
  13. #
  14. sub FG_Out {
  15.     my($t, $w, $detail) = @_;
  16.     if ($detail ne 'NotifyNonlinear' and $detail ne 'NotifyNonlinearVirtual') {
  17.     # This is caused by mouse moving out of the window
  18.     return;
  19.     }
  20.     unless (exists $t->{'_FocusOut'}{$w}) {
  21.     return;
  22.     } else {
  23.     $t->{'_FocusOut'}{$w}->Call;
  24.     delete $t->{'_focus'};
  25.     }
  26. }
  27.  
  28. 1;
  29.  
  30. __END__
  31. 1;
  32. # end of Tk::Toplevel::FG_Out
  33.