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

  1. # NOTE: Derived from blib\lib\Tk\Frame.pm.  Changes made here will be lost.
  2. package Tk::Frame;
  3.  
  4. sub FindMenu
  5. {
  6.  my ($w,$char) = @_;
  7.  my $child;
  8.  my $match;
  9.  foreach $child ($w->children)
  10.   {
  11.    next unless (ref $child);
  12.    $match = $child->FindMenu($char);
  13.    return $match if (defined $match);
  14.   }
  15.  return undef;
  16. }
  17.  
  18. 1;
  19.