1IconList(3)           User Contributed Perl Documentation          IconList(3)
2
3
4

NAME

6       Tk::IconList - an icon list widget
7

SYNOPSIS

9           use Tk::IconList;
10           $il = $mw->IconList(-browsecmd => sub { ... },
11                               -command   => sub { ... })->pack;
12           $il->Add($icon1, $text1);
13           $il->Add($icon2, $text2);
14           $il->Arrange;
15           ...
16           $il->DeleteAll;
17

DESCRIPTION

19   OPTIONS
20       -browsecmd
21       -command
22       -font
23           -item -foreground|-fg
24
25   METHODS
26       DeleteAll
27           Deletes all the items inside the canvas subwidget and reset the
28           IconList's state.
29
30       Add($image, $text)
31           Adds an icon into the IconList with the designated image and text.
32
33       Arrange
34           Places the icons in a column-major arrangement.
35
36       Get Return the selected item.
37
38       Invoke
39           Gets called when the user invokes the IconList (usually by double-
40           clicking or pressing the Return key) (internal method).
41
42       See($tag)
43           If the item is not (completely) visible, scroll the canvas so that
44           it becomes visible (internal method).
45
47       The original tkfbox.tcl from Tcl/Tk is:
48
49       Copyright (c) 1994-1996 Sun Microsystems, Inc.
50
51       See the file "license.terms" for information on usage and
52       redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
53
54       Translated to Perl/Tk by Slaven Rezic <srezic@cpan.org>.
55

SEE ALSO

57       Tk::FBox.
58
59
60
61perl v5.34.0                      2021-07-23                       IconList(3)
Impressum