package require twoAutosb ?1.0? two_autosb pathname ?options?
two_autosb command creates a new window which is virtually
the same as a normal Tk scrollbar widget. The main difference is that an
two_autosb widget is only visible when it is really needed: it automatically
disappears whenever there is nothing to be scrolled.
two_autosb thus helps
saving space within the GUI.
TwoAutoSb).
There are cases where the auto scrollbar does not appear or disappear when it should. The basic problem with automatically hiding a scrollbar is that this action usually changes the viewable area of the scrolled widget. This might in turn change the need for a scrollbar - without any protection, the show/hide would loop forever. Unfortunately, this protection against looping sometimes prevents scrollbar visibility.