entry scan
Scrolls the entry 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
% entry .sc
> .sc scan mark 0
> .sc scan dragto 10
Errors
% entry .sc2; .sc2 scan bogus 1
bad scan option "bogus": must be mark or dragto
-errorcode NONE
% entry .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