ttk::scrollbar delta
Gives the change of the fraction for a move of the thumb by some pixels.
PATHNAME delta DX DY
Description
Gives the change of FIRST that a move of the thumb by DX pixels (horizontal) or DY pixels (vertical) makes. The scrollbar must be on the screen for a useful result.
Returns
A fraction.
Examples
% ttk::scrollbar .tsrde
> place .tsrde -x 0 -y 0 -width 16 -height 200
> update
> expr {[.tsrde delta 0 10] > 0}
1
Errors
% ttk::scrollbar .tsrde2; .tsrde2 delta x 1
expected integer but got "x"
-errorcode TCL VALUE NUMBER
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1