beetlebug▾
/

ttk::treeview drag

Moves the right edge of a column to a pixel, as a drag of the separator of its heading does.

PATHNAME drag COLUMN X

Description

Sets the width of COLUMN so that its right edge is at the pixel X of the widget, at least -minwidth. The bindings of the tree view call it while the user drags a separator between two headings.

Returns

An empty string.

Examples

% ttk::treeview .ttvdr -columns {size}
> pack .ttvdr
> update
> .ttvdr drag #0 100
> expr {[.ttvdr column #0 -width] < 200}
1

Errors

% ttk::treeview .ttvdr2; .ttvdr2 drag
wrong # args: should be ".ttvdr2 drag column position"
-errorcode NONE

Facts

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

See also