beetlebug▾
/

scrollbar activate

Gives or sets the active element of the scrollbar.

PATHNAME activate ?ELEMENT?

Description

With ELEMENT, makes that element active: arrow1, slider, or arrow2. Another value makes no element active. With no argument, gives the active element, or an empty string. The bindings of the scrollbar set the active element when the pointer moves over it.

Returns

The active element with no argument, else an empty string.

Examples

% scrollbar .ac
> .ac activate slider
> .ac activate
slider

# A trough cannot be active.
% scrollbar .ac2
> .ac2 activate trough1
> .ac2 activate

Errors

% scrollbar .ac3; .ac3 activate a b
wrong # args: should be ".ac3 activate element"
-errorcode NONE

Facts

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

See also