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

  1. # NOTE: Derived from blib\lib\Tk.pm.  Changes made here will be lost.
  2. package Tk;
  3.  
  4. # tkFirstMenu --
  5. # This procedure traverses to the first menubutton in the toplevel
  6. # for a given window, and posts that menubutton's menu.
  7. #
  8. # Arguments:
  9. # w - Name of a window. Selects which toplevel
  10. # to search for menubuttons.
  11. sub FirstMenu
  12. {
  13.  my $w = shift;
  14.  $w = $w->toplevel->FindMenu("");
  15.  $w->PostFirst() if (defined $w);
  16. }
  17.  
  18. 1;
  19.