home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _cb33ff731ac4695a73c8b04a77759407 < prev    next >
Encoding:
Text File  |  2004-06-01  |  1.4 KB  |  83 lines

  1. =head1 NAME
  2.  
  3. Tk::IconList - an icon list widget
  4.  
  5. =for pm Tk/IconList.pm
  6.  
  7. =for category Derived Widgets
  8.  
  9. =head1 SYNOPSIS
  10.  
  11.     use Tk::IconList;
  12.     $il = $mw->IconList(-browsecmd => sub { ... },
  13.                         -command   => sub { ... })->pack;
  14.     $il->Add($icon1, $text1);
  15.     $il->Add($icon2, $text2);
  16.     $il->Arrange;
  17.     ...
  18.     $il->DeleteAll;
  19.  
  20. =head1 DESCRIPTION
  21.  
  22. =head2 OPTIONS
  23.  
  24. =over
  25.  
  26. =item -browsecmd
  27.  
  28. =item -command
  29.  
  30. =item -font
  31.  
  32. -item -foreground|-fg
  33.  
  34. =back
  35.  
  36. =head2 METHODS
  37.  
  38. =over 4
  39.  
  40. =item DeleteAll
  41.  
  42. Deletes all the items inside the canvas subwidget and reset the IconList's
  43. state.
  44.  
  45. =item Add($image, $text)
  46.  
  47. Adds an icon into the IconList with the designated image and text.
  48.  
  49. =item Arrange
  50.  
  51. Places the icons in a column-major arrangement.
  52.  
  53. =item Get
  54.  
  55. Return the selected item.
  56.  
  57. =item Invoke
  58.  
  59. Gets called when the user invokes the IconList (usually by double-clicking
  60. or pressing the Return key) (internal method).
  61.  
  62. =item See($tag)
  63.  
  64. If the item is not (completely) visible, scroll the canvas so that it
  65. becomes visible (internal method).
  66.  
  67. =back
  68.  
  69. =head1 COPYRIGHT
  70.  
  71. The original tkfbox.tcl from Tcl/Tk is:
  72.  
  73. Copyright (c) 1994-1996 Sun Microsystems, Inc.
  74.  
  75. See the file "license.terms" for information on usage and redistribution
  76. of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  77.  
  78. Translated to Perl/Tk by Slaven Rezic <slaven.rezic@berlin.de>.
  79.  
  80. =head1 SEE ALSO
  81.  
  82. Tk::FBox.
  83.