1itk(n) [incr Tk] itk(n)
2
3
4
5______________________________________________________________________________
6
8 itk - framework for building mega-widgets in Tcl/Tk
9_________________________________________________________________
10
11
13 Mega-widgets are high-level widgets that are constructed using Tk wid‐
14 gets as component parts, usually without any C code. A fileselection‐
15 box, for example, may have a few listboxes, some entry widgets and some
16 control buttons. These individual widgets are put together in a way
17 that makes them act like one big widget. A fileselectionbox mega-wid‐
18 get can be created with a command like:
19 fileselectionbox .fsb -background blue -foreground white
20 Once it has been created, it can be reconfigured with a command like:
21 .fsb configure -background green -foreground black
22 and all of its internal components will change color. Each mega-widget
23 has a set of methods that can be used to manipulate it. For example,
24 the current selection can be queried from a fileselectionbox like this:
25 set fileName [.fsb get]
26 In effect, a mega-widget looks and acts exactly like a Tk widget, but
27 is considerably easier to implement.
28
29 [incr Tk] is a framework for building mega-widgets. It uses [incr Tcl]
30 to support the object paradigm, and adds base classes which provide
31 default widget behaviors.
32
33 All [incr Tk] widgets are derived from the Archetype base class. This
34 class manages internal component widgets, and provides methods like
35 "configure" and "cget" to access configuration options.
36
37 The Widget base class inherits everything from Archetype, and adds a Tk
38 frame which acts as a container for the mega-widget. It is used to
39 build mega-widgets that sit inside of other frames and toplevels.
40 Derived classes create other internal components and pack them into the
41 "hull" frame created by the Widget base class.
42
43 The Toplevel base class inherits everything from Archetype, but adds a
44 Tk toplevel which acts as a container for the mega-widget. It is used
45 to build mega-widgets, such as dialog boxes, that have their own
46 toplevel window. Derived classes create other internal components and
47 pack them into the "hull" toplevel created by the Toplevel base class.
48
49
51 [incr Widgets] is a mega-widget library built using [incr Tk]. It can
52 be used right out of the box, and contains more than 30 different wid‐
53 get classes, including:
54
55 - fileselectiondialog
56
57 - tabnotebook
58
59 - panedwindow
60
61 - combobox
62
63 - optionmenu
64
65 - scrolledlistbox
66
67 - scrolledframe
68
69 - messagedialog
70
71 - and many others...
72
73 The catalog demo in the "iwidgets/demos" directory shows all of the
74 available widgets in action. Each widget class has its own man page
75 describing the features available.
76
77
79 class, object, object-oriented, mega-widget
80
81
82
83itk 3.0 itk(n)