X7ROOT File Manager
Current Path:
/usr/share/tk8.5/ttk
usr
/
share
/
tk8.5
/
ttk
/
📁
..
📄
altTheme.tcl
(3.26 KB)
📄
aquaTheme.tcl
(1.95 KB)
📄
button.tcl
(2.91 KB)
📄
clamTheme.tcl
(4.16 KB)
📄
classicTheme.tcl
(3.44 KB)
📄
combobox.tcl
(12.1 KB)
📄
cursors.tcl
(3.91 KB)
📄
defaults.tcl
(3.6 KB)
📄
entry.tcl
(15.77 KB)
📄
fonts.tcl
(5.44 KB)
📄
menubutton.tcl
(4.77 KB)
📄
notebook.tcl
(5.49 KB)
📄
panedwindow.tcl
(1.88 KB)
📄
progress.tcl
(1.06 KB)
📄
scale.tcl
(2.49 KB)
📄
scrollbar.tcl
(3.02 KB)
📄
sizegrip.tcl
(2.34 KB)
📄
spinbox.tcl
(4.16 KB)
📄
treeview.tcl
(8.66 KB)
📄
ttk.tcl
(4.44 KB)
📄
utils.tcl
(8.36 KB)
📄
vistaTheme.tcl
(9.13 KB)
📄
winTheme.tcl
(2.58 KB)
📄
xpTheme.tcl
(1.88 KB)
Editing: panedwindow.tcl
# # Bindings for ttk::panedwindow widget. # namespace eval ttk::panedwindow { variable State array set State { pressed 0 pressX - pressY - sash - sashPos - } } ## Bindings: # bind TPanedwindow <ButtonPress-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 } # See <<NOTE-PW-LEAVE-NOTIFYINFERIOR>> bind TPanedwindow <<EnteredChild>> { 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*
Upload File
Create Folder