__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# Bindings for ttk::panedwindow widget.
#
namespace eval ttk::panedwindow {
variable State
array set State {
pressed 0
pressX -
pressY -
sash -
sashPos -
}
}
## Bindings:
#
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 <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:
#
proc ttk::panedwindow::Press {w x y} {
variable State
set sash [$w identify $x $y]
if {$sash eq ""} {
set State(pressed) 0
return
}
set State(pressed) 1
set State(pressX) $x
set State(pressY) $y
set State(sash) $sash
set State(sashPos) [$w sashpos $sash]
}
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)}] }
}
$w sashpos $State(sash) [expr {$State(sashPos) + $delta}]
}
proc ttk::panedwindow::Release {w x y} {
variable State
set State(pressed) 0
SetCursor $w $x $y
}
## Cursor management:
#
proc ttk::panedwindow::ResetCursor {w} {
variable State
ttk::saveCursor $w State(userConfCursor) \
[list [ttk::cursor hresize] [ttk::cursor vresize]]
if {!$State(pressed)} {
ttk::setCursor $w $State(userConfCursor)
}
}
proc ttk::panedwindow::SetCursor {w x y} {
variable State
ttk::saveCursor $w State(userConfCursor) \
[list [ttk::cursor hresize] [ttk::cursor vresize]]
set cursor $State(userConfCursor)
if {[llength [$w identify $x $y]]} {
# Assume we're over a sash.
switch -glob -- [$w cget -orient] {
h* { set cursor hresize }
v* { set cursor vresize }
}
}
ttk::setCursor $w $cursor
}
#*EOF*
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| altTheme.tcl | File | 4.65 KB | 0644 |
|
| aquaTheme.tcl | File | 3.6 KB | 0644 |
|
| button.tcl | File | 2.86 KB | 0644 |
|
| clamTheme.tcl | File | 5.78 KB | 0644 |
|
| classicTheme.tcl | File | 4.13 KB | 0644 |
|
| combobox.tcl | File | 11.97 KB | 0644 |
|
| cursors.tcl | File | 4.36 KB | 0644 |
|
| defaults.tcl | File | 4.74 KB | 0644 |
|
| entry.tcl | File | 16.96 KB | 0644 |
|
| fonts.tcl | File | 5.35 KB | 0644 |
|
| menubutton.tcl | File | 6.03 KB | 0644 |
|
| notebook.tcl | File | 5.53 KB | 0644 |
|
| panedwindow.tcl | File | 2.02 KB | 0644 |
|
| progress.tcl | File | 1.06 KB | 0644 |
|
| scale.tcl | File | 2.63 KB | 0644 |
|
| scrollbar.tcl | File | 3.08 KB | 0644 |
|
| sizegrip.tcl | File | 2.34 KB | 0644 |
|
| spinbox.tcl | File | 4.7 KB | 0644 |
|
| treeview.tcl | File | 9.57 KB | 0644 |
|
| ttk.tcl | File | 5.19 KB | 0644 |
|
| utils.tcl | File | 8.09 KB | 0644 |
|
| vistaTheme.tcl | File | 10.19 KB | 0644 |
|
| winTheme.tcl | File | 3.65 KB | 0644 |
|
| xpTheme.tcl | File | 2.93 KB | 0644 |
|