beetlebug▾
/

spinbox scan

Scrolls the spinbox by a drag of the mouse.

PATHNAME scan mark X
PATHNAME scan dragto X

Description

scan mark keeps the x coordinate X and the current view. scan dragto then scrolls the view by 10 times the distance from that mark to X. The bindings of the middle button use it.

Returns

An empty string.

Examples

% spinbox .sc
> .sc scan mark 0
> .sc scan dragto 10

Errors

% spinbox .sc2; .sc2 scan bogus 1
bad scan option "bogus": must be mark or dragto
-errorcode NONE

% spinbox .sc3; .sc3 scan mark
wrong # args: should be ".sc3 scan mark|dragto x"
-errorcode NONE

Facts

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

See also