/usr/share/tk8.6/ttk
NameSizeModeActions
altTheme.tcl35400644editdlrm
aquaTheme.tcl20010644editdlrm
button.tcl29780644editdlrm
clamTheme.tcl45990644editdlrm
classicTheme.tcl36850644editdlrm
combobox.tcl124230644editdlrm
cursors.tcl40070644editdlrm
defaults.tcl43470644editdlrm
entry.tcl163960644editdlrm
fonts.tcl55760644editdlrm
menubutton.tcl49130644editdlrm
notebook.tcl56190644editdlrm
panedwindow.tcl19200644editdlrm
progress.tcl10890644editdlrm
scale.tcl26980644editdlrm
scrollbar.tcl30970644editdlrm
sizegrip.tcl23920644editdlrm
spinbox.tcl42550644editdlrm
treeview.tcl88590644editdlrm
ttk.tcl45460644editdlrm
utils.tcl85620644editdlrm
vistaTheme.tcl93380644editdlrm
winTheme.tcl26430644editdlrm
xpTheme.tcl19200644editdlrm
Edit: /usr/share/tk8.6/ttk/panedwindow.tcl (1920B)
# # Bindings for ttk::panedwindow widget. # namespace eval ttk::panedwindow { variable State array set State { pressed 0 pressX - pressY - sash - sashPos - } } ## Bindings: # bind TPanedwindow { ttk::panedwindow::Press %W %x %y } bind TPanedwindow { ttk::panedwindow::Drag %W %x %y } bind TPanedwindow { ttk::panedwindow::Release %W %x %y } bind TPanedwindow { ttk::panedwindow::SetCursor %W %x %y } bind TPanedwindow { ttk::panedwindow::SetCursor %W %x %y } bind TPanedwindow { ttk::panedwindow::ResetCursor %W } # See <> bind TPanedwindow <> { 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 -- [$w cget -orient] { horizontal { set delta [expr {$x - $State(pressX)}] } vertical { 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 if {!$State(pressed)} { ttk::setCursor $w {} } } proc ttk::panedwindow::SetCursor {w x y} { set cursor "" if {[llength [$w identify $x $y]]} { # Assume we're over a sash. switch -- [$w cget -orient] { horizontal { set cursor hresize } vertical { set cursor vresize } } } ttk::setCursor $w $cursor } #*EOF*