home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / lib / combobox-2.3 / combobox.tmml < prev    next >
Encoding:
Text File  |  2003-09-30  |  21.8 KB  |  822 lines

  1. <!-- Generated from combobox.man by tcllib/doctools/mpexpand with fmt.tmml -->
  2. <manpage id='combobox' cat='cmd' title='combobox' version='2.3' package='combobox'>
  3. <namesection>
  4. <name>combobox</name>
  5. <desc>Combobox Megawidget</desc>
  6.  
  7. </namesection>
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. <synopsis>
  15. <syntax>
  16. package require combobox 2.3 
  17. combobox::combobox <m>pathName</m> <o>options</o> 
  18. </syntax>
  19. </synopsis>
  20. <section>
  21. <title>DESCRIPTION</title>
  22.  
  23. This package provides a new widget named "combobox" which combines an
  24. entry widget and a dropdown menu into a single widget.
  25.  
  26. </section>
  27. <section id='standardoptions'>
  28. <title>STANDARD OPTIONS</title>
  29.  
  30. -background
  31. -borderwidth
  32. -cursor
  33. -font
  34. -foreground
  35. -height
  36. -highlightthickness
  37. -highlightbackground
  38. -highlightcolor
  39. -maxheight
  40. -relief
  41. -selectbackground
  42. -selectborderwidth
  43. -selectforeground
  44. -state
  45. -textvariable
  46. -xscrollcommand
  47.  
  48.  
  49. <p>
  50.  
  51. See the options manual entry for detailed descriptions of the above options.
  52.  
  53. </p>
  54. </section>
  55. <section id='widgetspecificoptions'>
  56. <title>WIDGET-SPECIFIC OPTIONS</title>
  57.  
  58.  
  59. <optionlist>
  60.  
  61.  
  62. <optiondef>
  63. <name>-buttonbackground</name>
  64. <dbname>buttonBackground</dbname>
  65. <dbclass>ButtonBackground</dbclass>
  66. <desc>
  67.  
  68. Defines the background color of the button used to activate the
  69. dropdown list.
  70.  
  71. </desc>
  72. </optiondef>
  73. <optiondef>
  74. <name>-command</name>
  75. <dbname>command</dbname>
  76. <dbclass>Command</dbclass>
  77. <desc>
  78.  
  79. Defines a command to be run whenver the user selects a value from the
  80. dropdown list box. If the combobox is editable, the command will also 
  81. be called whenever the user presses return or the widget loses the keyboard
  82. focus and the value has changed. The command will have two values 
  83. appended to it: the name of the window and the new value of the
  84. combobox. The value is considered to have changed if it differs from
  85. the value when the entry first gained focus, or since the last time
  86. the command was called.  
  87. <br/>
  88. It is important to note that if the combobox has an associated
  89. <m>-textvariable</m>, the command will not be called if the value of
  90. the variable is changed external to the combobox. 
  91.  
  92. </desc>
  93. </optiondef>
  94. <optiondef>
  95. <name>-commandstate</name>
  96. <dbname>commandState</dbname>
  97. <dbclass>State</dbclass>
  98. <desc>
  99.  
  100. One of "normal" or "disabled". If set to "disabled", the value of 
  101. the B<-command> option will not be evaluated when the value of the
  102. combobox changes. 
  103.  
  104. </desc>
  105. </optiondef>
  106. <optiondef>
  107. <name>-disabledbackground</name>
  108. <dbname>disabledBackground</dbname>
  109. <dbclass>DisabledBackground</dbclass>
  110. <desc>
  111.  
  112. Defines the background color for the combobox when it is disabled.
  113.  
  114. </desc>
  115. </optiondef>
  116. <optiondef>
  117. <name>-disabledforeground</name>
  118. <dbname>disabledForeground</dbname>
  119. <dbclass>DisabledForeground</dbclass>
  120. <desc>
  121.  
  122. Defines the foreground color for the combobox when it is disabled.
  123.  
  124. </desc>
  125. </optiondef>
  126. <optiondef>
  127. <name>-dropdownwidth</name>
  128. <dbname>dropdownWidth</dbname>
  129. <dbclass>DropdownWidth</dbclass>
  130. <desc>
  131.  
  132. Defines the width of the dropdown list. If null or 0, the dropdown
  133. listbox width will be the same as the always-visible portion of the 
  134. combobox (ie: the entry and menubutton). Otherwise the value specifies
  135. the number of average-sized characters to display in the dropdown listbox.
  136.  
  137. </desc>
  138. </optiondef>
  139. <optiondef>
  140. <name>-editable</name>
  141. <dbname>editable</dbname>
  142. <dbclass>Editable</dbclass>
  143. <desc>. 
  144.  
  145. A boolean value which specifies whether the entry widget of the
  146. combobox can be typed in. If false, values may only be set by
  147. selecting them from the dropdown list.
  148.  
  149. </desc>
  150. </optiondef>
  151. <optiondef>
  152. <name>-elementborderwidth</name>
  153. <dbname>elementBorderWidth</dbname>
  154. <dbclass>BorderWidth</dbclass>
  155. <desc>
  156.  
  157. Specifies the width of borders drawn around the internal elements of
  158. the widget (the button and the scrollbars for the dropdown list).
  159.  
  160. </desc>
  161. </optiondef>
  162. <optiondef>
  163. <name>-height</name>
  164. <dbname>height</dbname>
  165. <dbclass>Height</dbclass>
  166. <desc>
  167.  
  168. Specifies the hight of the dropdown list, in number of lines. A value
  169. of zero will make the dropdown list just tall enough to hold all of
  170. the elements in the list. The height defaults to 10.
  171.  
  172. </desc>
  173. </optiondef>
  174. <optiondef>
  175. <name>-image</name>
  176. <dbname>image</dbname>
  177. <dbclass>Image</dbclass>
  178. <desc>
  179.  
  180. Defines an image to use on the button used to drop down the list. If
  181. it is not specified it defaults to a small black triangle.
  182.  
  183. </desc>
  184. </optiondef>
  185. <optiondef>
  186. <name>-listvar</name>
  187. <dbname>listVariable</dbname>
  188. <dbclass>ListVariable</dbclass>
  189. <desc> 
  190.  
  191. Specifies the name of a variable associated with the dropdown listbox.
  192. If the variable changes the listbox will automatically update itself
  193. to reflect the new value. Attempts to unset a variable in use as a
  194. listvar will fail but will not generate an error.
  195.  
  196. </desc>
  197. </optiondef>
  198. <optiondef>
  199. <name>-maxheight</name>
  200. <dbname>maxHeight</dbname>
  201. <dbclass>Height</dbclass>
  202. <desc>
  203.  
  204. Sets the maximum height of the dropdown list, in the event
  205. B<-height> is set to zero and there are a large number of items in the
  206. list. If this value is set to 0 (zero) the list will be as large as
  207. the total number of items in the list. The maxheight defaults to 10.
  208.  
  209. </desc>
  210. </optiondef>
  211. <optiondef>
  212. <name>-opencommand</name>
  213. <dbname>openCommand</dbname>
  214. <dbclass>Command</dbclass>
  215. <desc>
  216.  
  217. If this option is specified then it provides a Tcl command to
  218. execute each time the combobox is opened (eg: when the dropdown
  219. listbox is displayed). The command is invoked by the B<open> widget
  220. command before opening the combobox. 
  221.  
  222. </desc>
  223. </optiondef>
  224. <optiondef>
  225. <name>-value</name>
  226. <dbname>value</dbname>
  227. <dbclass>Value</dbclass>
  228. <desc>
  229.  
  230. Specifies the value for the combobox.
  231.  
  232. </desc>
  233. </optiondef>
  234. <optiondef>
  235. <name>-width</name>
  236. <dbname>width</dbname>
  237. <dbclass>Width</dbclass>
  238. <desc>
  239.  
  240. Specifies an integer value indicating the desired width of the
  241. combobox entry widget, in average size characters of the widget's
  242. font. If the value is less than or equal to zero, the widget picks a
  243. size large enough to hold its current text.
  244.  
  245. </desc>
  246. </optiondef>
  247.  
  248. </optionlist>
  249.  
  250. </section>
  251. <section id='overview'>
  252. <title>OVERVIEW</title>
  253.  
  254. The <cmd>combobox</cmd> command creates a new window (given by the 
  255. <m>pathName</m> argument) and makes it into a dropdown combobox
  256. widget. Additional options, described above, may be specified on the
  257. command line. Currently no option database support is provided. The
  258. <cmd>combobox</cmd> command returns its <emph>pathName</emph> arguument. At
  259. the time this command is invoked, there must not exists a window named
  260. <emph>pathName</emph>, but <emph>pathName's</emph> parent must exist.
  261.  
  262.  
  263. <p>
  264.  
  265. A combobox is a widget that displays a one-line text string, and
  266. allows that string to be edited or selected from a dropdown list. When
  267. first created a combobox's value is the null string unless a variable
  268. is associated with the widget using the <m>-textvariable</m> option, in
  269. which case it will be the value stored in the associated variable.
  270.  
  271. </p>
  272. <p>
  273.  
  274. The combobox entry wiget is capable of displaying strings that are too
  275. long to fit entirely within the widget's window. In this case only a
  276. portion of the string will be displayed; commands described below may
  277. be used to change the view in the window. Comboboxes use the standard
  278. -xscrollcommand mechanism for interacting with scrollbars (see
  279. the description of the -xscrollcommand option for
  280. details). They also support scanning, as described below.
  281.  
  282. </p>
  283. </section>
  284. <section id='widgetcommand'>
  285. <title>WIDGET COMMAND</title>
  286.  
  287. The <cmd>combobox</cmd> command creates a new Tcl command whose name is
  288. <m>pathName</m>. This command may be used to invoke various operations on
  289. the widget. It has the following general form:
  290.  
  291.  
  292. <example>
  293.     <m>pathName</m> option <o>arg arg ...</o>
  294.  
  295. </example>
  296.  
  297. <emph>option</emph> and the <emph>arg</emph>s determine the exact behavior of the command.
  298.  
  299.  
  300. <p>
  301.  
  302. Many of the widget commands take one or more indicies as
  303. arguments. For <emph>list</emph> commands the indicies may take one of the forms
  304. acceptable to the standard listbox command. For all other commands
  305. the indicies may take the form of an indicie for a standard entry
  306. widget. See the appropriate man pages for more information.
  307.  
  308. </p>
  309. <p>
  310.  
  311. The following commands are possible for combobox widgets:
  312.  
  313. </p>
  314. <p>
  315.  
  316. </p>
  317. <dl>
  318.  
  319.  
  320. <dle>
  321. <dt><m>pathName</m> <emph>bbox</emph> <emph>index</emph></dt>
  322. <dd>
  323.  
  324. Returns a list of four numbers describing the bounding box of the
  325. characters given by <emph>index</emph>. The first two elements of the list give
  326. the x and y coordinates of the upper-left corner of the screen area
  327. covered by the character (in pixels relative to the widget) and the
  328. last two elements give the width and height of the character, in
  329. pixels. The bounding box may refer to a region outside the visible
  330. area of the window.  
  331.  
  332. </dd>
  333. </dle>
  334. <dle>
  335. <dt><m>pathName</m> <emph>cget</emph> <emph>option</emph></dt>
  336. <dd>
  337.  
  338. Returns the current value for the configuration option give 
  339. by <emph>option</emph>. <emph>Option</emph> may have any of the values accepted by 
  340. the <cmd>combobox</cmd> command.
  341.  
  342. </dd>
  343. </dle>
  344. <dle>
  345. <dt><m>pathName</m> <emph>close</emph></dt>
  346. <dd>
  347.  
  348. Causes the dropdown listbox of the widget to be withdrawn if it is
  349. currently displayed.  
  350.  
  351. </dd>
  352. </dle>
  353. <dle>
  354. <dt><m>pathName</m> <emph>configure</emph> <emph>option</emph></dt>
  355. <dd>
  356.  
  357. Query or modify the configuration options of the widget. If no option
  358. is specified, returns a list describing all of the available options
  359. for pathName, though not in the same format as describe in
  360. Tk_ConfigureInfo. The format will be a list, where each element will
  361. be a list of two values: an option name and the current value.
  362.  
  363. <br/>
  364.  
  365. If <emph>option</emph> is specified with no value, then the command
  366. returns a list describing the one named <emph>option</emph>. This list will be
  367. identical to the corresponding sublist of the value returned if no
  368. <emph>option</emph> is specified.  If one or more option-value pairs are
  369. specified, then the command modifies the given widget <emph>option</emph>(s) to
  370. have the given value(s);  in this case the command returns an empty
  371. string. <emph>Option</emph> may have any of the values accepted by the entry
  372. command. 
  373.  
  374. </dd>
  375. </dle>
  376. <dle>
  377. <dt><m>pathName</m> <emph>curselection</emph></dt>
  378. <dd>
  379.  
  380. Returns the index of the dropdown list item that matches the value
  381. of the combobox, or -1 if the combobox is editable and the string
  382. doesn't match a value in the list.  
  383.  
  384. </dd>
  385. </dle>
  386. <dle>
  387. <dt><m>pathName</m> <emph>delete</emph> <emph>first</emph> <o>last</o></dt>
  388. <dd>
  389.  
  390. Delete one or more elements from the combobox entry widget. <emph>First</emph>
  391. is the index of the first character to delete, and <emph>last</emph> is the index
  392. of the character just after the last one to delete. If <emph>last</emph> isn't
  393. specified it defaults to <emph>first</emph>+1, i.e. a single character is
  394. deleted. This command returns an empty string.  
  395.  
  396. </dd>
  397. </dle>
  398. <dle>
  399. <dt><m>pathName</m> <emph>get</emph></dt>
  400. <dd>
  401.  
  402. Returns the combobox's string.
  403.  
  404. </dd>
  405. </dle>
  406. <dle>
  407. <dt><m>pathName</m> <emph>icursor</emph> <emph>index</emph></dt>
  408. <dd>
  409.  
  410. Arrange for the insertion cursor to be displayed just before the
  411. character given by <emph>index</emph>. Returns an empty string.
  412.  
  413. </dd>
  414. </dle>
  415. <dle>
  416. <dt><m>pathName</m> <emph>index</emph> <emph>index</emph></dt>
  417. <dd>
  418.  
  419. Returns the numerical index corresponding to <emph>index</emph>
  420.  
  421. </dd>
  422. </dle>
  423. <dle>
  424. <dt><m>pathName</m> <emph>insert</emph> <emph>index</emph> <emph>string</emph></dt>
  425. <dd>
  426.  
  427. Insert the characters of <emph>string</emph> just before the character indicated
  428. by <emph>index</emph>. Returns an empty string.
  429.  
  430. </dd>
  431. </dle>
  432. <dle>
  433. <dt><m>pathName</m> <emph>list</emph> <emph>option</emph> <emph>args</emph></dt>
  434. <dd>
  435.  
  436. This command is used to manipulate the items in the dropdown
  437. list. It has several forms, depending on <emph>option</emph>:
  438.  
  439.  
  440. <dl>
  441.  
  442.  
  443. <dle>
  444. <dt><emph>list</emph> <emph>delete</emph> <emph>first</emph> <o>last</o></dt>
  445. <dd>
  446.  
  447. Deletes one or more elements of the dropdown list.  First and last are
  448. indices specifying the first and last elements in the range to delete.
  449. If last isn't specified it defaults to first, i.e. a single element is
  450. deleted.  
  451.  
  452. </dd>
  453. </dle>
  454. <dle>
  455. <dt><emph>list</emph>  <emph>get</emph> <emph>first</emph> <o>last</o></dt>
  456. <dd>
  457.  
  458. If last is omitted, returns the contents of the dropdown list element
  459. indicated by first, or an empty string if first refers to a
  460. non-existent element. If last is specified, the command returns a list
  461. whose elements are all of the dropdown list elements between first and last,
  462. inclusive. Both first and last may have any of the standard forms for
  463. indices. 
  464.  
  465. </dd>
  466. </dle>
  467. <dle>
  468. <dt><emph>list</emph> <emph>index</emph> <emph>index</emph></dt>
  469. <dd>
  470.  
  471. Returns the integer index value that corresponds to index. If index is
  472. end the return value is a count of the number of elements in the
  473. dropdown list (not the index of the last element). 
  474.  
  475. </dd>
  476. </dle>
  477. <dle>
  478. <dt><emph>list</emph> <emph>insert</emph> <emph>index</emph>  <o>element element ...</o></dt>
  479. <dd>
  480.  
  481. Inserts zero or more new elements in the list just before the element
  482. given by index.  If index is specified as end then the new elements
  483. are added to the end of the list.  Returns an empty string.  
  484.  
  485. </dd>
  486. </dle>
  487. <dle>
  488. <dt><emph>list</emph> <emph>size</emph></dt>
  489. <dd>
  490.  
  491. Returns a decimal string indicating the total number of elements in
  492. the dropdown list.  <br/>
  493.  
  494. </dd>
  495. </dle>
  496.  
  497. </dl>
  498.  
  499. </dd>
  500. </dle>
  501. <dle>
  502. <dt><m>pathName</m> <emph>open</emph></dt>
  503. <dd>
  504.  
  505. Causes the dropdown listbox of the combobox to be displayed if it 
  506. is currently hidden.
  507.  
  508. </dd>
  509. </dle>
  510. <dle>
  511. <dt><m>pathName</m> <emph>scan</emph> <emph>option</emph> <emph>args</emph></dt>
  512. <dd>
  513.  
  514. This command is used to implement scanning on the combobox entry
  515. widget.  It has two forms, depending on option:  
  516.  
  517.  
  518. <dl>
  519.  
  520.  
  521. <dle>
  522. <dt><m>pathName</m> <emph>scan mark</emph> <emph>x</emph></dt>
  523. <dd>
  524.  
  525. Records x and the current view in the entry window;  used in
  526. conjunction with later <emph>scan dragto</emph> commands.  Typically this
  527. command is associated with a mouse button press in the widget.  It
  528. returns an empty string.  
  529.  
  530. </dd>
  531. </dle>
  532. <dle>
  533. <dt><m>pathName</m> <emph>scan dragto</emph> <emph>x</emph></dt>
  534. <dd>
  535.  
  536. This command computes the difference between its <emph>x</emph> argument 
  537. and the <emph>x</emph> argument to the last <emph>scan mark</emph>  command 
  538. for the widget.  It then adjusts the view left or right by 10 times 
  539. the difference in x-coordinates.  This command is typically associated
  540. with mouse motion events in the widget, to produce the effect of 
  541. dragging the entry at high speed through the window.  The return 
  542. value is an empty string.   <br/>
  543.  
  544. </dd>
  545. </dle>
  546.  
  547. </dl>
  548.  
  549. </dd>
  550. </dle>
  551. <dle>
  552. <dt><m>pathName</m> <emph>select</emph> <emph>index</emph></dt>
  553. <dd>
  554.  
  555. Selects the item in the dropdown list represented by <emph>index</emph> and
  556. makes that the current value of the combobox.
  557.  
  558. </dd>
  559. </dle>
  560. <dle>
  561. <dt><m>pathName</m> <emph>selection</emph> <emph>option</emph> <emph>arg</emph></dt>
  562. <dd>
  563.  
  564. This command is used to adjus the selection within the editable
  565. portion of the combobox. It has several forms, depending on 
  566. <emph>option</emph>:
  567.  
  568.  
  569. <dl>
  570.  
  571.  
  572. <dle>
  573. <dt><m>pathName</m> <emph>selection</emph> <emph>adjust</emph> <m>index</m></dt>
  574. <dd>
  575.  
  576. Locate the end of the selection nearest to the character given by
  577. <m>idnex</m> (i.e. including but not going beyond <m>index</m>). The
  578. other end of the selection is made the anchor point for future
  579. <emph>select to</emph> commands. If the selection isn't currently in
  580. the editable portion of the combobox, then a new selection is created
  581. to include the characters between <m>index</m> and the most recent
  582. selection anchor point, inclusive. Returns an empty string.
  583.  
  584. </dd>
  585. </dle>
  586. <dle>
  587. <dt><m>pathName</m> <emph>selection</emph> <emph>clear</emph></dt>
  588. <dd>
  589.  
  590. Clear the selection if it is currently in this widget. If the
  591. selection isn't in this widget then the command has no
  592. effect. Returns an empty string.
  593.  
  594. </dd>
  595. </dle>
  596. <dle>
  597. <dt><m>pathname</m> <emph>selection</emph> <emph>from</emph> <m>index</m></dt>
  598. <dd>
  599.  
  600. Set the selection anchor point to just before the character given by
  601. <m>index</m>. Doesn't change the selection. Returns an empty string.
  602.  
  603. </dd>
  604. </dle>
  605. <dle>
  606. <dt><m>pathname</m> <emph>selection</emph> <emph>parent</emph></dt>
  607. <dd>
  608.  
  609. Returns 1 if there are characters selected in the editable portion of
  610. the combobox, otherwise it returns 0.
  611.  
  612. </dd>
  613. </dle>
  614. <dle>
  615. <dt><m>pathname</m> <emph>selection</emph> <emph>range</emph> <m>start</m> <m>end</m></dt>
  616. <dd>
  617.  
  618. Sets the selection to include the characters starting with the one
  619. indexed by <m>start</m> and ending with the one just before <m>end</m>. 
  620. If <m>end</m> refers to the same character as <m>start</m> or an
  621. earlier one, then the selection is cleared.
  622.  
  623. </dd>
  624. </dle>
  625. <dle>
  626. <dt><m>pathname</m> <emph>selection</emph> <emph>to</emph> <m>index</m></dt>
  627. <dd>
  628.  
  629. If <m>index</m> is before the anchor point, set the selection to the
  630. characters from <m>index</m> up to but not including the anchor
  631. point. If <m>index</m> is the same as the anchor point, do nothing. If 
  632. <m>index</m> is after the anchor point, set the selection to the
  633. characters from the anchor point up to but not including <m>index</m>. 
  634. The anchor point is determined by the most recent <emph>select from</emph> 
  635. or <emph>select adjust</emph> command in this widget. If the selection
  636. isn't in this widget then a new selection is created using the most
  637. recent anchor point specified for the widget. Returns an empty string.
  638. <br/>
  639.  
  640. </dd>
  641. </dle>
  642.  
  643. </dl>
  644.  
  645. </dd>
  646. </dle>
  647. <dle>
  648. <dt><m>pathName</m> <emph>subwidget</emph> <o>name</o></dt>
  649. <dd>
  650.  
  651. This command returns a list of internal widget names if given no
  652. arguments, or returns the internal widget path for the widget identified
  653. by <emph>name</emph>. 
  654.  
  655. </dd>
  656. </dle>
  657. <dle>
  658. <dt><m>pathName</m> <emph>xview</emph> <emph>args</emph></dt>
  659. <dd>
  660.  
  661. This command is used to query and change the horizontal position of
  662. the text in the widget's window.  It can take any of the following
  663. forms:
  664.  
  665.  
  666. <dl>
  667.  
  668.  
  669. <dle>
  670. <dt><m>pathName</m> <emph>xview</emph></dt>
  671. <dd>
  672.  
  673. Returns a list containing two elements. Each element is a real
  674. fraction between 0 and 1;  together they describe the horizontal span
  675. that is visible in the window. For example, if the first element is .2
  676. and the second element is .6, 20% of the entry's text is off-screen to
  677. the left, the middle 40% is visible in the window, and 40% of the text
  678. is off-screen to the right. These are the same values passed to
  679. scrollbars via the <m>-xscrollcommand</m> option. 
  680.  
  681. </dd>
  682. </dle>
  683. <dle>
  684. <dt><m>pathName</m> <emph>xview</emph> <emph>index</emph></dt>
  685. <dd>
  686.  
  687. Adjusts the view in the window so that the character given by <emph>index</emph> is
  688. displayed at the left edge of the window.
  689.  
  690. </dd>
  691. </dle>
  692. <dle>
  693. <dt><m>pathName</m> <emph>xview</emph> <emph>moveto</emph> <emph>fraction</emph></dt>
  694. <dd>
  695.  
  696. Adjusts the view in the window so that the character <emph>fraction</emph> of the
  697. way through the text appears at the left edge of the window. <emph>Fraction</emph>
  698. must be a fraction between 0 and 1.
  699.  
  700. </dd>
  701. </dle>
  702. <dle>
  703. <dt><m>pathName</m> <emph>xview</emph> <emph>scroll</emph> <emph>number</emph></dt>
  704. <dd>
  705. <emph>what</emph>
  706.  
  707. This command shifts the view in the window left or right according to
  708. <emph>number</emph> and <emph>what</emph>. <emph>Number</emph> must be an integer. 
  709. <emph>What</emph> must be
  710. either units or pages or an abbreviation of one of these. If <emph>what</emph>
  711. is units, the view adjusts left or right by number average-width
  712. characters on the display;  if it is pages then the view adjusts by
  713. number screenfuls. If <emph>number</emph> is negative then characters farther to
  714. the left become visible;  if it is positive then characters farther to
  715. the right become visible.   
  716.  
  717. </dd>
  718. </dle>
  719.  
  720. </dl>
  721.  
  722. </dd>
  723. </dle>
  724.  
  725. </dl>
  726.  
  727. </section>
  728. <section id='defaultbindings'>
  729. <title> DEFAULT BINDINGS</title>
  730.  
  731. Bindings in the entry widget of the combobox are the same as for
  732. normal entry widgets, with the following exceptions:
  733.  
  734.  
  735. <p>
  736.  
  737. Double-clicking mouse button 1 over the entry widget will display the
  738. dropdown list if it is not displayed, and hide it if it is. The value
  739. of the combobox won't change.
  740.  
  741. </p>
  742. <p>
  743.  
  744. If <m>-editable</m> is set to false, single-clicking mouse button 1
  745. over the entry widget will display the dropdown list if it is not
  746. displayed, and hide it if it is. The value of the combobox won't change.
  747.  
  748. </p>
  749. <p>
  750.  
  751. Pressing the Up, Down, Next and Prior buttons (up arrow, down arrow,
  752. page up and page down, respectively) will display the dropdown list if
  753. it is not displayed. If it is displayed, these buttons will change the
  754. current selection on the list.
  755.  
  756. </p>
  757. <p>
  758.  
  759. If <m>-editable</m> is true, pressing the Return or Tab key will set the
  760. value to the string in the entry widget. If the list is
  761. displayed and an item is selected, Return will set the value of the
  762. combobox to the selected item.
  763.  
  764. </p>
  765. <p>
  766.  
  767. If <m>-editable</m> is false, pressing the Return key when the list is 
  768. displayed will result in the value of the combobox changing to the
  769. currently highlighted item in the list. The list will be closed.
  770.  
  771. </p>
  772. <p>
  773.  
  774. Pressing the escape key when the list is displayed will result in the
  775. list being closed with the value of the combobox remaining unchanged.
  776.  
  777. </p>
  778. <p>
  779.  
  780. Clicking the mouse button over an element in the dropdown list will
  781. cause the clicked-on item to be the new value of the combobox, and the
  782. list will be closed.
  783.  
  784. </p>
  785. <p>
  786.  
  787. If the combobox is disabled using the <m>-state</m> option, then the entry
  788. widget's view can still be adjusted and text in the entry can be
  789. selected, but no insertion cursor will be displayed, no text
  790. modification will be possible, and the list cannot be displayed.
  791.  
  792. </p>
  793. </section>
  794. <section id='bugs'>
  795. <title>BUGS</title>
  796.  
  797. With some window managers it may be possible to move the window that
  798. contains the combobox while the dropdown list is visible. In such a
  799. case the dropdown list will stay where it originally appeared. Well
  800. behaved window managers shouldn't let you move the window while the
  801. list is displayed.
  802.  
  803.  
  804. <p>
  805.  
  806. It has been reported that with some virtual window managers, switching
  807. to a new virtual window while the dropdown list is visible will result
  808. in the dropdown list appearing by itself in the new virtual window. 
  809.  
  810. </p>
  811. <p>
  812.  
  813. So the lesson here is: don't dork with your windows while the dropdown
  814. list is visible. That, or get a better window manager. 
  815.  
  816. </p>
  817. </section>
  818.  
  819.  
  820.  
  821. </manpage>
  822.