beetlebug▾
/

listbox scan

Scrolls the listbox 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

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

Errors

% listbox .sc2; .sc2 scan mark 1
wrong # args: should be ".sc2 scan mark|dragto x y"
-errorcode NONE

Facts

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

See also