Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tk::IconList (3)

Name

Tk::IconList - an icon list widget

Synopsis

use Tk::IconList;
$il = $mw->IconList(-browsecmd => sub { ... },
-command   => sub { ... })->pack;
$il->Add($icon1, $text1);
$il->Add($icon2, $text2);
$il->Arrange;
...
$il->DeleteAll;

Description

User Contributed Perl Documentation                                IconList(3)



NAME
       Tk::IconList - an icon list widget

SYNOPSIS
           use Tk::IconList;
           $il = $mw->IconList(-browsecmd => sub { ... },
                               -command   => sub { ... })->pack;
           $il->Add($icon1, $text1);
           $il->Add($icon2, $text2);
           $il->Arrange;
           ...
           $il->DeleteAll;

DESCRIPTION
   OPTIONS
       -browsecmd
       -command
       -font
           -item -foreground|-fg

   METHODS
       DeleteAll
           Deletes all the items inside the canvas subwidget and reset the
           IconList's state.

       Add($image, $text)
           Adds an icon into the IconList with the designated image and text.

       Arrange
           Places the icons in a column-major arrangement.

       Get Return the selected item.

       Invoke
           Gets called when the user invokes the IconList (usually by double-
           clicking or pressing the Return key) (internal method).

       See($tag)
           If the item is not (completely) visible, scroll the canvas so that
           it becomes visible (internal method).

COPYRIGHT
       The original tkfbox.tcl from Tcl/Tk is:

       Copyright (c) 1994-1996 Sun Microsystems, Inc.

       See the file "license.terms" for information on usage and
       redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.

       Translated to Perl/Tk by Slaven Rezic <srezic@cpan.org>.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+----------------------------+
       |ATTRIBUTE TYPE |      ATTRIBUTE VALUE       |
       +---------------+----------------------------+
       |Availability   | library/perl-5/perl-tk-532 |
       +---------------+----------------------------+
       |Stability      | Volatile                   |
       +---------------+----------------------------+

SEE ALSO
       Tk::FBox.



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/~srezic/Tk.



perl v5.32.0                      2013-11-15                       IconList(3)