8
8
# (The following is the original description of the library.)
10
# This package allows scrollbars to be mapped and unmapped as needed
11
# depending on the size and content of the scrollbars scrolled widget.
12
# The scrollbar must be managed by either pack or grid, other geometry
10
# This package allows scrollbars to be mapped and unmapped as needed
11
# depending on the size and content of the scrollbars scrolled widget.
12
# The scrollbar must be managed by either pack or grid, other geometry
13
13
# managers are not supported.
15
# When managed by pack, any geometry changes made in the scrollbars parent
16
# between the time a scrollbar is unmapped, and when it is mapped will be
17
# lost. It is an error to destroy any of the scrollbars siblings while the
18
# scrollbar is unmapped. When managed by grid, if anything becomes gridded
19
# in the same row and column the scrollbar occupied it will be replaced by
15
# When managed by pack, any geometry changes made in the scrollbars parent
16
# between the time a scrollbar is unmapped, and when it is mapped will be
17
# lost. It is an error to destroy any of the scrollbars siblings while the
18
# scrollbar is unmapped. When managed by grid, if anything becomes gridded
19
# in the same row and column the scrollbar occupied it will be replaced by
20
20
# the scrollbar when remapped.
22
# This package may be used on any scrollbar-like widget as long as it
23
# supports the set subcommand in the same style as scrollbar. If the set
22
# This package may be used on any scrollbar-like widget as long as it
23
# supports the set subcommand in the same style as scrollbar. If the set
24
24
# subcommand is not used then this package will have no effect.
111
111
class Tk::Scrollbar
113
# Arranges for the already existing scrollbar to be mapped
113
# Arranges for the already existing scrollbar to be mapped
114
114
# and unmapped as needed.
115
115
#tk_call_without_enc('::autoscroll::autoscroll', @path)
116
116
Tk::Tcllib::Autoscroll.autoscroll(self)
120
# Returns the scrollbar to its original static state.
120
# Returns the scrollbar to its original static state.
121
121
#tk_call_without_enc('::autoscroll::unautoscroll', @path)
122
122
Tk::Tcllib::Autoscroll.unautoscroll(self)