Hi All,
Has anybody figured out how to make scrollbars work with the multicolumn
listbox widget? Specifically, the xview option seems to be broken.
I think the respective scrollbar commands are correct, eg something like
$widget(xscroll_1) -command {$widget(mclist_1) xview}
$widget(mclist_1) -xscrollcommand {$widget(mclist_1) set}
The mclistbox is built after reading in data from a file and should be
displayed in a spreadsheet format. The number of columns is greater
than will display in the window, so the scrollbar should allow me to
see the stuff off the right side.
The problem is that I get the following error message:
Error: unknown option "-1": must be moveto or scroll
Checking the mclistbox source in proc {::mclistbox::WidgetProc}
reveals the following:
# here we go. Error checking be damned!
switch $command {
xview {
# note that at present, "xview <index>" is broken. I'm
# not even sure how to do it. Unless I attach our hidden
# listbox to the scrollbar and use it. Hmmm..... I'll
# try that later. (FIXME)
set result [eval {$widgets(text)} xview $args]
InvalidateScrollbars $w
}
....
Does this mean I have to figure out my own workaround?
-
Chris Bennett <[EMAIL PROTECTED]>
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user