beetlebug▾
/

scrollbar delta

Gives the change of the fraction for a move of the slider by a distance.

PATHNAME delta DX DY

Description

Gives the change of the first fraction of set when the slider moves by DX pixels (a horizontal scrollbar) or DY pixels (a vertical scrollbar). The bindings use it in a drag.

Returns

A number.

Examples

% scrollbar .de
> pack .de -fill y
> update
> expr {[.de delta 0 10] > 0}
1

Errors

% scrollbar .de2; .de2 delta 1
wrong # args: should be ".de2 delta xDelta yDelta"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also