home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / apache / files / ActivePerl-5.6.1.638-MSWin32-x86.msi / _86b5495d18e9fe468f24741e116262f2 < prev    next >
Encoding:
Text File  |  2004-04-13  |  638 b   |  25 lines

  1. # NOTE: Derived from blib\lib\Tk\Wm.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Wm;
  5.  
  6. #line 151 "blib\lib\Tk\Wm.pm (autosplit into blib\lib\auto\Tk\Wm\iconposition.al)"
  7. sub iconposition
  8. {
  9.  my $w = shift;
  10.  if (@_ == 1)
  11.   {
  12.    return $w->wm('iconposition',$1,$2) if $_[0] =~ /^(\d+),(\d+)$/;
  13.    if ($_[0] =~ /^([+-])(\d+)([+-])(\d+)$/)
  14.     {
  15.      my $x = ($1 eq '-') ? $w->screenwidth-$2 : $2;
  16.      my $y = ($3 eq '-') ? $w->screenheight-$4 : $4;
  17.      return $w->wm('iconposition',$x,$y);
  18.     }
  19.   }
  20.  $w->wm('iconposition',@_);
  21. }
  22.  
  23. 1;
  24. # end of Tk::Wm::iconposition
  25.