beetlebug▾
/

panedwindow sash

Gives or moves the place of a sash.

PATHNAME sash coord INDEX
PATHNAME sash dragto INDEX X Y
PATHNAME sash mark INDEX X Y
PATHNAME sash place INDEX X Y

Description

INDEX is the number of a sash from 0: the sash after the pane INDEX.

Returns

A list of two integers for coord, else an empty string.

Examples

% panedwindow .sa
> label .sa.a -text A
> label .sa.b -text B
> .sa add .sa.a .sa.b
> pack .sa
> update
> llength [.sa sash coord 0]
2

Errors

% panedwindow .sa2; .sa2 sash coord 0
invalid sash index
-errorcode NONE

% panedwindow .sa3; .sa3 sash bogus
bad option "bogus": must be coord, dragto, mark, or place
-errorcode NONE

Facts

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

See also