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

  1. # NOTE: Derived from ..\blib\lib\Tk\Listbox.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Listbox;
  5.  
  6. #line 450 "..\blib\lib\Tk\Listbox.pm (autosplit into ..\blib\lib\auto\Tk\Listbox\xyIndex.al)"
  7. # ----
  8.  
  9. #
  10. # Bind --
  11. # This procedure is invoked the first time the mouse enters a listbox
  12. # widget or a listbox widget receives the input focus. It creates
  13. # all of the class bindings for listboxes.
  14. #
  15. # Arguments:
  16. # event - Indicates which event caused the procedure to be invoked
  17. # (Enter or FocusIn). It is used so that we can carry out
  18. # the functions of that event in addition to setting up
  19. # bindings.
  20.  
  21. sub xyIndex
  22. {
  23.  my $w = shift;
  24.  my $Ev = $w->XEvent;
  25.  return $w->index($Ev->xy);
  26. }
  27.  
  28. # end of Tk::Listbox::xyIndex
  29. 1;
  30.