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

SEE ALSO

59       Tk::FBox.
60
61
62
63perl v5.8.8                       2008-02-05                       IconList(3)
Impressum