/usr/share/doc/bwidget/html/ComboBox.html is in bwidget 1.9.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | <HTML>
<HEAD><TITLE>ComboBox</TITLE></HEAD>
<BODY BGCOLOR=white>
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
<DD><B>ComboBox</B>
- ComboBox widget
</DD></DL>
<DL>
<DT><I>CREATION</I></DT>
<DD><A HREF="#descr"><B>ComboBox</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
</DL>
<DL>
<DT><I><A HREF="ArrowButton.html">OPTIONS from <B>ArrowButton</B></A></I></DT>
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TR>
<TD> -background or -bg</TD>
<TD> -disabledforeground</TD>
</TR>
<TR>
<TD> -foreground or -fg</TD>
<TD> -state</TD>
</TR>
</TABLE></DD>
</DL>
<DL>
<DT><I><A HREF="Entry.html">OPTIONS from <B>Entry</B></A></I></DT>
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TR>
<TD> -command</TD>
<TD> -disabledforeground</TD>
</TR>
<TR>
<TD> -dragenabled</TD>
<TD> -dragendcmd</TD>
</TR>
<TR>
<TD> -dragevent</TD>
<TD> -draginitcmd</TD>
</TR>
<TR>
<TD> -dragtype</TD>
<TD> -dropcmd</TD>
</TR>
<TR>
<TD> -dropenabled</TD>
<TD> -dropovercmd</TD>
</TR>
<TR>
<TD> -droptypes</TD>
<TD> -editable</TD>
</TR>
<TR>
<TD> -entrybg (see <B>-background</B>)</TD>
<TD> -entryfg (see <B>-foreground</B>)</TD>
</TR>
<TR>
<TD> -exportselection</TD>
<TD> -font</TD>
</TR>
<TR>
<TD> -helptext</TD>
<TD> -helptype</TD>
</TR>
<TR>
<TD> -helpvar</TD>
<TD> -highlightbackground</TD>
</TR>
<TR>
<TD> -highlightcolor</TD>
<TD> -highlightthickness</TD>
</TR>
<TR>
<TD> -insertbackground</TD>
<TD> -insertborderwidth</TD>
</TR>
<TR>
<TD> -insertofftime</TD>
<TD> -insertontime</TD>
</TR>
<TR>
<TD> -insertwidth</TD>
<TD> -justify</TD>
</TR>
<TR>
<TD> -selectbackground</TD>
<TD> -selectborderwidth</TD>
</TR>
<TR>
<TD> -selectforeground</TD>
<TD> -show</TD>
</TR>
<TR>
<TD> -state</TD>
<TD> -takefocus</TD>
</TR>
<TR>
<TD> -text</TD>
<TD> -textvariable</TD>
</TR>
<TR>
<TD> -width</TD>
<TD> -xscrollcommand</TD>
</TR>
</TABLE></DD>
</DL>
<DL>
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD> <A HREF="#-autocomplete">-autocomplete</A></TD>
<TD> <A HREF="#-autopost">-autopost</A></TD>
</TR>
<TR>
<TD> <A HREF="#-bwlistbox">-bwlistbox</A></TD>
<TD> <A HREF="#-expand">-expand</A></TD>
</TR>
<TR>
<TD> <A HREF="#-height">-height</A></TD>
<TD> <A HREF="#-hottrack">-hottrack</A></TD>
</TR>
<TR>
<TD> <A HREF="#-images">-images</A></TD>
<TD> <A HREF="#-listboxwidth">-listboxwidth</A></TD>
</TR>
<TR>
<TD> <A HREF="#-modifycmd">-modifycmd</A></TD>
<TD> <A HREF="#-postcommand">-postcommand</A></TD>
</TR>
<TR>
<TD> <A HREF="#-values">-values</A></TD>
</TR>
</TABLE></DD>
</DL>
<DL>
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
<DD><I>pathName</I> <A HREF="#bind"><B>bind</B></A>
?<I>arg...</I>?
</DD>
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
<I>option</I>
</DD>
<DD><I>pathName</I> <A HREF="#clearvalue"><B>clearvalue</B></A>
</DD>
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
</DD>
<DD><I>pathName</I> <A HREF="#get"><B>get</B></A></DD>
<DD><I>pathName</I> <A HREF="#getentry"><B>getentry</B></A></DD>
<DD><I>pathName</I> <A HREF="#getlistbox"><B>getlistbox</B></A></DD>
<DD><I>pathName</I> <A HREF="#getvalue"><B>getvalue</B></A></DD>
<DD><I>pathName</I> <A HREF="#icursor"><B>icursor</B></A>
<I>index</I>
</DD>
<DD><I>pathName</I> <A HREF="#post"><B>post</B></A></DD>
<DD><I>pathName</I> <A HREF="#setvalue"><B>setvalue</B></A>
<I>index</I>
</DD>
<DD><I>pathName</I> <A HREF="#unpost"><B>unpost</B></A></DD>
</DL>
<BR><HR WIDTH="100%"><BR>
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
<P>
ComboBox widget enables the user to select a value among a list given by
the <B>values</B> option. The list of possible values can be popped by
pressing the ArrowButton or by clicking in the entry when <B>editable</B>
value of the ComboBox is <B>false</B>.<BR> If <B>editable</B> value of the
ComboBox is <B>true</B> and the entry has the focus, the user can press the
top and bottom arrow keys to modify its value. If the current value exactly
match a value in the list, then the previous (for top arrow key) or then
next (for bottom arrow key) value in the list is displayed. If the current
value match the beginning of a value in the list, then this value is
displayed. If the current value doesnt match anything, then the first
value is displayed.
</P>
<BR><HR WIDTH="50%"><BR>
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
<DL>
<DT><A NAME="-autocomplete"><B>-autocomplete</B></A></DT>
<DD>
Specifies whether or not the combobox should attempt to auto-complete
the value in the entry field as the user types. If true, the combobox
will fill in a value that it finds in its value list as the user types
into the entry.
</DD>
</DL>
<DL>
<DT><A NAME="-autopost"><B>-autopost</B></A></DT>
<DD>
Specifies whether or not the combobox should post the drop down as
the user types. If true, the combobox will post and scroll to the
entry that most closely matches the user entry.
</DD>
</DL>
<DL>
<DT><A NAME="-bwlistbox"><B>-bwlistbox</B></A></DT>
<DD>
Specifies that the combobox should use a BWidget listbox in its drop
down instead of the standard Tk option. This option is enabled by
default if the <b>-images</b> option is not empty.
</DD>
</DL>
<DL><DT><A NAME="-expand"><B>-expand</B></A></DT>
<DD>
Specifies the value expansion behavior for the window. It must be
<B>none</B> (default) or <B>tab</B>. If <B>tab</B> is specified, then
a Tab binding is added to attempt to expand the current value based on
the other values in <B>-values</B>.
</DD>
</DL>
<DL><DT><A NAME="-height"><B>-height</B></A></DT>
<DD>
Specifies the desired height for the window, in lines. If zero or less,
then the desired height for the window is made just large enough to hold
all the elements in the listbox.
</DD>
<DL>
<DT><A NAME="-hottrack"><B>-hottrack</B></A></DT>
<DD>
The selection in the drop down listbox will follow the mouse cursor
as it moves.
</DD>
</DL>
<DL>
<DT><A NAME="-images"><B>-images</B></A></DT>
<DD>
A list of images that correspond to the <b>-values</b> option. Each
image will be drawn next to its value in the drop down. This option
enables the <b>-bwlistbox</b> by default as it is needed to display
images.
</DD>
</DL>
<DL>
<DT><A NAME="-listboxwidth"><B>-listboxwidth</B></A></DT>
<DD>
Specifies the width of the listbox in the drop down. Defaults to the
same size as the combobox.
</DD>
</DL>
</DL>
<DL><DT><A NAME="-modifycmd"><B>-modifycmd</B></A></DT>
<DD>
Specifies a Tcl command called when the user modify the value of the ComboBox by selecting it in the listbox or pressing arrow key.
</DD>
</DL>
<DL><DT><A NAME="-postcommand"><B>-postcommand</B></A></DT>
<DD>
Specifies a Tcl command called before the listbox of the ComboBox is mapped.
</DD>
</DL>
<DL><DT><A NAME="-values"><B>-values</B></A></DT>
<DD>
Specifies the values to display in the listbox of the ComboBox.
</DD>
</DL>
<HR WIDTH="50%"><BR>
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
<DL><DT><A NAME="bind"><I>pathName</I> <B>bind</B></A>
?<I>arg...</I>?
</DT><DD>
Set bindings on the entry widget.
</DD></DL>
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
<I>option</I>
</DT><DD>
Returns the current value of the configuration option given by <I>option</I>.
<I>Option</I> may have any of the values accepted by the creation command.
</DD></DL>
<DL><DT><A NAME="clearvalue"><I>pathName</I> <B>clearvalue</B></A>
</DT><DD>
Clears the current text of the ComboBox.
</DD></DL>
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
</DT><DD>
Query or modify the configuration options of the widget. If no
<I>option</I> is specified, returns a list describing all of the available
options for <I>pathName</I>. If <I>option</I> is specified with no
<I>value</I>, then the command returns a list describing the one named
<I>option</I> (this list will be identical to the corresponding sublist of
the value returned if no <I>option</I> is specified). If one or more
<I>option-value</I> pairs are specified, then the command modifies the
given widget option(s) to have the given value(s); in this case the command
returns an empty string. <I>Option</I> may have any of the values accepted
by the creation command. Read-only options are not be modified.
</DD></DL>
<DL><DT><A NAME="get"><I>pathName</I> <B>get</B></A>
</DT><DD>
Returns the current contents of the entry.
</DD></DL>
<DL><DT><A NAME="getentry"><I>pathName</I> <B>getentry</B></A>
</DT><DD>
Returns the path to the contained entry widget.
</DD></DL>
<DL><DT><A NAME="getlistbox"><I>pathName</I> <B>getlistbox</B></A>
</DT><DD>
Returns the path to the listbox in the drop down.
</DD></DL>
<DL><DT><A NAME="getvalue"><I>pathName</I> <B>getvalue</B></A>
</DT><DD>
Returns the index of the current text of the ComboBox in the list of values,
or -1 if it doesn't match any value.
</DD></DL>
<DL><DT><A NAME="icursor"><I>pathName</I> <B>icursor</B></A>
<I>index</I>
</DT><DD>
Arrange for the insertion cursor to be displayed just before the
character given by <i>index</i>. Returns an empty string.
</DD></DL>
<DL><DT><A NAME="post"><I>pathName</I> <B>post</B></A>
</DT><DD>
Post the drop down.
</DD></DL>
<DL><DT><A NAME="setvalue"><I>pathName</I> <B>setvalue</B></A>
<I>index</I>
</DT><DD>
Set the text of the ComboBox to the value indicated by <I>index</I> in the list of values.
<I>index</I> may be specified in any of the following forms:
<P>
<DL COMPACT>
<DT>
<B>last</B>
<DD>
Specifies the last element of the list of values.
<DT><B>first</B>
<DD>
Specifies the first element of the list of values.
<DT>
<B>next</B>
<DD>
Specifies the element following the current (ie returned by <B>getvalue</B>) in the list
of values.
<DT><B>previous</B>
<DD>
Specifies the element preceding the current (ie returned by <B>getvalue</B>) in the list
of values.
<DT>
@<I>number</I>
<DD>
Specifies the integer index in the list of values.
</DL>
</DD></DL>
<DL><DT><A NAME="unpost"><I>pathName</I> <B>unpost</B></A>
</DT><DD>
Unpost the drop down.
</DD></DL>
<HR><BR><B>BINDINGS</B><BR><BR>
When Entry of the ComboBox has the input focus, it has the following bindings, in addition
to the default Entry bindings:
<UL>
<LI>Page up set the value of the ComboBox to the first value.
<LI>Page down set the value of the ComboBox to the last value.
<LI>Arrow up set the value of the ComboBox to the previous value.
<LI>Arrow down set the value of the ComboBox to the next value.
<LI>If <B>-autopost</B> is enabled, Escape unposts the listbox.
</UL>
If the listbox is not mapped and ComboBox is not editable or disabled,
mouse button 1 on the Entry cause the listbox to popup, as if the user press the ArrowButton.
</BODY></HTML>
|