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,341 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>Entry</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>Entry</B>
|
6
|
+
- Entry widget with <B>state</B> option, dynamic help and drag and drop facilities
|
7
|
+
</DD></DL>
|
8
|
+
<DL>
|
9
|
+
<DT><I>CREATION</I></DT>
|
10
|
+
<DD><A HREF="#descr"><B>Entry</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-disabledbackground">-disabledbackground</A></TD>
|
21
|
+
<TD> <A HREF="options.htm#M-disabledforeground">-disabledforeground</A></TD>
|
22
|
+
</TR>
|
23
|
+
<TR>
|
24
|
+
<TD> <A HREF="options.htm#M-exportselection">-exportselection</A></TD>
|
25
|
+
<TD> <A HREF="options.htm#M-font">-font</A></TD>
|
26
|
+
</TR>
|
27
|
+
<TR>
|
28
|
+
<TD> <A HREF="options.htm#M-foreground">-foreground or -fg</A></TD>
|
29
|
+
<TD> <A HREF="options.htm#M-highlightbackground">-highlightbackground</A></TD>
|
30
|
+
</TR>
|
31
|
+
<TR>
|
32
|
+
<TD> <A HREF="options.htm#M-highlightcolor">-highlightcolor</A></TD>
|
33
|
+
<TD> <A HREF="options.htm#M-highlightthickness">-highlightthickness</A></TD>
|
34
|
+
</TR>
|
35
|
+
<TR>
|
36
|
+
<TD> <A HREF="options.htm#M-insertbackground">-insertbackground</A></TD>
|
37
|
+
<TD> <A HREF="options.htm#M-insertborderwidth">-insertborderwidth</A></TD>
|
38
|
+
</TR>
|
39
|
+
<TR>
|
40
|
+
<TD> <A HREF="options.htm#M-insertofftime">-insertofftime</A></TD>
|
41
|
+
<TD> <A HREF="options.htm#M-insertontime">-insertontime</A></TD>
|
42
|
+
</TR>
|
43
|
+
<TR>
|
44
|
+
<TD> <A HREF="options.htm#M-insertwidth">-insertwidth</A></TD>
|
45
|
+
<TD> <A HREF="options.htm#M-justify">-justify</A></TD>
|
46
|
+
</TR>
|
47
|
+
<TR>
|
48
|
+
<TD> <A HREF="options.htm#M-relief">-relief</A></TD>
|
49
|
+
<TD> <A HREF="options.htm#M-selectbackground">-selectbackground</A></TD>
|
50
|
+
</TR>
|
51
|
+
<TR>
|
52
|
+
<TD> <A HREF="options.htm#M-selectborderwidth">-selectborderwidth</A></TD>
|
53
|
+
<TD> <A HREF="options.htm#M-selectforeground">-selectforeground</A></TD>
|
54
|
+
</TR>
|
55
|
+
<TR>
|
56
|
+
<TD> <A HREF="options.htm#M-takefocus">-takefocus</A></TD>
|
57
|
+
<TD> <A HREF="options.htm#M-text">-text</A></TD>
|
58
|
+
</TR>
|
59
|
+
<TR>
|
60
|
+
<TD> <A HREF="options.htm#M-textvariable">-textvariable</A></TD>
|
61
|
+
<TD> <A HREF="options.htm#M-xscrollcommand">-xscrollcommand</A></TD>
|
62
|
+
</TABLE></DD>
|
63
|
+
</DL>
|
64
|
+
<DL>
|
65
|
+
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
|
66
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
67
|
+
<TR>
|
68
|
+
<TD> <A HREF="#-command">-command</A></TD>
|
69
|
+
<TD> <A HREF="#-dragenabled">-dragenabled</A></TD>
|
70
|
+
</TR>
|
71
|
+
<TR>
|
72
|
+
<TD> <A HREF="#-dragendcmd">-dragendcmd</A></TD>
|
73
|
+
<TD> <A HREF="#-dragevent">-dragevent</A></TD>
|
74
|
+
</TR>
|
75
|
+
<TR>
|
76
|
+
<TD> <A HREF="#-draginitcmd">-draginitcmd</A></TD>
|
77
|
+
<TD> <A HREF="#-dragtype">-dragtype</A></TD>
|
78
|
+
</TR>
|
79
|
+
<TR>
|
80
|
+
<TD> <A HREF="#-dropcmd">-dropcmd</A></TD>
|
81
|
+
<TD> <A HREF="#-dropenabled">-dropenabled</A></TD>
|
82
|
+
</TR>
|
83
|
+
<TR>
|
84
|
+
<TD> <A HREF="#-dropovercmd">-dropovercmd</A></TD>
|
85
|
+
<TD> <A HREF="#-droptypes">-droptypes</A></TD>
|
86
|
+
</TR>
|
87
|
+
<TR>
|
88
|
+
<TD> <A HREF="#-editable">-editable</A></TD>
|
89
|
+
<TD> <A HREF="#-helptext">-helptext</A></TD>
|
90
|
+
</TR>
|
91
|
+
<TR>
|
92
|
+
<TD> <A HREF="#-helptype">-helptype</A></TD>
|
93
|
+
<TD> <A HREF="#-helpvar">-helpvar</A></TD>
|
94
|
+
</TR>
|
95
|
+
<TR>
|
96
|
+
<TD> <A HREF="#-show">-show</A></TD>
|
97
|
+
<TD> <A HREF="#-state">-state</A></TD>
|
98
|
+
</TR>
|
99
|
+
<TR>
|
100
|
+
<TD> <A HREF="#-width">-width</A></TD>
|
101
|
+
</TABLE></DD>
|
102
|
+
</DL>
|
103
|
+
<DL>
|
104
|
+
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
|
105
|
+
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
|
106
|
+
<I>option</I>
|
107
|
+
</DD>
|
108
|
+
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
|
109
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
110
|
+
</DD>
|
111
|
+
<DD><I>pathName</I> <A HREF="#invoke"><B>invoke</B></A>
|
112
|
+
</DD>
|
113
|
+
</DL>
|
114
|
+
<BR><HR WIDTH="100%"><BR>
|
115
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
116
|
+
<P>
|
117
|
+
|
118
|
+
The <B>Entry</B> widget extends the default Tk entry. Options have been added to provide
|
119
|
+
visual effect depending on the state of the Entry,
|
120
|
+
<A HREF="DynamicHelp.html">DynamicHelp</A> options,
|
121
|
+
and <A HREF="DragSite.html">Drag</A> and
|
122
|
+
<A HREF="DropSite.html">Drop</A>.
|
123
|
+
Entry behaves much like a Label, with <B>text</B> option to set its contents.
|
124
|
+
<BR>Tk entry command can also be used on Entry widget.
|
125
|
+
|
126
|
+
</P>
|
127
|
+
<BR><HR WIDTH="50%"><BR>
|
128
|
+
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
|
129
|
+
<DL><DT><A NAME="-command"><B>-command</B></A></DT>
|
130
|
+
<DD>
|
131
|
+
|
132
|
+
Specifies a command when user press <Return> in the Entry.
|
133
|
+
</DD>
|
134
|
+
</DL>
|
135
|
+
<DL><DT><A NAME="-dragenabled"><B>-dragenabled</B></A></DT>
|
136
|
+
<DD>
|
137
|
+
A boolean specifying if drag is enabled.
|
138
|
+
</DD>
|
139
|
+
</DL>
|
140
|
+
<DL><DT><A NAME="-dragendcmd"><B>-dragendcmd</B></A></DT>
|
141
|
+
<DD>
|
142
|
+
|
143
|
+
Specifies a command to be called when drag ended.
|
144
|
+
<B>dragendcmd</B> must be a command conforming to the description of the
|
145
|
+
option <B>dragendcmd</B> of <B>DragSite::<A HREF="DragSite.html#register">register</A></B>.
|
146
|
+
|
147
|
+
<BR>If <B>dragendcmd</B> is empty, the internal <I>dragend</I> command updates the entry
|
148
|
+
following the operation (<B>move</B> or <B>copy</B>) and the dragged data
|
149
|
+
(whole or selected part of the entry).
|
150
|
+
|
151
|
+
</DD>
|
152
|
+
</DL>
|
153
|
+
<DL><DT><A NAME="-dragevent"><B>-dragevent</B></A></DT>
|
154
|
+
<DD>
|
155
|
+
|
156
|
+
Specifies the number of the mouse button associated to the drag.
|
157
|
+
Must be <B>1</B>, <B>2</B> or <B>3</B>.
|
158
|
+
|
159
|
+
</DD>
|
160
|
+
</DL>
|
161
|
+
<DL><DT><A NAME="-draginitcmd"><B>-draginitcmd</B></A></DT>
|
162
|
+
<DD>
|
163
|
+
|
164
|
+
Specifies a command to be called when <B>dragevent</B> occurs on widget.
|
165
|
+
<B>draginitcmd</B> must be a command conforming to the description of the
|
166
|
+
option <B>draginitcmd</B> of <B>DragSite::<A HREF="DragSite.html#register">register</A></B>.
|
167
|
+
|
168
|
+
<BR>if <B>draginitcmd</B> is empty, the command refuse the drag if entry is empty or if
|
169
|
+
portion of text is selected and event doesn't occur above the selection. In all other cases,
|
170
|
+
the command returns:
|
171
|
+
<UL>
|
172
|
+
<LI>as the data type, the value of option <B>dragtype</B> or <I>TEXT</I> if empty,
|
173
|
+
<LI>as the operations, <I>{copy move}</I> if <B>state</B> is normal and <B>editable</B>
|
174
|
+
is true, or <I>{copy}</I> only in other cases,
|
175
|
+
<LI>as the data, the whole content or the selected portion of the entry.
|
176
|
+
</UL>
|
177
|
+
|
178
|
+
</DD>
|
179
|
+
</DL>
|
180
|
+
<DL><DT><A NAME="-dragtype"><B>-dragtype</B></A></DT>
|
181
|
+
<DD>
|
182
|
+
|
183
|
+
Specifies an alternate type of dragged object.
|
184
|
+
|
185
|
+
</DD>
|
186
|
+
</DL>
|
187
|
+
<DL><DT><A NAME="-dropcmd"><B>-dropcmd</B></A></DT>
|
188
|
+
<DD>
|
189
|
+
|
190
|
+
Entry has a command wrapper for <I>drop</I> events. This command stops auto scrolling
|
191
|
+
and extract current position.
|
192
|
+
<BR>If <B>dropcmd</B> is not empty, it is called with the following arguments:
|
193
|
+
<UL>
|
194
|
+
<LI>the pathname of the Entry,
|
195
|
+
<LI>the pathname of the drag source,
|
196
|
+
<LI>the numeric index in the entry designated by the cursor,
|
197
|
+
<LI>the current operation,
|
198
|
+
<LI>the data type,
|
199
|
+
<LI>the data.
|
200
|
+
</UL>
|
201
|
+
and must return a value conforming to <B>dropcmd</B> option described in
|
202
|
+
<B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
203
|
+
If <B>dropcmd</B> is empty, the wrapper updates the entry following the type of data:
|
204
|
+
<DL><DD><TABLE BORDER=0 CELLSPACING=1>
|
205
|
+
<TR><TD><I>COLOR</I> or <I>FGCOLOR</I></TD>
|
206
|
+
<TD>reconfigure the <B>foreground</B> of the Entry</TD>
|
207
|
+
<TR><TD><I>BGCOLOR</I></TD>
|
208
|
+
<TD>reconfigure the <B>background</B> of the Entry</TD>
|
209
|
+
<TR><TD><I>TEXT</I>,<BR>or any other tag</TD>
|
210
|
+
<TD>reconfigure the Entry to display the associated string.</TD>
|
211
|
+
</TABLE></DL>
|
212
|
+
and returns 1.
|
213
|
+
|
214
|
+
</DD>
|
215
|
+
</DL>
|
216
|
+
<DL><DT><A NAME="-dropenabled"><B>-dropenabled</B></A></DT>
|
217
|
+
<DD>
|
218
|
+
A boolean specifying if drop is enabled.
|
219
|
+
</DD>
|
220
|
+
</DL>
|
221
|
+
<DL><DT><A NAME="-dropovercmd"><B>-dropovercmd</B></A></DT>
|
222
|
+
<DD>
|
223
|
+
|
224
|
+
Entry has a command wrapper for <I>drag-over</I> events. This command enables auto scrolling
|
225
|
+
and position extraction during the <I>drag-over</I>.
|
226
|
+
<BR>If <B>dropovercmd</B> is empty, the wrapper accepts the drop if <B>editable</b> option is
|
227
|
+
true and <B>state</B> option is normal.
|
228
|
+
<BR>If <B>dropovercmd</B> is not empty, it is called with the following arguments:
|
229
|
+
<UL>
|
230
|
+
<LI>the pathname of the Entry,
|
231
|
+
<LI>the pathname of the drag source,
|
232
|
+
<LI>the event,
|
233
|
+
<LI>the numeric index in the entry designated by the cursor,
|
234
|
+
<LI>the current operation,
|
235
|
+
<LI>the data type,
|
236
|
+
<LI>the data.
|
237
|
+
</UL>
|
238
|
+
and must return a value conforming to <B>dropovercmd</B> option described in
|
239
|
+
<B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
240
|
+
|
241
|
+
</DD>
|
242
|
+
</DL>
|
243
|
+
<DL><DT><A NAME="-droptypes"><B>-droptypes</B></A></DT>
|
244
|
+
<DD>
|
245
|
+
|
246
|
+
Specifies a list of accepted dropped object/operation.
|
247
|
+
See option <B>droptypes</B> of
|
248
|
+
<B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
249
|
+
for more infromation.
|
250
|
+
|
251
|
+
Default accepts <I>FGCOLOR</I>, <I>COLOR</I>, <I>BGCOLOR</I> and <I>TEXT</I>,
|
252
|
+
all with <B>copy</B> and <B>move</B> operations.
|
253
|
+
|
254
|
+
</DD>
|
255
|
+
</DL>
|
256
|
+
<DL><DT><A NAME="-editable"><B>-editable</B></A></DT>
|
257
|
+
<DD>
|
258
|
+
|
259
|
+
Specifies whether the Entry is editable by the user. Equivalent to the <B>state</B> option
|
260
|
+
of the Tk entry widget.
|
261
|
+
</DD>
|
262
|
+
</DL>
|
263
|
+
<DL><DT><A NAME="-helptext"><B>-helptext</B></A></DT>
|
264
|
+
<DD>
|
265
|
+
|
266
|
+
Text for dynamic help. If empty, no help is available for this widget.
|
267
|
+
See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
|
268
|
+
</DD>
|
269
|
+
</DL>
|
270
|
+
<DL><DT><A NAME="-helptype"><B>-helptype</B></A></DT>
|
271
|
+
<DD>
|
272
|
+
Type of dynamic help. Use <I>balloon</I> or <I>variable</I>.
|
273
|
+
See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
|
274
|
+
</DD>
|
275
|
+
</DL>
|
276
|
+
<DL><DT><A NAME="-helpvar"><B>-helpvar</B></A></DT>
|
277
|
+
<DD>
|
278
|
+
Variable to use when <B>helptype</B> option is <I>variable</I>.
|
279
|
+
See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
|
280
|
+
</DD>
|
281
|
+
</DL>
|
282
|
+
<DL><DT><A NAME="-show"><B>-show</B></A></DT>
|
283
|
+
<DD>
|
284
|
+
|
285
|
+
If this option is specified, then the true contents of the entry are not displayed in the
|
286
|
+
window. Instead, each character in the entry's value will be displayed as the first character
|
287
|
+
in the value of this option, such as ``*''. This is useful, for example, if the entry is to
|
288
|
+
be used to enter a password. If characters in the entry are selected and copied elsewhere, the
|
289
|
+
information copied will be what is displayed, not the true contents of the entry.
|
290
|
+
</DD>
|
291
|
+
</DL>
|
292
|
+
<DL><DT><A NAME="-state"><B>-state</B></A></DT>
|
293
|
+
<DD>
|
294
|
+
|
295
|
+
Specifies one of two states for the Entry: <B>normal</B> or <B>disabled</B>.
|
296
|
+
In normal state the text of the Entry is displayed using the <B>foreground</B> option.
|
297
|
+
In disabled state the text of the Entry is displayed using the <B>disabledforeground</B>
|
298
|
+
option. If the entry is disabled then the value may not be changed by user input
|
299
|
+
and no insertion cursor will be displayed, even if the input focus is in the widget.
|
300
|
+
Disabled state is the same as not editable with visual effect.
|
301
|
+
</DD>
|
302
|
+
</DL>
|
303
|
+
<DL><DT><A NAME="-width"><B>-width</B></A></DT>
|
304
|
+
<DD>
|
305
|
+
|
306
|
+
Specifies an integer value indicating the desired width of the entry window, in average-size
|
307
|
+
characters of the widget's font. If the value is less than or equal to zero, the widget picks
|
308
|
+
a size just large enough to hold its current text.
|
309
|
+
</DD>
|
310
|
+
</DL>
|
311
|
+
<HR WIDTH="50%"><BR>
|
312
|
+
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
|
313
|
+
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
|
314
|
+
<I>option</I>
|
315
|
+
</DT><DD>
|
316
|
+
|
317
|
+
Returns the current value of the configuration option given by <I>option</I>.
|
318
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
319
|
+
</DD></DL>
|
320
|
+
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
|
321
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
322
|
+
</DT><DD>
|
323
|
+
|
324
|
+
Query or modify the configuration options of the widget. If no <I>option</I> is specified,
|
325
|
+
returns a list describing all of the available options for <I>pathName</I>.
|
326
|
+
If <I>option</I> is specified with no <I>value</I>, then the command returns a list
|
327
|
+
describing the one named <I>option</I> (this list will be identical to the corresponding
|
328
|
+
sublist of the value returned if no <I>option</I> is specified). If one or
|
329
|
+
more <I>option-value</I> pairs are specified, then the command modifies the given widget
|
330
|
+
option(s) to have the given value(s); in this case the command returns an empty string.
|
331
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
332
|
+
Read-only options are not be modified.
|
333
|
+
|
334
|
+
</DD></DL>
|
335
|
+
<DL><DT><A NAME="invoke"><I>pathName</I> <B>invoke</B></A>
|
336
|
+
</DT><DD>
|
337
|
+
|
338
|
+
Calls the command specified by the option <B>-command</B>.
|
339
|
+
|
340
|
+
</DD></DL>
|
341
|
+
</BODY></HTML>
|
@@ -0,0 +1,331 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>Label</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>Label</B>
|
6
|
+
- Label widget with <B>state</B> option, dynamic help and drag and drop facilities
|
7
|
+
</DD></DL>
|
8
|
+
<DL>
|
9
|
+
<DT><I>CREATION</I></DT>
|
10
|
+
<DD><A HREF="#descr"><B>Label</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-anchor">-anchor</A></TR>
|
17
|
+
<TD> <A HREF="options.htm#M-background">-background or -bg</A></TD>
|
18
|
+
</TR>
|
19
|
+
<TR>
|
20
|
+
<TD> <A HREF="options.htm#M-bitmap">-bitmap</A></TR>
|
21
|
+
<TD> <A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD>
|
22
|
+
</TR>
|
23
|
+
<TR>
|
24
|
+
<TD> <A HREF="options.htm#M-cursor">-cursor</A></TR>
|
25
|
+
<TD> <A HREF="options.htm#M-disabledforeground">-disabledforeground</A></TR>
|
26
|
+
</TR>
|
27
|
+
<TR>
|
28
|
+
<TD> <A HREF="options.htm#M-font">-font</A></TR>
|
29
|
+
<TD> <A HREF="options.htm#M-foreground">-foreground or -fg</A></TD>
|
30
|
+
</TR>
|
31
|
+
<TR>
|
32
|
+
<TD> <A HREF="options.htm#M-highlightbackground">-highlightbackground</A></TR>
|
33
|
+
<TD> <A HREF="options.htm#M-highlightcolor">-highlightcolor</A></TR>
|
34
|
+
</TR>
|
35
|
+
<TR>
|
36
|
+
<TD> <A HREF="options.htm#M-highlightthickness">-highlightthickness</A></TR>
|
37
|
+
<TD> <A HREF="options.htm#M-image">-image</A></TR>
|
38
|
+
</TR>
|
39
|
+
<TR>
|
40
|
+
<TD> <A HREF="options.htm#M-justify">-justify</A></TR>
|
41
|
+
<TD> <A HREF="options.htm#M-padx">-padx</A></TR>
|
42
|
+
</TR>
|
43
|
+
<TR>
|
44
|
+
<TD> <A HREF="options.htm#M-pady">-pady</A></TR>
|
45
|
+
<TD> <A HREF="options.htm#M-relief">-relief</A></TR>
|
46
|
+
</TR>
|
47
|
+
<TR>
|
48
|
+
<TD> <A HREF="options.htm#M-takefocus">-takefocus</A></TR>
|
49
|
+
<TD> <A HREF="options.htm#M-text">-text</A></TR>
|
50
|
+
</TR>
|
51
|
+
<TR>
|
52
|
+
<TD> <A HREF="options.htm#M-textvariable">-textvariable</A></TR>
|
53
|
+
<TD> <A HREF="options.htm#M-wraplength">-wraplength</A></TR>
|
54
|
+
</TR>
|
55
|
+
</TABLE></DD>
|
56
|
+
</DL>
|
57
|
+
<DL>
|
58
|
+
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
|
59
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
60
|
+
<TR>
|
61
|
+
<TD> <A HREF="#-dragenabled">-dragenabled</A></TR>
|
62
|
+
<TD> <A HREF="#-dragendcmd">-dragendcmd</A></TR>
|
63
|
+
</TR>
|
64
|
+
<TR>
|
65
|
+
<TD> <A HREF="#-dragevent">-dragevent</A></TR>
|
66
|
+
<TD> <A HREF="#-draginitcmd">-draginitcmd</A></TR>
|
67
|
+
</TR>
|
68
|
+
<TR>
|
69
|
+
<TD> <A HREF="#-dragtype">-dragtype</A></TR>
|
70
|
+
<TD> <A HREF="#-dropcmd">-dropcmd</A></TR>
|
71
|
+
</TR>
|
72
|
+
<TR>
|
73
|
+
<TD> <A HREF="#-dropenabled">-dropenabled</A></TR>
|
74
|
+
<TD> <A HREF="#-dropovercmd">-dropovercmd</A></TR>
|
75
|
+
</TR>
|
76
|
+
<TR>
|
77
|
+
<TD> <A HREF="#-droptypes">-droptypes</A></TR>
|
78
|
+
<TD> <A HREF="#-focus">-focus</A></TR>
|
79
|
+
</TR>
|
80
|
+
<TR>
|
81
|
+
<TD> <A HREF="#-height">-height</A></TR>
|
82
|
+
<TD> <A HREF="#-helptext">-helptext</A></TR>
|
83
|
+
</TR>
|
84
|
+
<TR>
|
85
|
+
<TD> <A HREF="#-helptype">-helptype</A></TR>
|
86
|
+
<TD> <A HREF="#-helpvar">-helpvar</A></TR>
|
87
|
+
</TR>
|
88
|
+
<TR>
|
89
|
+
<TD> <A HREF="#-name">-name</A></TR>
|
90
|
+
<TD> <A HREF="#-state">-state</A></TR>
|
91
|
+
</TR>
|
92
|
+
<TR>
|
93
|
+
<TD> <A HREF="#-underline">-underline</A></TR>
|
94
|
+
<TD> <A HREF="#-width">-width</A></TR>
|
95
|
+
</TR>
|
96
|
+
</TABLE></DD>
|
97
|
+
</DL>
|
98
|
+
<DL>
|
99
|
+
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
|
100
|
+
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
|
101
|
+
<I>option</I>
|
102
|
+
</DD>
|
103
|
+
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
|
104
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
105
|
+
</DD>
|
106
|
+
<DD><I>pathName</I> <A HREF="#setfocus"><B>setfocus</B></A>
|
107
|
+
</DD>
|
108
|
+
</DL>
|
109
|
+
<BR><HR WIDTH="100%"><BR>
|
110
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
111
|
+
<P>
|
112
|
+
|
113
|
+
The <B>Label</B> widget extends the default Tk label. Options have been added to provide
|
114
|
+
visual effect depending on the state of the Label, <A HREF="DynamicHelp.html">DynamicHelp</A> options, and <A HREF="DragSite.html">Drag
|
115
|
+
</A> and <A HREF="DropSite.html">Drop</A>.
|
116
|
+
</P>
|
117
|
+
<BR><HR WIDTH="50%"><BR>
|
118
|
+
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
|
119
|
+
<DL><DT><A NAME="-dragenabled"><B>-dragenabled</B></A></DT>
|
120
|
+
<DD>
|
121
|
+
A boolean specifying if drag is enabled.
|
122
|
+
</DD>
|
123
|
+
</DL>
|
124
|
+
<DL><DT><A NAME="-dragendcmd"><B>-dragendcmd</B></A></DT>
|
125
|
+
<DD>
|
126
|
+
|
127
|
+
Specifies a command to be called when drag ended.
|
128
|
+
<B>dragendcmd</B> must be a command conforming to the description of the
|
129
|
+
option <B>dragendcmd</B> of <B>DragSite::<A HREF="DragSite.html#register">register</A></B>.
|
130
|
+
|
131
|
+
</DD>
|
132
|
+
</DL>
|
133
|
+
<DL><DT><A NAME="-dragevent"><B>-dragevent</B></A></DT>
|
134
|
+
<DD>
|
135
|
+
|
136
|
+
Specifies the number of the mouse button associated to the drag.
|
137
|
+
Must be <B>1</B>, <B>2</B> or <B>3</B>.
|
138
|
+
|
139
|
+
</DD>
|
140
|
+
</DL>
|
141
|
+
<DL><DT><A NAME="-draginitcmd"><B>-draginitcmd</B></A></DT>
|
142
|
+
<DD>
|
143
|
+
|
144
|
+
Specifies a command to be called when <B>dragevent</B> occurs on widget.
|
145
|
+
<B>draginitcmd</B> must be a command conforming to the description of the
|
146
|
+
option <B>draginitcmd</B> of <B>DragSite::<A HREF="DragSite.html#register">register</A></B>.
|
147
|
+
|
148
|
+
<BR>If <B>draginitcmd</B> is empty, the internal <B>draginitcmd</B> command is used instead
|
149
|
+
and returns:
|
150
|
+
<DL><DD><TABLE BORDER=0 CELLSPACING=1>
|
151
|
+
<TR><TD valign=top><I>IMAGE {copy} <image name></I>
|
152
|
+
<TD>if an image is displayed.
|
153
|
+
<TR><TD valign=top><I>BITMAP {copy} <bitmap name></I>
|
154
|
+
<TD>if a bitmap is displayed.
|
155
|
+
<TR><TD valign=top><I>TEXT {copy} <text></I>
|
156
|
+
<TD>if a text is displayed.
|
157
|
+
</TABLE></DL>
|
158
|
+
Note that if <B>dragtype</B> option is not empty, its value is used instead of those above.
|
159
|
+
|
160
|
+
</DD>
|
161
|
+
</DL>
|
162
|
+
<DL><DT><A NAME="-dragtype"><B>-dragtype</B></A></DT>
|
163
|
+
<DD>
|
164
|
+
|
165
|
+
Specifies an alternate type of dragged object.
|
166
|
+
|
167
|
+
</DD>
|
168
|
+
</DL>
|
169
|
+
<DL><DT><A NAME="-dropcmd"><B>-dropcmd</B></A></DT>
|
170
|
+
<DD>
|
171
|
+
|
172
|
+
Specifies a command to be called when drop occurs on the widget.
|
173
|
+
<B>dropcmd</B> must be a command conforming to the description of the
|
174
|
+
option <B>dropcmd</B> of <B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
175
|
+
|
176
|
+
<BR>If <B>dropcmd</B> is empty, the command updates the label following the type of the data:
|
177
|
+
<DL><DD><TABLE BORDER=0 CELLSPACING=1>
|
178
|
+
<TR><TD><I>COLOR</I> or <I>FGCOLOR</I></TD>
|
179
|
+
<TD>reconfigure the <B>foreground</B> of the Label.</TD>
|
180
|
+
<TR><TD><I>BGCOLOR</I></TD>
|
181
|
+
<TD>reconfigure the <B>background</B> of the Label.</TD>
|
182
|
+
<TR><TD><I>IMAGE</I></TD>
|
183
|
+
<TD>reconfigure the Label to display the associated image.</TD>
|
184
|
+
<TR><TD><I>BITMAP</I></TD>
|
185
|
+
<TD>reconfigure the Label to display the associated bitmap.
|
186
|
+
<B>image</B> option is set to empty.</TD>
|
187
|
+
<TR><TD><I>TEXT</I>,<BR>or any other tag</TD>
|
188
|
+
<TD>reconfigure the Label to display the associated string.
|
189
|
+
<B>image</B> and <B>bitmap</B> options are set to empty.</TD>
|
190
|
+
</TABLE></DL>
|
191
|
+
and returns 1.
|
192
|
+
|
193
|
+
</DD>
|
194
|
+
</DL>
|
195
|
+
<DL><DT><A NAME="-dropenabled"><B>-dropenabled</B></A></DT>
|
196
|
+
<DD>
|
197
|
+
A boolean specifying if drop is enabled.
|
198
|
+
</DD>
|
199
|
+
</DL>
|
200
|
+
<DL><DT><A NAME="-dropovercmd"><B>-dropovercmd</B></A></DT>
|
201
|
+
<DD>
|
202
|
+
|
203
|
+
Specifies a command to be called when drag icon is over the widget.
|
204
|
+
<B>dropovercmd</B> must be a command conforming to the description of the
|
205
|
+
option <B>dropovercmd</B> of <B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
206
|
+
|
207
|
+
<BR>If <B>dropovercmd</B> is empty, Label always accepts the drop if data type is
|
208
|
+
<I>FGCOLOR</I>, <I>COLOR</I>, <I>BGCOLOR</I>, and accepts all other data type only if
|
209
|
+
<B>state</B> is normal.
|
210
|
+
|
211
|
+
</DD>
|
212
|
+
</DL>
|
213
|
+
<DL><DT><A NAME="-droptypes"><B>-droptypes</B></A></DT>
|
214
|
+
<DD>
|
215
|
+
|
216
|
+
Specifies a list of accepted dropped object/operation.
|
217
|
+
See option <B>droptypes</B> of
|
218
|
+
<B>DropSite::<A HREF="DropSite.html#register">register</A></B>.
|
219
|
+
for more infromation.
|
220
|
+
|
221
|
+
Default accepts <I>FGCOLOR</I>, <I>COLOR</I>, <I>BGCOLOR</I>, <I>TEXT</I>, <I>BITMAP</I>
|
222
|
+
and <I>IMAGE</I>, all with <B>copy</B> and <B>move</B> operations.
|
223
|
+
|
224
|
+
</DD>
|
225
|
+
</DL>
|
226
|
+
<DL><DT><A NAME="-focus"><B>-focus</B></A></DT>
|
227
|
+
<DD>
|
228
|
+
|
229
|
+
Specifies a pathname to set the focus on for Label::<B>setfocus</B> command.
|
230
|
+
|
231
|
+
</DD>
|
232
|
+
</DL>
|
233
|
+
<DL><DT><A NAME="-height"><B>-height</B></A></DT>
|
234
|
+
<DD>
|
235
|
+
|
236
|
+
Specifies a desired height for the label.
|
237
|
+
If an image or bitmap is being displayed in the label then the value is in
|
238
|
+
screen units, for text it is in lines of text.
|
239
|
+
If this option isn't specified, the label's desired height is computed
|
240
|
+
from the size of the image or bitmap or text being displayed in it.
|
241
|
+
</DD>
|
242
|
+
</DL>
|
243
|
+
<DL><DT><A NAME="-helptext"><B>-helptext</B></A></DT>
|
244
|
+
<DD>
|
245
|
+
|
246
|
+
Text for dynamic help. If empty, no help is available for this widget.
|
247
|
+
See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
|
248
|
+
</DD>
|
249
|
+
</DL>
|
250
|
+
<DL><DT><A NAME="-helptype"><B>-helptype</B></A></DT>
|
251
|
+
<DD>
|
252
|
+
Type of dynamic help. Use <I>balloon</I> or <I>variable</I>.
|
253
|
+
See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
|
254
|
+
</DD>
|
255
|
+
</DL>
|
256
|
+
<DL><DT><A NAME="-helpvar"><B>-helpvar</B></A></DT>
|
257
|
+
<DD>
|
258
|
+
Variable to use when <B>helptype</B> option is <I>variable</I>.
|
259
|
+
See also <A HREF="DynamicHelp.html">DynamicHelp</A>.
|
260
|
+
</DD>
|
261
|
+
</DL>
|
262
|
+
<DL><DT><A NAME="-name"><B>-name</B></A></DT>
|
263
|
+
<DD>
|
264
|
+
|
265
|
+
Specifies a standard name for the label. If the option <B>*<I>name</I>Name</B> is
|
266
|
+
found in the resource database, then <B>text</B> and <B>underline</B> options
|
267
|
+
are extracted from its value.
|
268
|
+
|
269
|
+
</DD>
|
270
|
+
</DL>
|
271
|
+
<DL><DT><A NAME="-state"><B>-state</B></A></DT>
|
272
|
+
<DD>
|
273
|
+
|
274
|
+
Specifies one of two states for the Label: <B>normal</B> or <B>disabled</B>.
|
275
|
+
In normal state the text of the Label is displayed using the <B>foreground</B> option.
|
276
|
+
In disabled state the text of the Label is displayed using the <B>disabledforeground</B> option.
|
277
|
+
</DD>
|
278
|
+
</DL>
|
279
|
+
<DL><DT><A NAME="-underline"><B>-underline</B></A></DT>
|
280
|
+
<DD>
|
281
|
+
|
282
|
+
Specifies the integer index of a character to underline in the label.
|
283
|
+
0 corresponds to the first character of the text displayed, 1 to the next character,
|
284
|
+
and so on.
|
285
|
+
<BR>The binding <B><Alt-<I>char</I>></B> is automatically set on the toplevel
|
286
|
+
of the Label to call Label::<B>setfocus</B>.
|
287
|
+
|
288
|
+
</DD>
|
289
|
+
</DL>
|
290
|
+
<DL><DT><A NAME="-width"><B>-width</B></A></DT>
|
291
|
+
<DD>
|
292
|
+
|
293
|
+
Specifies a desired width for the label.
|
294
|
+
If an image or bitmap is being displayed in the label then the value is in
|
295
|
+
screen units, for text it is in characters.
|
296
|
+
If this option isn't specified, the label's desired width is computed
|
297
|
+
from the size of the image or bitmap or text being displayed in it.
|
298
|
+
|
299
|
+
</DD>
|
300
|
+
</DL>
|
301
|
+
<HR WIDTH="50%"><BR>
|
302
|
+
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
|
303
|
+
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
|
304
|
+
<I>option</I>
|
305
|
+
</DT><DD>
|
306
|
+
|
307
|
+
Returns the current value of the configuration option given by <I>option</I>.
|
308
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
309
|
+
</DD></DL>
|
310
|
+
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
|
311
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
312
|
+
</DT><DD>
|
313
|
+
|
314
|
+
Query or modify the configuration options of the widget. If no <I>option</I> is specified,
|
315
|
+
returns a list describing all of the available options for <I>pathName</I>.
|
316
|
+
If <I>option</I> is specified with no <I>value</I>, then the command returns a list
|
317
|
+
describing the one named <I>option</I> (this list will be identical to the corresponding
|
318
|
+
sublist of the value returned if no <I>option</I> is specified). If one or
|
319
|
+
more <I>option-value</I> pairs are specified, then the command modifies the given widget
|
320
|
+
option(s) to have the given value(s); in this case the command returns an empty string.
|
321
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
322
|
+
Read-only options are not be modified.
|
323
|
+
|
324
|
+
</DD></DL>
|
325
|
+
<DL><DT><A NAME="setfocus"><I>pathName</I> <B>setfocus</B></A>
|
326
|
+
</DT><DD>
|
327
|
+
|
328
|
+
Set the focus on the pathname given by <B>-focus</B> option if <B>-state</B> is <I>normal</I>.
|
329
|
+
|
330
|
+
</DD></DL>
|
331
|
+
</BODY></HTML>
|