ttk::scrollbar set
Sets the visible part that the thumb shows.
PATHNAME set FIRST LAST
Description
FIRST and LAST are fractions from 0 to 1: the start and the end of the visible part of the other widget. A value below 0 is 0, a value above 1 is 1, and a LAST below FIRST is FIRST. The scroll command of the other widget calls set.
Returns
An empty string.
Examples
% ttk::scrollbar .tsrse
> .tsrse set 0.2 0.5
> .tsrse get
0.2 0.5
% ttk::scrollbar .tsrse2
> .tsrse2 set -1 2
> .tsrse2 get
0.0 1.0
Errors
% ttk::scrollbar .tsrse3; .tsrse3 set a b
expected floating-point number but got "a"
-errorcode NONE
% ttk::scrollbar .tsrse4; .tsrse4 set 1
wrong # args: should be ".tsrse4 set first last"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1