beetlebug▾
/

text scan

Scrolls the text by a drag of the mouse.

PATHNAME scan mark X Y
PATHNAME scan dragto X Y

Description

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

Returns

An empty string.

Examples

% text .sn
> .sn scan mark 0 0
> .sn scan dragto 0 10

Errors

% text .sn2; .sn2 scan bogus 0 0
bad scan option "bogus": must be mark or dragto
-errorcode NONE

Facts

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

See also