selecting only one element of a listbox 
Author Message
 selecting only one element of a listbox

        The Tk man page for the listbox widget says "[...] the
procedure tk_listboxSingleSelect may be invoked to change
listbox behavior so that only a single element may be selected
at once."  Unfortunately, that symbol does not seem to be defined
in the tk C library, and grepping through all of the .c and .h files
in the Tk, Tcl and extended Tcl sources turns up nothing that
matches "SingleSelect."  I would prefer to access this functionality
through wish rather than through C.  Is there some option that I
can give to the listbox widget to only allow one item to be selected
at any time?

--
Adam J. Richter                             Yggdrasil Computing, Incorporated
409 Evelyn Ave., Apt. 312, Albany CA 94706  PO Box 8418, Berkeley CA 94707-8418
(510) 528-3209                              (510) 526-7531, fax: (510) 528-8508




Sun, 04 Feb 1996 10:14:14 GMT  
 selecting only one element of a listbox

Quote:
>    The Tk man page for the listbox widget says "[...] the
>procedure tk_listboxSingleSelect may be invoked to change
>listbox behavior so that only a single element may be selected
>at once."  Unfortunately, that symbol does not seem to be defined
>in the tk C library, and grepping through all of the .c and .h files
>in the Tk, Tcl and extended Tcl sources turns up nothing that
>matches "SingleSelect."  I would prefer to access this functionality
>through wish rather than through C.  Is there some option that I
>can give to the listbox widget to only allow one item to be selected
>at any time?
>--
>Adam J. Richter                                 Yggdrasil Computing, Incorporated
>409 Evelyn Ave., Apt. 312, Albany CA 94706  PO Box 8418, Berkeley CA 94707-8418
>(510) 528-3209                                  (510) 526-7531, fax: (510) 528-8508



The function is in /usr/local/lib/tk/listbox.tcl or where you keep your tk-files.

/Peppar



Sun, 04 Feb 1996 18:02:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Selecting more than one element in a listbox

2. How to determine selected listbox elements?

3. Selecting More Than One Line In a Listbox

4. select in more than one listbox

5. returning list elements one by one

6. More than one listbox on one file in same window

7. how to select from a multicolumn listbox and display the individual elements of a selected array?

8. print select elements from array

9. Return of selected element in listcontrol

10. Array selecting elements

11. Selecting elements of an array using property nodes

12. How to select array elements?

 

 
Powered by phpBB® Forum Software