summaryrefslogtreecommitdiffstats
path: root/library/ttk/panedwindow.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
commit0d5336db012f45753abace489f18f0ca299c6961 (patch)
treeb1bf3280a9046df99226158978502eeb26f5b0a3 /library/ttk/panedwindow.tcl
parente97381a6d921de403516d5b761539a450f4af83c (diff)
parent1320b8a2a9c1269a345d44d673a7a35707fbbe9c (diff)
downloadtk-core-tip-626.zip
tk-core-tip-626.tar.gz
tk-core-tip-626.tar.bz2
Merge 9.0core-tip-626
Diffstat (limited to 'library/ttk/panedwindow.tcl')
-rw-r--r--library/ttk/panedwindow.tcl28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/ttk/panedwindow.tcl b/library/ttk/panedwindow.tcl
index d5e25cd..131c07c 100644
--- a/library/ttk/panedwindow.tcl
+++ b/library/ttk/panedwindow.tcl
@@ -8,20 +8,20 @@ namespace eval ttk::panedwindow {
pressed 0
pressX -
pressY -
- sash -
+ sash -
sashPos -
}
}
## Bindings:
#
-bind TPanedwindow <Button-1> { ttk::panedwindow::Press %W %x %y }
+bind TPanedwindow <Button-1> { ttk::panedwindow::Press %W %x %y }
bind TPanedwindow <B1-Motion> { ttk::panedwindow::Drag %W %x %y }
-bind TPanedwindow <ButtonRelease-1> { ttk::panedwindow::Release %W %x %y }
+bind TPanedwindow <ButtonRelease-1> { ttk::panedwindow::Release %W %x %y }
-bind TPanedwindow <Motion> { ttk::panedwindow::SetCursor %W %x %y }
-bind TPanedwindow <Enter> { ttk::panedwindow::SetCursor %W %x %y }
-bind TPanedwindow <Leave> { ttk::panedwindow::ResetCursor %W }
+bind TPanedwindow <Motion> { ttk::panedwindow::SetCursor %W %x %y }
+bind TPanedwindow <Enter> { ttk::panedwindow::SetCursor %W %x %y }
+bind TPanedwindow <Leave> { ttk::panedwindow::ResetCursor %W }
## Sash movement:
#
@@ -33,10 +33,10 @@ proc ttk::panedwindow::Press {w x y} {
set State(pressed) 0
return
}
- set State(pressed) 1
- set State(pressX) $x
- set State(pressY) $y
- set State(sash) $sash
+ set State(pressed) 1
+ set State(pressX) $x
+ set State(pressY) $y
+ set State(sash) $sash
set State(sashPos) [$w sashpos $sash]
}
@@ -44,8 +44,8 @@ proc ttk::panedwindow::Drag {w x y} {
variable State
if {!$State(pressed)} { return }
switch -glob -- [$w cget -orient] {
- h* { set delta [expr {$x - $State(pressX)}] }
- v* { set delta [expr {$y - $State(pressY)}] }
+ h* { set delta [expr {$x - $State(pressX)}] }
+ v* { set delta [expr {$y - $State(pressY)}] }
}
$w sashpos $State(sash) [expr {$State(sashPos) + $delta}]
}
@@ -62,7 +62,7 @@ proc ttk::panedwindow::ResetCursor {w} {
variable State
ttk::saveCursor $w State(userConfCursor) \
- [list [ttk::cursor hresize] [ttk::cursor vresize]]
+ [list [ttk::cursor hresize] [ttk::cursor vresize]]
if {!$State(pressed)} {
ttk::setCursor $w $State(userConfCursor)
@@ -73,7 +73,7 @@ proc ttk::panedwindow::SetCursor {w x y} {
variable State
ttk::saveCursor $w State(userConfCursor) \
- [list [ttk::cursor hresize] [ttk::cursor vresize]]
+ [list [ttk::cursor hresize] [ttk::cursor vresize]]
set cursor $State(userConfCursor)
if {[llength [$w identify $x $y]]} {