Hi Everyone,
In my original post I wondered why the scrollbars attached to a
multicolumn listbox didn't work. After digging into the code, it
appears that the problem lies in
namespace eval ::mclistbox {
proc {::mclistbox::UpdateScrollbars} {w} {
...
eval $options(-xscrollcommand) $xview
...
}
There's one eval each for x and y scrolling. The problem is that
$options(-xscrollcommand) is defined with an alias by me in the vtcl
Attributes window during the design stage. The $options() variable
evaluates to '$widget(XScroll_1) xview' but the $widget() is unknown
because it's out of scope.
The fix was to add 'global widget' just after the proc statement and
everything works fine.
FYI.
-
Chris Bennett <[EMAIL PROTECTED]>
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user