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.
coord: gives the x and the y of the top left corner of the sash.mark: keeps X,Y as the start of a drag.dragto: moves the sash by the distance from the mark to X,Y.place: moves the sash to X,Y. The sizes of the panes limit the place.
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