arcadia 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +126 -123
- data/arcadia.rb +770 -756
- data/base/a-contracts.rb +130 -93
- data/base/a-ext.rb +280 -280
- data/base/a-libs.rb +5 -11
- data/base/a-utils.rb +235 -44
- data/conf/arcadia.conf +20 -16
- data/conf/arcadia.init.rb +0 -0
- data/conf/arcadia.res.rb +74 -0
- data/ext/ae-complete-code/ae-complete-code.conf +0 -0
- data/ext/ae-complete-code/ae-complete-code.rb +80 -79
- data/ext/ae-debug/ae-debug.conf +0 -0
- data/ext/ae-debug/ae-debug.rb +2 -6
- data/ext/ae-debug/debug1.57.rb +0 -0
- data/ext/ae-doc-code/ae-doc-code.conf +15 -0
- data/ext/ae-doc-code/ae-doc-code.rb +289 -0
- data/ext/ae-editor/ae-editor.conf +17 -8
- data/ext/ae-editor/ae-editor.rb +738 -396
- data/ext/ae-event-log/ae-event-log.conf +0 -0
- data/ext/ae-event-log/ae-event-log.rb +0 -0
- data/ext/ae-file-history/ae-file-history.conf +2 -2
- data/ext/ae-file-history/ae-file-history.rb +286 -290
- data/ext/ae-inspector/ae-inspector.conf +0 -0
- data/ext/ae-inspector/ae-inspector.rb +0 -0
- data/ext/ae-output-event/ae-output-event.conf +2 -2
- data/ext/ae-output/ae-output.conf +2 -2
- data/ext/ae-output/ae-output.rb +173 -178
- data/ext/ae-palette/ae-palette.conf +0 -0
- data/ext/ae-palette/ae-palette.rb +0 -0
- data/ext/ae-shell/ae-shell.conf +0 -0
- data/ext/ae-shell/ae-shell.rb +54 -54
- data/lib/tk/al-tk.rb +3076 -3082
- data/lib/tk/al-tk.res.rb +0 -0
- data/lib/tk/al-tkarcadia.rb +0 -0
- data/lib/tk/al-tkcustom.rb +0 -0
- data/lib/tkext/al-bwidget.rb +0 -0
- data/lib/tkext/al-iwidgets.rb +0 -0
- data/lib/tkext/al-tile.rb +0 -0
- data/lib/tkext/al-tktable.rb +0 -0
- data/tcl/BWidget-1.8.0/BWman/ArrowButton.html +276 -0
- data/tcl/BWidget-1.8.0/BWman/BWidget.html +228 -0
- data/tcl/BWidget-1.8.0/BWman/Button.html +273 -0
- data/tcl/BWidget-1.8.0/BWman/ButtonBox.html +264 -0
- data/tcl/BWidget-1.8.0/BWman/ComboBox.html +402 -0
- data/tcl/BWidget-1.8.0/BWman/Dialog.html +314 -0
- data/tcl/BWidget-1.8.0/BWman/DragSite.html +139 -0
- data/tcl/BWidget-1.8.0/BWman/DropSite.html +254 -0
- data/tcl/BWidget-1.8.0/BWman/DynamicHelp.html +248 -0
- data/tcl/BWidget-1.8.0/BWman/Entry.html +341 -0
- data/tcl/BWidget-1.8.0/BWman/Label.html +331 -0
- data/tcl/BWidget-1.8.0/BWman/LabelEntry.html +194 -0
- data/tcl/BWidget-1.8.0/BWman/LabelFrame.html +144 -0
- data/tcl/BWidget-1.8.0/BWman/ListBox.html +678 -0
- data/tcl/BWidget-1.8.0/BWman/MainFrame.html +283 -0
- data/tcl/BWidget-1.8.0/BWman/MessageDlg.html +218 -0
- data/tcl/BWidget-1.8.0/BWman/NoteBook.html +374 -0
- data/tcl/BWidget-1.8.0/BWman/PagesManager.html +180 -0
- data/tcl/BWidget-1.8.0/BWman/PanedWindow.html +142 -0
- data/tcl/BWidget-1.8.0/BWman/PanelFrame.html +153 -0
- data/tcl/BWidget-1.8.0/BWman/PasswdDlg.html +214 -0
- data/tcl/BWidget-1.8.0/BWman/ProgressBar.html +152 -0
- data/tcl/BWidget-1.8.0/BWman/ProgressDlg.html +145 -0
- data/tcl/BWidget-1.8.0/BWman/ScrollView.html +130 -0
- data/tcl/BWidget-1.8.0/BWman/ScrollableFrame.html +191 -0
- data/tcl/BWidget-1.8.0/BWman/ScrolledWindow.html +116 -0
- data/tcl/BWidget-1.8.0/BWman/SelectColor.html +164 -0
- data/tcl/BWidget-1.8.0/BWman/SelectFont.html +152 -0
- data/tcl/BWidget-1.8.0/BWman/Separator.html +77 -0
- data/tcl/BWidget-1.8.0/BWman/SpinBox.html +250 -0
- data/tcl/BWidget-1.8.0/BWman/StatusBar.html +147 -0
- data/tcl/BWidget-1.8.0/BWman/TitleFrame.html +107 -0
- data/tcl/BWidget-1.8.0/BWman/Tree.html +947 -0
- data/tcl/BWidget-1.8.0/BWman/Widget.html +502 -0
- data/tcl/BWidget-1.8.0/BWman/contents.html +84 -0
- data/tcl/BWidget-1.8.0/BWman/index.html +7 -0
- data/tcl/BWidget-1.8.0/BWman/navtree.html +41 -0
- data/tcl/BWidget-1.8.0/BWman/options.htm +458 -0
- data/tcl/BWidget-1.8.0/CHANGES.txt +266 -0
- data/tcl/BWidget-1.8.0/ChangeLog +1641 -0
- data/tcl/BWidget-1.8.0/LICENSE.txt +41 -0
- data/tcl/BWidget-1.8.0/README.txt +127 -0
- data/tcl/BWidget-1.8.0/arrow.tcl +551 -0
- data/tcl/BWidget-1.8.0/bitmap.tcl +94 -0
- data/tcl/BWidget-1.8.0/button.tcl +324 -0
- data/tcl/BWidget-1.8.0/buttonbox.tcl +403 -0
- data/tcl/BWidget-1.8.0/color.tcl +493 -0
- data/tcl/BWidget-1.8.0/combobox.tcl +809 -0
- data/tcl/BWidget-1.8.0/demo/basic.tcl +199 -0
- data/tcl/BWidget-1.8.0/demo/bwidget.xbm +46 -0
- data/tcl/BWidget-1.8.0/demo/demo.tcl +212 -0
- data/tcl/BWidget-1.8.0/demo/dnd.tcl +42 -0
- data/tcl/BWidget-1.8.0/demo/manager.tcl +141 -0
- data/tcl/BWidget-1.8.0/demo/select.tcl +59 -0
- data/tcl/BWidget-1.8.0/demo/tmpldlg.tcl +214 -0
- data/tcl/BWidget-1.8.0/demo/tree.tcl +260 -0
- data/tcl/BWidget-1.8.0/demo/x1.xbm +2258 -0
- data/tcl/BWidget-1.8.0/dialog.tcl +345 -0
- data/tcl/BWidget-1.8.0/dragsite.tcl +197 -0
- data/tcl/BWidget-1.8.0/dropsite.tcl +455 -0
- data/tcl/BWidget-1.8.0/dynhelp.tcl +625 -0
- data/tcl/BWidget-1.8.0/entry.tcl +469 -0
- data/tcl/BWidget-1.8.0/font.tcl +566 -0
- data/tcl/BWidget-1.8.0/images/bold.gif +0 -0
- data/tcl/BWidget-1.8.0/images/copy.gif +0 -0
- data/tcl/BWidget-1.8.0/images/cut.gif +0 -0
- data/tcl/BWidget-1.8.0/images/dragfile.gif +0 -0
- data/tcl/BWidget-1.8.0/images/dragicon.gif +0 -0
- data/tcl/BWidget-1.8.0/images/error.gif +0 -0
- data/tcl/BWidget-1.8.0/images/file.gif +0 -0
- data/tcl/BWidget-1.8.0/images/folder.gif +0 -0
- data/tcl/BWidget-1.8.0/images/hourglass.gif +0 -0
- data/tcl/BWidget-1.8.0/images/info.gif +0 -0
- data/tcl/BWidget-1.8.0/images/italic.gif +0 -0
- data/tcl/BWidget-1.8.0/images/minus.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/new.gif +0 -0
- data/tcl/BWidget-1.8.0/images/opcopy.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/open.gif +0 -0
- data/tcl/BWidget-1.8.0/images/openfold.gif +0 -0
- data/tcl/BWidget-1.8.0/images/oplink.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/opmove.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/overstrike.gif +0 -0
- data/tcl/BWidget-1.8.0/images/palette.gif +0 -0
- data/tcl/BWidget-1.8.0/images/passwd.gif +0 -0
- data/tcl/BWidget-1.8.0/images/paste.gif +0 -0
- data/tcl/BWidget-1.8.0/images/plus.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/print.gif +0 -0
- data/tcl/BWidget-1.8.0/images/question.gif +0 -0
- data/tcl/BWidget-1.8.0/images/redo.gif +0 -0
- data/tcl/BWidget-1.8.0/images/save.gif +0 -0
- data/tcl/BWidget-1.8.0/images/target.xbm +9 -0
- data/tcl/BWidget-1.8.0/images/underline.gif +0 -0
- data/tcl/BWidget-1.8.0/images/undo.gif +0 -0
- data/tcl/BWidget-1.8.0/images/warning.gif +0 -0
- data/tcl/BWidget-1.8.0/init.tcl +40 -0
- data/tcl/BWidget-1.8.0/label.tcl +271 -0
- data/tcl/BWidget-1.8.0/labelentry.tcl +100 -0
- data/tcl/BWidget-1.8.0/labelframe.tcl +160 -0
- data/tcl/BWidget-1.8.0/lang/da.rc +52 -0
- data/tcl/BWidget-1.8.0/lang/de.rc +52 -0
- data/tcl/BWidget-1.8.0/lang/en.rc +52 -0
- data/tcl/BWidget-1.8.0/lang/es.rc +53 -0
- data/tcl/BWidget-1.8.0/lang/fr.rc +52 -0
- data/tcl/BWidget-1.8.0/listbox.tcl +1638 -0
- data/tcl/BWidget-1.8.0/mainframe.tcl +711 -0
- data/tcl/BWidget-1.8.0/messagedlg.tcl +128 -0
- data/tcl/BWidget-1.8.0/notebook.tcl +1164 -0
- data/tcl/BWidget-1.8.0/pagesmgr.tcl +294 -0
- data/tcl/BWidget-1.8.0/panedw.tcl +381 -0
- data/tcl/BWidget-1.8.0/panelframe.tcl +246 -0
- data/tcl/BWidget-1.8.0/passwddlg.tcl +178 -0
- data/tcl/BWidget-1.8.0/pkgIndex.tcl +47 -0
- data/tcl/BWidget-1.8.0/progressbar.tcl +208 -0
- data/tcl/BWidget-1.8.0/progressdlg.tcl +87 -0
- data/tcl/BWidget-1.8.0/scrollframe.tcl +226 -0
- data/tcl/BWidget-1.8.0/scrollview.tcl +254 -0
- data/tcl/BWidget-1.8.0/scrollw.tcl +280 -0
- data/tcl/BWidget-1.8.0/separator.tcl +75 -0
- data/tcl/BWidget-1.8.0/spinbox.tcl +331 -0
- data/tcl/BWidget-1.8.0/statusbar.tcl +422 -0
- data/tcl/BWidget-1.8.0/tests/entry.test +173 -0
- data/tcl/BWidget-1.8.0/titleframe.tcl +170 -0
- data/tcl/BWidget-1.8.0/tree.tcl +2228 -0
- data/tcl/BWidget-1.8.0/utils.tcl +645 -0
- data/tcl/BWidget-1.8.0/widget.tcl +1576 -0
- data/tcl/BWidget-1.8.0/wizard.tcl +1028 -0
- data/tcl/BWidget-1.8.0/xpm2image.tcl +115 -0
- metadata +141 -5
@@ -0,0 +1,194 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>LabelEntry</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>LabelEntry</B>
|
6
|
+
-
|
7
|
+
LabelFrame containing an Entry widget.
|
8
|
+
|
9
|
+
</DD></DL>
|
10
|
+
<DL>
|
11
|
+
<DT><I>CREATION</I></DT>
|
12
|
+
<DD><A HREF="#descr"><B>LabelEntry</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
|
13
|
+
</DL>
|
14
|
+
<DL>
|
15
|
+
<DT><I><A HREF="Entry.html">OPTIONS from <B>Entry</B></A></I></DT>
|
16
|
+
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
17
|
+
<TR>
|
18
|
+
<TD> -borderwidth or -bd</TD>
|
19
|
+
<TD> -command</TD>
|
20
|
+
</TR>
|
21
|
+
<TR>
|
22
|
+
<TD> -disabledforeground</TD>
|
23
|
+
<TD> -dragenabled</TD>
|
24
|
+
</TR>
|
25
|
+
<TR>
|
26
|
+
<TD> -dragendcmd</TD>
|
27
|
+
<TD> -dragevent</TD>
|
28
|
+
</TR>
|
29
|
+
<TR>
|
30
|
+
<TD> -draginitcmd</TD>
|
31
|
+
<TD> -dragtype</TD>
|
32
|
+
</TR>
|
33
|
+
<TR>
|
34
|
+
<TD> -dropcmd</TD>
|
35
|
+
<TD> -dropenabled</TD>
|
36
|
+
</TR>
|
37
|
+
<TR>
|
38
|
+
<TD> -dropovercmd</TD>
|
39
|
+
<TD> -droptypes</TD>
|
40
|
+
</TR>
|
41
|
+
<TR>
|
42
|
+
<TD> -editable</TD>
|
43
|
+
<TD> -entrybg (see <B>-background</B>)</TD>
|
44
|
+
</TR>
|
45
|
+
<TR>
|
46
|
+
<TD> -entryfg (see <B>-foreground</B>)</TD>
|
47
|
+
<TD> -exportselection</TD>
|
48
|
+
</TR>
|
49
|
+
<TR>
|
50
|
+
<TD> -font</TD>
|
51
|
+
<TD> -helptext</TD>
|
52
|
+
</TR>
|
53
|
+
<TR>
|
54
|
+
<TD> -helptype</TD>
|
55
|
+
<TD> -helpvar</TD>
|
56
|
+
</TR>
|
57
|
+
<TR>
|
58
|
+
<TD> -highlightbackground</TD>
|
59
|
+
<TD> -highlightcolor</TD>
|
60
|
+
</TR>
|
61
|
+
<TR>
|
62
|
+
<TD> -highlightthickness</TD>
|
63
|
+
<TD> -insertbackground</TD>
|
64
|
+
</TR>
|
65
|
+
<TR>
|
66
|
+
<TD> -insertborderwidth</TD>
|
67
|
+
<TD> -insertofftime</TD>
|
68
|
+
</TR>
|
69
|
+
<TR>
|
70
|
+
<TD> -insertontime</TD>
|
71
|
+
<TD> -insertwidth</TD>
|
72
|
+
</TR>
|
73
|
+
<TR>
|
74
|
+
<TD> -justify</TD>
|
75
|
+
<TD> -relief</TD>
|
76
|
+
</TR>
|
77
|
+
<TR>
|
78
|
+
<TD> -selectbackground</TD>
|
79
|
+
<TD> -selectborderwidth</TD>
|
80
|
+
</TR>
|
81
|
+
<TR>
|
82
|
+
<TD> -selectforeground</TD>
|
83
|
+
<TD> -show</TD>
|
84
|
+
</TR>
|
85
|
+
<TR>
|
86
|
+
<TD> -state</TD>
|
87
|
+
<TD> -takefocus</TD>
|
88
|
+
</TR>
|
89
|
+
<TR>
|
90
|
+
<TD> -text</TD>
|
91
|
+
<TD> -textvariable</TD>
|
92
|
+
</TR>
|
93
|
+
<TR>
|
94
|
+
<TD> -width</TD>
|
95
|
+
<TD> -xscrollcommand</TD>
|
96
|
+
</TR>
|
97
|
+
</TABLE></DD>
|
98
|
+
</DL>
|
99
|
+
<DL>
|
100
|
+
<DT><I><A HREF="LabelFrame.html">OPTIONS from <B>LabelFrame</B></A></I></DT>
|
101
|
+
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
102
|
+
<TR>
|
103
|
+
<TD> -background or -bg</TD>
|
104
|
+
<TD> -disabledforeground</TD>
|
105
|
+
</TR>
|
106
|
+
<TR>
|
107
|
+
<TD> -foreground or -fg</TD>
|
108
|
+
<TD> -helptext</TD>
|
109
|
+
</TR>
|
110
|
+
<TR>
|
111
|
+
<TD> -helptype</TD>
|
112
|
+
<TD> -helpvar</TD>
|
113
|
+
</TR>
|
114
|
+
<TR>
|
115
|
+
<TD> -label (see <B>-text</B>)</TD>
|
116
|
+
<TD> -labelanchor (see <B>-anchor</B>)</TD>
|
117
|
+
</TR>
|
118
|
+
<TR>
|
119
|
+
<TD> -labelfont (see <B>-font</B>)</TD>
|
120
|
+
<TD> -labelheight (see <B>-height</B>)</TD>
|
121
|
+
</TR>
|
122
|
+
<TR>
|
123
|
+
<TD> -labeljustify (see <B>-justify</B>)</TD>
|
124
|
+
<TD> -labelwidth (see <B>-width</B>)</TD>
|
125
|
+
</TR>
|
126
|
+
<TR>
|
127
|
+
<TD> -name</TD>
|
128
|
+
<TD> -padx</TD>
|
129
|
+
</TR>
|
130
|
+
<TR>
|
131
|
+
<TD> -pady</TD>
|
132
|
+
<TD> -side</TD>
|
133
|
+
</TR>
|
134
|
+
<TR>
|
135
|
+
<TD> -state</TD>
|
136
|
+
<TD> -underline</TD>
|
137
|
+
</TR>
|
138
|
+
<TR>
|
139
|
+
<TD> -wraplength</TD>
|
140
|
+
</TABLE></DD>
|
141
|
+
</DL>
|
142
|
+
<DL>
|
143
|
+
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
|
144
|
+
<DD><I>pathName</I> <A HREF="#bind"><B>bind</B></A>
|
145
|
+
?<I>arg...</I>?
|
146
|
+
</DD>
|
147
|
+
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
|
148
|
+
<I>option</I>
|
149
|
+
</DD>
|
150
|
+
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
|
151
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
152
|
+
</DD>
|
153
|
+
</DL>
|
154
|
+
<BR><HR WIDTH="100%"><BR>
|
155
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
156
|
+
<P>
|
157
|
+
|
158
|
+
LabelEntry is a widget composed of <A HREF="LabelFrame.html">LabelFrame</A> widget
|
159
|
+
containing an <A HREF="Entry.html">Entry</A> widget.
|
160
|
+
Tk entry command can also be used on LabelEntry widget.
|
161
|
+
|
162
|
+
</P>
|
163
|
+
<HR WIDTH="50%"><BR>
|
164
|
+
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
|
165
|
+
<DL><DT><A NAME="bind"><I>pathName</I> <B>bind</B></A>
|
166
|
+
?<I>arg...</I>?
|
167
|
+
</DT><DD>
|
168
|
+
|
169
|
+
Set bindings on the entry widget.
|
170
|
+
|
171
|
+
</DD></DL>
|
172
|
+
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
|
173
|
+
<I>option</I>
|
174
|
+
</DT><DD>
|
175
|
+
|
176
|
+
Returns the current value of the configuration option given by <I>option</I>.
|
177
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
178
|
+
</DD></DL>
|
179
|
+
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
|
180
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
181
|
+
</DT><DD>
|
182
|
+
|
183
|
+
Query or modify the configuration options of the widget. If no <I>option</I> is specified,
|
184
|
+
returns a list describing all of the available options for <I>pathName</I>.
|
185
|
+
If <I>option</I> is specified with no <I>value</I>, then the command returns a list
|
186
|
+
describing the one named <I>option</I> (this list will be identical to the corresponding
|
187
|
+
sublist of the value returned if no <I>option</I> is specified). If one or
|
188
|
+
more <I>option-value</I> pairs are specified, then the command modifies the given widget
|
189
|
+
option(s) to have the given value(s); in this case the command returns an empty string.
|
190
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
191
|
+
Read-only options are not be modified.
|
192
|
+
|
193
|
+
</DD></DL>
|
194
|
+
</BODY></HTML>
|
@@ -0,0 +1,144 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>LabelFrame</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>LabelFrame</B>
|
6
|
+
- Frame with a Label
|
7
|
+
</DD></DL>
|
8
|
+
<DL>
|
9
|
+
<DT><I>CREATION</I></DT>
|
10
|
+
<DD><A HREF="#descr"><B>LabelFrame</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
|
11
|
+
</DL>
|
12
|
+
<DL>
|
13
|
+
<DT><I>STANDARD OPTIONS</I></DT>
|
14
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
15
|
+
<TR>
|
16
|
+
<TD> <A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD>
|
17
|
+
<TD> <A HREF="options.htm#M-relief">-relief</A></TR>
|
18
|
+
</TR>
|
19
|
+
</TABLE></DD>
|
20
|
+
</DL>
|
21
|
+
<DL>
|
22
|
+
<DT><I><A HREF="Label.html">OPTIONS from <B>Label</B></A></I></DT>
|
23
|
+
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
24
|
+
<TR>
|
25
|
+
<TD> -anchor</TD>
|
26
|
+
<TD> -background or -bg</TD>
|
27
|
+
</TR>
|
28
|
+
<TR>
|
29
|
+
<TD> -bitmap</TD>
|
30
|
+
<TD> -disabledforeground</TD>
|
31
|
+
</TR>
|
32
|
+
<TR>
|
33
|
+
<TD> -focus</TD>
|
34
|
+
<TD> -font</TD>
|
35
|
+
</TR>
|
36
|
+
<TR>
|
37
|
+
<TD> -foreground or -fg</TD>
|
38
|
+
<TD> -height</TD>
|
39
|
+
</TR>
|
40
|
+
<TR>
|
41
|
+
<TD> -helptext</TD>
|
42
|
+
<TD> -helptype</TD>
|
43
|
+
</TR>
|
44
|
+
<TR>
|
45
|
+
<TD> -helpvar</TD>
|
46
|
+
<TD> -image</TD>
|
47
|
+
</TR>
|
48
|
+
<TR>
|
49
|
+
<TD> -justify</TD>
|
50
|
+
<TD> -name</TD>
|
51
|
+
</TR>
|
52
|
+
<TR>
|
53
|
+
<TD> -padx</TD>
|
54
|
+
<TD> -pady</TD>
|
55
|
+
</TR>
|
56
|
+
<TR>
|
57
|
+
<TD> -state</TD>
|
58
|
+
<TD> -text</TD>
|
59
|
+
</TR>
|
60
|
+
<TR>
|
61
|
+
<TD> -textvariable</TD>
|
62
|
+
<TD> -underline</TD>
|
63
|
+
</TR>
|
64
|
+
<TR>
|
65
|
+
<TD> -width</TD>
|
66
|
+
<TD> -wraplength</TD>
|
67
|
+
</TABLE></DD>
|
68
|
+
</DL>
|
69
|
+
<DL>
|
70
|
+
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
|
71
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
72
|
+
<TR>
|
73
|
+
<TD> <A HREF="#-side">-side</A></TR>
|
74
|
+
</TABLE></DD>
|
75
|
+
</DL>
|
76
|
+
<DL>
|
77
|
+
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
|
78
|
+
<DD>LabelFrame::<A HREF="#align"><B>align</B></A>
|
79
|
+
?<I>arg...</I>?
|
80
|
+
</DD>
|
81
|
+
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
|
82
|
+
<I>option</I>
|
83
|
+
</DD>
|
84
|
+
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
|
85
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
86
|
+
</DD>
|
87
|
+
<DD><I>pathName</I> <A HREF="#getframe"><B>getframe</B></A>
|
88
|
+
</DD>
|
89
|
+
</DL>
|
90
|
+
<BR><HR WIDTH="100%"><BR>
|
91
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
92
|
+
<P>
|
93
|
+
|
94
|
+
LabelFrame enables user to create a frame with a
|
95
|
+
<A HREF="Label.html">Label</A> positionned at any side.
|
96
|
+
LabelFrame is used by <A HREF="ComboBox.html">ComboBox</A>
|
97
|
+
and <A HREF="SpinBox.html">SpinBox</A>.
|
98
|
+
</P>
|
99
|
+
<BR><HR WIDTH="50%"><BR>
|
100
|
+
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
|
101
|
+
<DL><DT><A NAME="-side"><B>-side (read-only)</B></A></DT>
|
102
|
+
<DD>
|
103
|
+
|
104
|
+
Specifies where to position the Label relative to the user frame: <B>top</B>, <B>bottom</B>, <B>left</B> or <B>right</B>.
|
105
|
+
</DD>
|
106
|
+
</DL>
|
107
|
+
<HR WIDTH="50%"><BR>
|
108
|
+
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
|
109
|
+
<DL><DT><A NAME="align">LabelFrame::<B>align</B></A>
|
110
|
+
?<I>arg...</I>?
|
111
|
+
</DT><DD>
|
112
|
+
|
113
|
+
This command align label of all widget given by <I>args</I> of class LabelFrame
|
114
|
+
(or "derived") by setting their width to the max one +1
|
115
|
+
|
116
|
+
</DD></DL>
|
117
|
+
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
|
118
|
+
<I>option</I>
|
119
|
+
</DT><DD>
|
120
|
+
|
121
|
+
Returns the current value of the configuration option given by <I>option</I>.
|
122
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
123
|
+
</DD></DL>
|
124
|
+
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
|
125
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
126
|
+
</DT><DD>
|
127
|
+
|
128
|
+
Query or modify the configuration options of the widget. If no <I>option</I> is specified,
|
129
|
+
returns a list describing all of the available options for <I>pathName</I>.
|
130
|
+
If <I>option</I> is specified with no <I>value</I>, then the command returns a list
|
131
|
+
describing the one named <I>option</I> (this list will be identical to the corresponding
|
132
|
+
sublist of the value returned if no <I>option</I> is specified). If one or
|
133
|
+
more <I>option-value</I> pairs are specified, then the command modifies the given widget
|
134
|
+
option(s) to have the given value(s); in this case the command returns an empty string.
|
135
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
136
|
+
Read-only options are not be modified.
|
137
|
+
|
138
|
+
</DD></DL>
|
139
|
+
<DL><DT><A NAME="getframe"><I>pathName</I> <B>getframe</B></A>
|
140
|
+
</DT><DD>
|
141
|
+
|
142
|
+
Return the frame where the user can create any other widget.
|
143
|
+
</DD></DL>
|
144
|
+
</BODY></HTML>
|
@@ -0,0 +1,678 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>ListBox</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>ListBox</B>
|
6
|
+
- ListBox widget
|
7
|
+
</DD></DL>
|
8
|
+
<DL>
|
9
|
+
<DT><I>CREATION</I></DT>
|
10
|
+
<DD><A HREF="#descr"><B>ListBox</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
|
11
|
+
</DL>
|
12
|
+
<DL>
|
13
|
+
<DT><I>STANDARD OPTIONS</I></DT>
|
14
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
15
|
+
<TR>
|
16
|
+
<TD> <A HREF="options.htm#M-background">-background or -bg</A></TD>
|
17
|
+
<TD> <A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD>
|
18
|
+
</TR>
|
19
|
+
<TR>
|
20
|
+
<TD> <A HREF="options.htm#M-cursor">-cursor</A></TD>
|
21
|
+
<TD> <A HREF="options.htm#M-highlightbackground">-highlightbackground</A></TD>
|
22
|
+
</TR>
|
23
|
+
<TR>
|
24
|
+
<TD> <A HREF="options.htm#M-highlightcolor">-highlightcolor</A></TD>
|
25
|
+
<TD> <A HREF="options.htm#M-highlightthickness">-highlightthickness</A></TD>
|
26
|
+
</TR>
|
27
|
+
<TR>
|
28
|
+
<TD> <A HREF="options.htm#M-relief">-relief</A></TD>
|
29
|
+
<TD> <A HREF="options.htm#M-selectbackground">-selectbackground</A></TD>
|
30
|
+
</TR>
|
31
|
+
<TR>
|
32
|
+
<TD> <A HREF="options.htm#M-selectforeground">-selectforeground</A></TD>
|
33
|
+
<TD> <A HREF="options.htm#M-takefocus">-takefocus</A></TD>
|
34
|
+
</TR>
|
35
|
+
<TR>
|
36
|
+
<TD> <A HREF="options.htm#M-xscrollcommand">-xscrollcommand</A></TD>
|
37
|
+
<TD> <A HREF="options.htm#M-yscrollcommand">-yscrollcommand</A></TD>
|
38
|
+
</TR>
|
39
|
+
</TABLE></DD>
|
40
|
+
</DL>
|
41
|
+
<DL>
|
42
|
+
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
|
43
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
44
|
+
<TR>
|
45
|
+
<TD> <A HREF="#-autofocus">-autofocus</A></TD>
|
46
|
+
<TD> <A HREF="#-deltax">-deltax</A></TD>
|
47
|
+
<TD> <A HREF="#-deltay">-deltay</A></TD>
|
48
|
+
</TR>
|
49
|
+
<TR>
|
50
|
+
<TD> <A HREF="#-dragenabled">-dragenabled</A></TD>
|
51
|
+
<TD> <A HREF="#-dragendcmd">-dragendcmd</A></TD>
|
52
|
+
</TR>
|
53
|
+
<TR>
|
54
|
+
<TD> <A HREF="#-dragevent">-dragevent</A></TD>
|
55
|
+
<TD> <A HREF="#-draginitcmd">-draginitcmd</A></TD>
|
56
|
+
</TR>
|
57
|
+
<TR>
|
58
|
+
<TD> <A HREF="#-dragtype">-dragtype</A></TD>
|
59
|
+
<TD> <A HREF="#-dropcmd">-dropcmd</A></TD>
|
60
|
+
</TR>
|
61
|
+
<TR>
|
62
|
+
<TD> <A HREF="#-dropenabled">-dropenabled</A></TD>
|
63
|
+
<TD> <A HREF="#-dropovercmd">-dropovercmd</A></TD>
|
64
|
+
</TR>
|
65
|
+
<TR>
|
66
|
+
<TD> <A HREF="#-dropovermode">-dropovermode</A></TD>
|
67
|
+
<TD> <A HREF="#-droptypes">-droptypes</A></TD>
|
68
|
+
</TR>
|
69
|
+
<TR>
|
70
|
+
<TD> <A HREF="#-height">-height</A></TD>
|
71
|
+
<TD> <A HREF="#-multicolumn">-multicolumn</A></TD>
|
72
|
+
</TR>
|
73
|
+
<TR>
|
74
|
+
<TD> <A HREF="#-padx">-padx</A></TD>
|
75
|
+
<TD> <A HREF="#-redraw">-redraw</A></TD>
|
76
|
+
</TR>
|
77
|
+
<TR>
|
78
|
+
<TD> <A HREF="#-selectfill">-selectfill</A></TD>
|
79
|
+
<TD> <A HREF="#-selectmode">-selectmode</A></TD>
|
80
|
+
<TD> <A HREF="#-width">-width</A></TD>
|
81
|
+
</TABLE></DD>
|
82
|
+
</DL>
|
83
|
+
<DL>
|
84
|
+
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
|
85
|
+
<DD><I>pathName</I> <A HREF="#bindImage"><B>bindImage</B></A>
|
86
|
+
<I>event</I>
|
87
|
+
<I>script</I>
|
88
|
+
</DD>
|
89
|
+
<DD><I>pathName</I> <A HREF="#bindText"><B>bindText</B></A>
|
90
|
+
<I>event</I>
|
91
|
+
<I>script</I>
|
92
|
+
</DD>
|
93
|
+
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
|
94
|
+
<I>option</I>
|
95
|
+
</DD>
|
96
|
+
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
|
97
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
98
|
+
</DD>
|
99
|
+
<DD><I>pathName</I> <A HREF="#delete"><B>delete</B></A>
|
100
|
+
?<I>arg...</I>?
|
101
|
+
</DD>
|
102
|
+
<DD><I>pathName</I> <A HREF="#edit"><B>edit</B></A>
|
103
|
+
<I>item</I>
|
104
|
+
<I>text</I>
|
105
|
+
?<I>verifycmd</I>?
|
106
|
+
?<I>clickres</I>?
|
107
|
+
?<I>select</I>?
|
108
|
+
</DD>
|
109
|
+
<DD><I>pathName</I> <A HREF="#exists"><B>exists</B></A>
|
110
|
+
<I>item</I>
|
111
|
+
</DD>
|
112
|
+
<DD><I>pathName</I> <A HREF="#index"><B>index</B></A>
|
113
|
+
<I>item</I>
|
114
|
+
</DD>
|
115
|
+
<DD><I>pathName</I> <A HREF="#insert"><B>insert</B></A>
|
116
|
+
<I>index</I>
|
117
|
+
<I>item</I>
|
118
|
+
?<I>option value...</I>?
|
119
|
+
</DD>
|
120
|
+
<DD><I>pathName</I> <A HREF="#item"><B>item</B></A>
|
121
|
+
<I>first</I>
|
122
|
+
?<I>last</I>?
|
123
|
+
</DD>
|
124
|
+
<DD><I>pathName</I> <A HREF="#itemcget"><B>itemcget</B></A>
|
125
|
+
<I>item</I>
|
126
|
+
<I>option</I>
|
127
|
+
</DD>
|
128
|
+
<DD><I>pathName</I> <A HREF="#itemconfigure"><B>itemconfigure</B></A>
|
129
|
+
<I>item</I>
|
130
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
131
|
+
</DD>
|
132
|
+
<DD><I>pathName</I> <A HREF="#items"><B>items</B></A>
|
133
|
+
?<I>first</I>?
|
134
|
+
?<I>last</I>?
|
135
|
+
</DD>
|
136
|
+
<DD><I>pathName</I> <A HREF="#move"><B>move</B></A>
|
137
|
+
<I>item</I>
|
138
|
+
<I>index</I>
|
139
|
+
</DD>
|
140
|
+
<DD><I>pathName</I> <A HREF="#reorder"><B>reorder</B></A>
|
141
|
+
<I>neworder</I>
|
142
|
+
</DD>
|
143
|
+
<DD><I>pathName</I> <A HREF="#see"><B>see</B></A>
|
144
|
+
<I>item</I>
|
145
|
+
</DD>
|
146
|
+
<DD><I>pathName</I> <A HREF="#selection"><B>selection</B></A>
|
147
|
+
<I>cmd</I>
|
148
|
+
?<I>arg...</I>?
|
149
|
+
</DD>
|
150
|
+
<DD><I>pathName</I> <A HREF="#xview"><B>xview</B></A>
|
151
|
+
?<I>arg...</I>?
|
152
|
+
</DD>
|
153
|
+
<DD><I>pathName</I> <A HREF="#yview"><B>yview</B></A>
|
154
|
+
?<I>arg...</I>?
|
155
|
+
</DD>
|
156
|
+
</DL>
|
157
|
+
<BR><HR WIDTH="100%"><BR>
|
158
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
159
|
+
<P>
|
160
|
+
|
161
|
+
<B>ListBox</B> widget uses canvas to display a list of items.
|
162
|
+
Each item is composed of a label with its own font and foreground attributes, and an optional
|
163
|
+
image or window. Each item is drawn in a single line, whose height is defined by the
|
164
|
+
<B>deltay</B> option, so they must have at most this height.
|
165
|
+
A item is uniquely identified by a string given at creation (by the
|
166
|
+
<B>insert</B> command). The ListBox can have one or more columns, depending on
|
167
|
+
<B>multicolumn</B> option. The user do not handle columns; the number of columns
|
168
|
+
is determined following the height of the ListBox in order to see each item vertically.
|
169
|
+
|
170
|
+
</P>
|
171
|
+
<BR><HR WIDTH="50%"><BR>
|
172
|
+
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
|
173
|
+
<DL><DT><A NAME="-autofocus"><B>-autofocus</B></A></DT>
|
174
|
+
<DD>
|
175
|
+
If this option is true, the listbox will take focus any time the user
|
176
|
+
clicks in it. Without focus, the listbox's mouse wheel bindings will
|
177
|
+
not work properly. The default is true.
|
178
|
+
</DD>
|
179
|
+
</DL>
|
180
|
+
|
181
|
+
<DL><DT><A NAME="-deltax"><B>-deltax</B></A></DT>
|
182
|
+
<DD>
|
183
|
+
|
184
|
+
Specifies horizontal pad between each columns.
|
185
|
+
|
186
|
+
</DD>
|
187
|
+
</DL>
|
188
|
+
<DL><DT><A NAME="-deltay"><B>-deltay</B></A></DT>
|
189
|
+
<DD>
|
190
|
+
|
191
|
+
Specifies vertical size of the items.
|
192
|
+
|
193
|
+
</DD>
|
194
|
+
</DL>
|
195
|
+
<DL><DT><A NAME="-dragenabled"><B>-dragenabled</B></A></DT>
|
196
|
+
<DD>
|
197
|
+
A boolean specifying if drag is enabled.
|
198
|
+
</DD>
|
199
|
+
</DL>
|
200
|
+
<DL><DT><A NAME="-dragendcmd"><B>-dragendcmd</B></A></DT>
|
201
|
+
<DD>
|
202
|
+
|
203
|
+
Specifies a command to be called when drag ended.
|
204
|
+
<B>dragendcmd</B> must be a command conforming to the description of the
|
205
|
+
option <B>dragendcmd</B> of <B>DragSite::<A HREF="DragSite.html#register">register</A></B>.
|
206
|
+
|
207
|
+
</DD>
|
208
|
+
</DL>
|
209
|
+
<DL><DT><A NAME="-dragevent"><B>-dragevent</B></A></DT>
|
210
|
+
<DD>
|
211
|
+
|
212
|
+
Specifies the number of the mouse button associated to the drag.
|
213
|
+
Must be <B>1</B>, <B>2</B> or <B>3</B>.
|
214
|
+
|
215
|
+
</DD>
|
216
|
+
</DL>
|
217
|
+
<DL><DT><A NAME="-draginitcmd"><B>-draginitcmd</B></A></DT>
|
218
|
+
<DD>
|
219
|
+
|
220
|
+
ListBox has a command wrapper for <I>drag-init</I> events. This command refused the drag
|
221
|
+
if no item is designated. In other cases:
|
222
|
+
<BR>If <B>draginitcmd</B> is empty, it returns:
|
223
|
+
<UL>
|
224
|
+
<LI>the value of option <B>dragtype</B> or <I>LISTBOX_ITEM</I> if empty as the data type,
|
225
|
+
<LI><I>{move copy link}</I> as the operations,
|
226
|
+
<LI>the item identifier as the data.
|
227
|
+
</UL>
|
228
|
+
If <B>draginitcmd</B> is not empty, it is called with the following arguments:
|
229
|
+
<UL>
|
230
|
+
<LI>the pathname of the listbox,
|
231
|
+
<LI>the identifier of the dragged item,
|
232
|
+
<LI>the toplevel created to represent dragged data.
|
233
|
+
</UL>
|
234
|
+
and must return a value conforming to <B>draginitcmd</B> option described in
|
235
|
+
<B>DragSite::<A HREF="DragSite.html#register">register</A></B>.
|
236
|
+
|
237
|
+
</DD>
|
238
|
+
</DL>
|
239
|
+
<DL><DT><A NAME="-dragtype"><B>-dragtype</B></A></DT>
|
240
|
+
<DD>
|
241
|
+
|
242
|
+
Specifies an alternate type of dragged object.
|
243
|
+
|
244
|
+
</DD>
|
245
|
+
</DL>
|
246
|
+
<DL><DT><A NAME="-dropcmd"><B>-dropcmd</B></A></DT>
|
247
|
+
<DD>
|
248
|
+
|
249
|
+
ListBox has a command wrapper for <I>drop</I> events. This command stops auto scrolling
|
250
|
+
and extract item and position.
|
251
|
+
<BR>If <B>dropcmd</B> is not empty, it is called with the following arguments:
|
252
|
+
<UL>
|
253
|
+
<LI>the pathname of the listbox,
|
254
|
+
<LI>the pathname of the drag source,
|
255
|
+
<LI>a list describing where the drop occurs. It can be:
|
256
|
+
<UL>
|
257
|
+
<LI><I>{</I><B>widget</B><I>}</I>,
|
258
|
+
<LI><I>{</I><B>item</B> <I>item}</I> or
|
259
|
+
<LI><I>{</I><B>position</B> <I>index}</I>.
|
260
|
+
</UL>
|
261
|
+
<LI>the current operation,
|
262
|
+
<LI>the data type,
|
263
|
+
<LI>the data.
|
264
|
+
</UL>
|
265
|
+
|
266
|
+
<p>
|
267
|
+
The default drop command allows for drag-and-drop within the listbox but
|
268
|
+
not to or from other widgets.
|
269
|
+
</p>
|
270
|
+
|
271
|
+
</DD>
|
272
|
+
</DL>
|
273
|
+
<DL><DT><A NAME="-dropenabled"><B>-dropenabled</B></A></DT>
|
274
|
+
<DD>
|
275
|
+
A boolean specifying if drop is enabled.
|
276
|
+
</DD>
|
277
|
+
</DL>
|
278
|
+
<DL><DT><A NAME="-dropovercmd"><B>-dropovercmd</B></A></DT>
|
279
|
+
<DD>
|
280
|
+
|
281
|
+
LsitBox has a command wrapper for <I>drag-over</I> events. This command enables auto scrolling
|
282
|
+
and position extraction during the <I>drag-over</I>.
|
283
|
+
If <B>dropovercmd</B> is not empty, the command is called with the following aguments:
|
284
|
+
<UL>
|
285
|
+
<LI>the pathname of the listbox,
|
286
|
+
<LI>the pathname of the drag source,
|
287
|
+
<LI>a list describing where the drop can occur, whose elements are:
|
288
|
+
<UL>
|
289
|
+
<LI>the string <I>widget</I> if <B>dropovertype</B> option contains <I>w</I>, else empty string.
|
290
|
+
<LI>the targeted item if drag icon points an item and <B>dropovertype</B> option contains
|
291
|
+
<I>i</I>, else empty string.
|
292
|
+
<LI>an index within two items where drag icon points to if <B>dropovertype</B> option
|
293
|
+
contains <I>p</I>, else empty string.
|
294
|
+
<LI>optionally, the preferred method if drop can occur both inside an item and between two
|
295
|
+
items. The value is <I>position</I> or <I>item</I>.
|
296
|
+
</UL>
|
297
|
+
<LI>the current operation,
|
298
|
+
<LI>the data type,
|
299
|
+
<LI>the data.
|
300
|
+
</UL>
|
301
|
+
The command must return a list with two elements:
|
302
|
+
<UL>
|
303
|
+
<LI>the drop status, conforming to those described in <B>dropovercmd</B> option of
|
304
|
+
<B>DropSite::<A HREF="DropSite.html#register">register</A></B>,
|
305
|
+
<LI>the choosen method: <I>widget</I>, <I>item</I> or <I>position</I>.
|
306
|
+
</UL>
|
307
|
+
|
308
|
+
</DD>
|
309
|
+
</DL>
|
310
|
+
<DL><DT><A NAME="-dropovermode"><B>-dropovermode</B></A></DT>
|
311
|
+
<DD>
|
312
|
+
|
313
|
+
Specifies the type of <I>drop-over</I> interaction. Must be a combination of
|
314
|
+
<B>w</B>, which specifies that drop can occurs everywhere on widget,
|
315
|
+
<B>p</B>, which specifies that drop can occurs between two items,
|
316
|
+
and <B>i</B>, which specifies that drop occurs inside items.
|
317
|
+
|
318
|
+
</DD>
|
319
|
+
</DL>
|
320
|
+
<DL><DT><A NAME="-droptypes"><B>-droptypes</B></A></DT>
|
321
|
+
<DD>
|
322
|
+
|
323
|
+
Specifies a list of accepted dropped object/operation.
|
324
|
+
See option <B>droptypes</B> of
|
325
|
+
<B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
326
|
+
for more infromation.
|
327
|
+
|
328
|
+
<BR>Default is <I>LISTBOX_ITEM</I> with operations <B>copy</B> and <B>move</B>.
|
329
|
+
|
330
|
+
</DD>
|
331
|
+
</DL>
|
332
|
+
<DL><DT><A NAME="-height"><B>-height</B></A></DT>
|
333
|
+
<DD>
|
334
|
+
|
335
|
+
Specifies the desired height for the listbox in units of <B>deltay</B> pixels.
|
336
|
+
|
337
|
+
</DD>
|
338
|
+
</DL>
|
339
|
+
<DL><DT><A NAME="-multicolumn"><B>-multicolumn</B></A></DT>
|
340
|
+
<DD>
|
341
|
+
|
342
|
+
Specifies wether or not ListBox layouts items in order to see each one vertically.
|
343
|
+
|
344
|
+
</DD>
|
345
|
+
</DL>
|
346
|
+
<DL><DT><A NAME="-padx"><B>-padx</B></A></DT>
|
347
|
+
<DD>
|
348
|
+
|
349
|
+
Specifies distance between image or window and text of the items.
|
350
|
+
|
351
|
+
</DD>
|
352
|
+
</DL>
|
353
|
+
<DL><DT><A NAME="-redraw"><B>-redraw</B></A></DT>
|
354
|
+
<DD>
|
355
|
+
|
356
|
+
Specifies wether or not the listbox should be redrawn when entering idle.
|
357
|
+
Set it to false if you call <B>update</B> while modifying the listbox.
|
358
|
+
|
359
|
+
</DD>
|
360
|
+
</DL>
|
361
|
+
|
362
|
+
<DL><DT><A NAME="-selectfill"><B>-selectfill</B></A></DT>
|
363
|
+
<DD>
|
364
|
+
If true, the listbox will draw a selection rectangle that fills the
|
365
|
+
listbox from left-to-right instead of just drawing a box around the
|
366
|
+
selected item. This more closely mimics the standard Tk listbox.
|
367
|
+
</DD>
|
368
|
+
</DL>
|
369
|
+
|
370
|
+
<DL><DT><A NAME="-selectmode"><B>-selectmode (read-only)</B></A></DT>
|
371
|
+
<DD>
|
372
|
+
|
373
|
+
Specifies the desired selection-mode for the listbox. Must be one of
|
374
|
+
<B>none</B>, <B>single</B> or <B>multiple</B>. <B>selectmode</B> <I>single</I>
|
375
|
+
allows to select 1 item by its text or image. <B>selectmode</B> <I>multiple</I>
|
376
|
+
allows to select multiple items by their text or image. For more info on
|
377
|
+
selectmodes <I>single</I> or <I>multiple</I>, see the Tk <B>listbox</B>
|
378
|
+
command. Default value for <B>selectmode</B> is <I>none</I>.
|
379
|
+
|
380
|
+
</DD>
|
381
|
+
</DL>
|
382
|
+
<DL><DT><A NAME="-width"><B>-width</B></A></DT>
|
383
|
+
<DD>
|
384
|
+
|
385
|
+
Specifies the desired width for the listbox in units of 8 pixels.
|
386
|
+
|
387
|
+
</DD>
|
388
|
+
</DL>
|
389
|
+
<HR WIDTH="50%"><BR>
|
390
|
+
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
|
391
|
+
<DL><DT><A NAME="bindImage"><I>pathName</I> <B>bindImage</B></A>
|
392
|
+
<I>event</I>
|
393
|
+
<I>script</I>
|
394
|
+
</DT><DD>
|
395
|
+
|
396
|
+
This command associates a command to execute whenever the event
|
397
|
+
sequence given by <I>event</I> occurs on the image of a item.
|
398
|
+
The item idenfier on which the event occurs is appended to the command.
|
399
|
+
|
400
|
+
<p>
|
401
|
+
Any occurrence of <b>%W</b> in <i>script</i> is substituted with the
|
402
|
+
path of the listbox.
|
403
|
+
</p>
|
404
|
+
|
405
|
+
</DD></DL>
|
406
|
+
<DL><DT><A NAME="bindText"><I>pathName</I> <B>bindText</B></A>
|
407
|
+
<I>event</I>
|
408
|
+
<I>script</I>
|
409
|
+
</DT><DD>
|
410
|
+
|
411
|
+
This command associates a command to execute whenever the event
|
412
|
+
sequence given by <I>event</I> occurs on the label of a item.
|
413
|
+
The item idenfier on which the event occurs is appended to the command.
|
414
|
+
|
415
|
+
<p>
|
416
|
+
Any occurrence of <b>%W</b> in <i>script</i> is substituted with the
|
417
|
+
path of the listbox.
|
418
|
+
</p>
|
419
|
+
|
420
|
+
</DD></DL>
|
421
|
+
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
|
422
|
+
<I>option</I>
|
423
|
+
</DT><DD>
|
424
|
+
|
425
|
+
Returns the current value of the configuration option given by <I>option</I>.
|
426
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
427
|
+
</DD></DL>
|
428
|
+
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
|
429
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
430
|
+
</DT><DD>
|
431
|
+
|
432
|
+
Query or modify the configuration options of the widget. If no <I>option</I> is specified,
|
433
|
+
returns a list describing all of the available options for <I>pathName</I>.
|
434
|
+
If <I>option</I> is specified with no <I>value</I>, then the command returns a list
|
435
|
+
describing the one named <I>option</I> (this list will be identical to the corresponding
|
436
|
+
sublist of the value returned if no <I>option</I> is specified). If one or
|
437
|
+
more <I>option-value</I> pairs are specified, then the command modifies the given widget
|
438
|
+
option(s) to have the given value(s); in this case the command returns an empty string.
|
439
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
440
|
+
Read-only options are not be modified.
|
441
|
+
|
442
|
+
</DD></DL>
|
443
|
+
<DL><DT><A NAME="delete"><I>pathName</I> <B>delete</B></A>
|
444
|
+
?<I>arg...</I>?
|
445
|
+
</DT><DD>
|
446
|
+
|
447
|
+
Deletes all items in <I>arg</I>. <I>arg</I> can be a list
|
448
|
+
of items or a list of list of items.
|
449
|
+
To delete all items, do <I>$pathName delete [$pathName items]</I>.
|
450
|
+
|
451
|
+
</DD></DL>
|
452
|
+
<DL><DT><A NAME="edit"><I>pathName</I> <B>edit</B></A>
|
453
|
+
<I>item</I>
|
454
|
+
<I>text</I>
|
455
|
+
?<I>verifycmd</I>?
|
456
|
+
?<I>clickres</I>?
|
457
|
+
?<I>select</I>?
|
458
|
+
</DT><DD>
|
459
|
+
|
460
|
+
Provides a way for the user to edit in place the label of an item.
|
461
|
+
<BR>The command takes the initial text as argument and does not modify the label of the
|
462
|
+
edited node, but returns an empty string if edition is canceled, or the typed text
|
463
|
+
if edition is accepted.
|
464
|
+
<BR>When editing, the user can cancel by pressing Escape, or accept by pressing Return.
|
465
|
+
<BR><I>clickres</I> specifies what to do if the user click outside the editable area.
|
466
|
+
If <I>clickres</I> is 0 (the default), the edition is canceled.
|
467
|
+
If <I>clickres</I> is 1, the edition is accepted.
|
468
|
+
In all other case, the edition continues.
|
469
|
+
<BR>If edition is accepted and <I>modifycmd</I> is not empty, then it is called with
|
470
|
+
the new text as argument and must return 1 to accept the new text, 0 to refuse it
|
471
|
+
and continue edition.
|
472
|
+
<BR><I>select</I> specifies wether or not the initial text should be selected. Default is 1.
|
473
|
+
|
474
|
+
</DD></DL>
|
475
|
+
<DL><DT><A NAME="exists"><I>pathName</I> <B>exists</B></A>
|
476
|
+
<I>item</I>
|
477
|
+
</DT><DD>
|
478
|
+
|
479
|
+
Returns 1 if <I>item</I> exists in the listbox, else 0.
|
480
|
+
|
481
|
+
</DD></DL>
|
482
|
+
<DL><DT><A NAME="index"><I>pathName</I> <B>index</B></A>
|
483
|
+
<I>item</I>
|
484
|
+
</DT><DD>
|
485
|
+
|
486
|
+
Returns the position of <I>item</I> in the list.
|
487
|
+
|
488
|
+
</DD></DL>
|
489
|
+
<DL><DT><A NAME="insert"><I>pathName</I> <B>insert</B></A>
|
490
|
+
<I>index</I>
|
491
|
+
<I>item</I>
|
492
|
+
?<I>option value...</I>?
|
493
|
+
</DT><DD>
|
494
|
+
|
495
|
+
<p>
|
496
|
+
Inserts a new item identified by <I>item</I> in the list at position <I>index</I>.
|
497
|
+
</p>
|
498
|
+
|
499
|
+
<p>
|
500
|
+
Any instance of <i>#auto</i> within the item name will be replaced by the
|
501
|
+
number of the item in the order of insertion.
|
502
|
+
</p>
|
503
|
+
|
504
|
+
<P>
|
505
|
+
<DL><DT><A NAME="Item-data"><B>-data</B></A></DT>
|
506
|
+
<DD>
|
507
|
+
|
508
|
+
User data associated to the item.
|
509
|
+
|
510
|
+
</DD>
|
511
|
+
</DL>
|
512
|
+
<DL><DT><A NAME="Item-fill"><B>-fill</B></A></DT>
|
513
|
+
<DD>
|
514
|
+
|
515
|
+
Specifies the foreground color of the label of the item.
|
516
|
+
|
517
|
+
</DD>
|
518
|
+
</DL>
|
519
|
+
<DL><DT><A NAME="Item-font"><B>-font</B></A></DT>
|
520
|
+
<DD>
|
521
|
+
|
522
|
+
Specifies a font for the label of the item.
|
523
|
+
|
524
|
+
</DD>
|
525
|
+
</DL>
|
526
|
+
<DL><DT><A NAME="Item-image"><B>-image</B></A></DT>
|
527
|
+
<DD>
|
528
|
+
|
529
|
+
Specifies an image to display at the left of the label of the item.
|
530
|
+
<B>window</B> option override <B>image</B>.
|
531
|
+
</DD>
|
532
|
+
</DL>
|
533
|
+
<DL><DT><A NAME="Item-indent"><B>-indent</B></A></DT>
|
534
|
+
<DD>
|
535
|
+
|
536
|
+
Specifies the amount of extra space in pixels at the left of the item.
|
537
|
+
|
538
|
+
</DD>
|
539
|
+
</DL>
|
540
|
+
<DL><DT><A NAME="Item-text"><B>-text</B></A></DT>
|
541
|
+
<DD>
|
542
|
+
|
543
|
+
Specifies the label of the item.
|
544
|
+
|
545
|
+
</DD>
|
546
|
+
</DL>
|
547
|
+
<DL><DT><A NAME="Item-window"><B>-window</B></A></DT>
|
548
|
+
<DD>
|
549
|
+
|
550
|
+
Specifies a pathname to display at the left of the label of the item.
|
551
|
+
<B>window</B> option override <B>image</B>.
|
552
|
+
</DD>
|
553
|
+
</DL>
|
554
|
+
</DD></DL>
|
555
|
+
<DL><DT><A NAME="item"><I>pathName</I> <B>item</B></A>
|
556
|
+
<I>first</I>
|
557
|
+
?<I>last</I>?
|
558
|
+
</DT><DD>
|
559
|
+
|
560
|
+
<B>Its use is deprecated. Use <I>items</I> instead.</B><BR>
|
561
|
+
If <I>last</I> is omitted, returns the item at index <I>first</I> in the list,
|
562
|
+
or an empty string if <I>first</I> refers to a non-existent element.
|
563
|
+
If <I>last</I> is specified, the command returns a list whose elements are all
|
564
|
+
of the items between <I>first</I> and <I>last</I>, inclusive.
|
565
|
+
Both <I>first</I> and <I>last</I> may have any of the standard forms for indices.
|
566
|
+
|
567
|
+
</DD></DL>
|
568
|
+
<DL><DT><A NAME="itemcget"><I>pathName</I> <B>itemcget</B></A>
|
569
|
+
<I>item</I>
|
570
|
+
<I>option</I>
|
571
|
+
</DT><DD>
|
572
|
+
|
573
|
+
Returns the current value of a configuration option for the item.
|
574
|
+
<I>Option</I> may have any of the values accepted by the item creation command.
|
575
|
+
|
576
|
+
</DD></DL>
|
577
|
+
<DL><DT><A NAME="itemconfigure"><I>pathName</I> <B>itemconfigure</B></A>
|
578
|
+
<I>item</I>
|
579
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
580
|
+
</DT><DD>
|
581
|
+
|
582
|
+
This command is similar to the <B>configure</B> command, except that it applies to the
|
583
|
+
options for an individual item, whereas <B>configure</B> applies to the options for
|
584
|
+
the widget as a whole. <B>Options</B> may have any of the values accepted by the
|
585
|
+
item creation widget command. If options are specified, options are modified as indicated
|
586
|
+
in the command and the command returns an empty string. If no options are specified,
|
587
|
+
returns a list describing the current options for the item.
|
588
|
+
Read-only options are not be modified.
|
589
|
+
|
590
|
+
</DD></DL>
|
591
|
+
<DL><DT><A NAME="items"><I>pathName</I> <B>items</B></A>
|
592
|
+
?<I>first</I>?
|
593
|
+
?<I>last</I>?
|
594
|
+
</DT><DD>
|
595
|
+
|
596
|
+
If <I>first</I> and <I>last</I> are omitted, returns the list of all items.
|
597
|
+
If <I>first</I> is specified and <I>last</I> omitted, returns the item at index
|
598
|
+
<I>first</I>, or an empty string if <I>first</I> refers to a non-existent element.
|
599
|
+
If <I>first</I> and <I>last</I> are specified, the command returns a list whose elements
|
600
|
+
are all of the items between <I>first</I> and <I>last</I>,
|
601
|
+
inclusive. Both <I>first</I> and <I>last</I> may have any of the standard
|
602
|
+
forms for indices.
|
603
|
+
|
604
|
+
</DD></DL>
|
605
|
+
<DL><DT><A NAME="move"><I>pathName</I> <B>move</B></A>
|
606
|
+
<I>item</I>
|
607
|
+
<I>index</I>
|
608
|
+
</DT><DD>
|
609
|
+
|
610
|
+
Moves <I>item</I> at position <I>index</I> in the list.
|
611
|
+
|
612
|
+
</DD></DL>
|
613
|
+
<DL><DT><A NAME="reorder"><I>pathName</I> <B>reorder</B></A>
|
614
|
+
<I>neworder</I>
|
615
|
+
</DT><DD>
|
616
|
+
|
617
|
+
Modifies the order of items in the listbox given by <I>neworder</I>. Items that do not
|
618
|
+
appear in <I>neworder</I> are no moved.
|
619
|
+
|
620
|
+
</DD></DL>
|
621
|
+
<DL><DT><A NAME="see"><I>pathName</I> <B>see</B></A>
|
622
|
+
<I>item</I>
|
623
|
+
</DT><DD>
|
624
|
+
|
625
|
+
Arrange the scrolling area to make <I>item</I> visible.
|
626
|
+
|
627
|
+
</DD></DL>
|
628
|
+
<DL><DT><A NAME="selection"><I>pathName</I> <B>selection</B></A>
|
629
|
+
<I>cmd</I>
|
630
|
+
?<I>arg...</I>?
|
631
|
+
</DT><DD>
|
632
|
+
|
633
|
+
Modifies the list of selected items following <I>cmd</I>:
|
634
|
+
<DL>
|
635
|
+
<DT><B>clear</B>
|
636
|
+
<DD>remove all items of the selection.
|
637
|
+
<DT><B>set</B>
|
638
|
+
<DD>set the selection to all items in <I>arg</I>
|
639
|
+
<DT><B>add</B>
|
640
|
+
<DD>add all items of <I>arg</I> in the selection
|
641
|
+
<DT><B>remove</B>
|
642
|
+
<DD>remove all items of <I>arg</I> of the selection
|
643
|
+
<DT><B>get</B>
|
644
|
+
<DD>return the current selected items
|
645
|
+
</DL>
|
646
|
+
|
647
|
+
</DD></DL>
|
648
|
+
<DL><DT><A NAME="xview"><I>pathName</I> <B>xview</B></A>
|
649
|
+
?<I>arg...</I>?
|
650
|
+
</DT><DD>
|
651
|
+
|
652
|
+
Standard command to enable horizontal scrolling of <I>pathName</I>.
|
653
|
+
|
654
|
+
</DD></DL>
|
655
|
+
<DL><DT><A NAME="yview"><I>pathName</I> <B>yview</B></A>
|
656
|
+
?<I>arg...</I>?
|
657
|
+
</DT><DD>
|
658
|
+
|
659
|
+
Standard command to enable vertical scrolling of <I>pathName</I>.
|
660
|
+
|
661
|
+
</DD></DL>
|
662
|
+
|
663
|
+
|
664
|
+
<b>BINDINGS</b>
|
665
|
+
|
666
|
+
<p>
|
667
|
+
A <b><<ListboxSelect>></b> virtual event is generated any time the
|
668
|
+
selection in the listbox changes. This is the default behavior of an
|
669
|
+
item in the listbox, but it can be overridden with the bindText or
|
670
|
+
bindImage command. If the button 1 binding is overridden, this event may
|
671
|
+
not be generated.
|
672
|
+
</p>
|
673
|
+
|
674
|
+
<p>
|
675
|
+
The listbox has all the standard mouse wheel bindings when it has focus.
|
676
|
+
</p>
|
677
|
+
</p>
|
678
|
+
</BODY></HTML>
|