SILENT KILLERPanel

Current Path: > > lib64 > tcl8.6 > Tix8.4.3 >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib64/tcl8.6/Tix8.4.3/

NameTypeSizeLast ModifiedActions
bitmaps Directory - -
html Directory - -
pref Directory - -
Balloon.tcl File 13285 bytes October 22 2019 12:47:10.
BtnBox.tcl File 2671 bytes October 22 2019 12:47:10.
CObjView.tcl File 7738 bytes October 22 2019 12:47:10.
ChkList.tcl File 5087 bytes October 22 2019 12:47:10.
ComboBox.tcl File 36271 bytes October 22 2019 12:47:10.
Compat.tcl File 870 bytes October 22 2019 12:47:10.
Console.tcl File 15311 bytes October 22 2019 12:47:10.
Control.tcl File 12402 bytes October 22 2019 12:47:10.
DefSchm.tcl File 3013 bytes October 22 2019 12:47:10.
DialogS.tcl File 4296 bytes October 22 2019 12:47:10.
DirBox.tcl File 5425 bytes October 22 2019 12:47:10.
DirDlg.tcl File 2206 bytes October 22 2019 12:47:10.
DirList.tcl File 7064 bytes October 22 2019 12:47:10.
DirTree.tcl File 8972 bytes October 22 2019 12:47:10.
DragDrop.tcl File 4025 bytes October 22 2019 12:47:10.
DtlList.tcl File 1002 bytes October 22 2019 12:47:10.
EFileBox.tcl File 11390 bytes October 22 2019 12:47:10.
EFileDlg.tcl File 1718 bytes October 22 2019 12:47:10.
Event.tcl File 5231 bytes October 22 2019 12:47:10.
FileBox.tcl File 14336 bytes October 22 2019 12:47:10.
FileCbx.tcl File 2483 bytes October 22 2019 12:47:10.
FileDlg.tcl File 2185 bytes October 22 2019 12:47:10.
FileEnt.tcl File 7319 bytes October 22 2019 12:47:10.
FloatEnt.tcl File 3176 bytes October 22 2019 12:47:10.
Grid.tcl File 21665 bytes October 22 2019 12:47:10.
HList.tcl File 18148 bytes October 22 2019 12:47:10.
HListDD.tcl File 4500 bytes October 22 2019 12:47:10.
IconView.tcl File 6110 bytes October 22 2019 12:47:10.
Init.tcl File 6199 bytes October 22 2019 12:47:10.
LabEntry.tcl File 2143 bytes October 22 2019 12:47:10.
LabFrame.tcl File 1181 bytes October 22 2019 12:47:10.
LabWidg.tcl File 3951 bytes October 22 2019 12:47:10.
ListNBk.tcl File 3581 bytes October 22 2019 12:47:10.
Meter.tcl File 3114 bytes October 22 2019 12:47:10.
MultView.tcl File 3704 bytes October 22 2019 12:47:10.
NoteBook.tcl File 6160 bytes October 22 2019 12:47:10.
OldUtil.tcl File 3056 bytes October 22 2019 12:47:10.
OptMenu.tcl File 9392 bytes October 22 2019 12:47:10.
PanedWin.tcl File 28347 bytes October 22 2019 12:47:10.
PopMenu.tcl File 5500 bytes October 22 2019 12:47:10.
Primitiv.tcl File 10527 bytes October 22 2019 12:47:10.
README.txt File 987 bytes October 22 2019 12:47:10.
ResizeH.tcl File 13247 bytes October 22 2019 12:47:10.
SGrid.tcl File 5935 bytes October 22 2019 12:47:10.
SHList.tcl File 3793 bytes October 22 2019 12:47:10.
SListBox.tcl File 7138 bytes October 22 2019 12:47:10.
STList.tcl File 2428 bytes October 22 2019 12:47:10.
SText.tcl File 3163 bytes October 22 2019 12:47:10.
SWidget.tcl File 9748 bytes October 22 2019 12:47:10.
SWindow.tcl File 6908 bytes October 22 2019 12:47:10.
Select.tcl File 7204 bytes October 22 2019 12:47:10.
Shell.tcl File 1082 bytes October 22 2019 12:47:10.
SimpDlg.tcl File 1157 bytes October 22 2019 12:47:10.
StackWin.tcl File 1992 bytes October 22 2019 12:47:10.
StatBar.tcl File 1339 bytes October 22 2019 12:47:10.
StdBBox.tcl File 1656 bytes October 22 2019 12:47:10.
StdShell.tcl File 1173 bytes October 22 2019 12:47:10.
TList.tcl File 18009 bytes October 22 2019 12:47:10.
Tix.tcl File 9737 bytes October 22 2019 12:47:10.
Tree.tcl File 4679 bytes October 22 2019 12:47:10.
Utils.tcl File 10788 bytes October 22 2019 12:47:10.
VResize.tcl File 5069 bytes October 22 2019 12:47:10.
VStack.tcl File 9651 bytes October 22 2019 12:47:10.
VTree.tcl File 4410 bytes October 22 2019 12:47:10.
Variable.tcl File 2563 bytes October 22 2019 12:47:10.
WInfo.tcl File 965 bytes October 22 2019 12:47:10.
fs.tcl File 3995 bytes October 22 2019 12:47:10.
libTix.so File 349488 bytes October 22 2019 12:47:11.
license.terms File 2828 bytes October 22 2019 12:47:10.
pkgIndex.tcl File 122 bytes October 22 2019 12:47:10.

Reading File: //lib64/tcl8.6/Tix8.4.3//SListBox.tcl

# -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
#	$Id: SListBox.tcl,v 1.5 2004/03/28 02:44:57 hobbs Exp $
#
# SListBox.tcl --
#
#	This file implements Scrolled Listbox widgets
#
# Copyright (c) 1993-1999 Ioi Kim Lam.
# Copyright (c) 2000-2001 Tix Project Group.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#


# ToDo:
# -anchor (none)
#

tixWidgetClass tixScrolledListBox {
    -classname TixScrolledListBox
    -superclass tixScrolledWidget
    -method {
    }
    -flag {
	-anchor -browsecmd -command -state
    }
    -static {
	-anchor
    }
    -configspec {
	{-anchor anchor Anchor w}
	{-browsecmd browseCmd BrowseCmd ""}
	{-command command Command ""}
	{-state state State normal}
	{-takefocus takeFocus TakeFocus 1 tixVerifyBoolean}
    }
    -default {
	{.scrollbar			auto}
	{*borderWidth			1}
	{*listbox.highlightBackground	#d9d9d9}
	{*listbox.relief		sunken}
	{*listbox.background		#c3c3c3}
	{*listbox.takeFocus		1}
	{*Scrollbar.takeFocus		0}
    }
}

proc tixScrolledListBox:InitWidgetRec {w} {
    upvar #0 $w data

    tixChainMethod $w InitWidgetRec

    set data(x-first) 0
    set data(x-last)  1
    set data(y-first) 0
    set data(y-last)  1
}

proc tixScrolledListBox:ConstructWidget {w} {
    upvar #0 $w data

    tixChainMethod $w ConstructWidget

    set data(w:listbox) \
	[listbox $w.listbox]
    set data(w:hsb) \
	[scrollbar $w.hsb -orient horizontal]
    set data(w:vsb) \
	[scrollbar $w.vsb -orient vertical ]

    set data(pw:client) $data(w:listbox)
}

proc tixScrolledListBox:SetBindings {w} {
    upvar #0 $w data

    tixChainMethod $w SetBindings

    $data(w:listbox) config \
	-xscrollcommand "tixScrolledListBox:XView $w"\
	-yscrollcommand "tixScrolledListBox:YView $w"

    $data(w:hsb) config -command "$data(w:listbox) xview"
    $data(w:vsb) config -command "$data(w:listbox) yview"

    bind $w <Configure> "+tixScrolledListBox:Configure $w"
    bind $w <FocusIn> "focus $data(w:listbox)"

    bindtags $data(w:listbox) \
    "$data(w:listbox) TixListboxState Listbox TixListbox [winfo toplevel $data(w:listbox)] all"
    tixSetMegaWidget $data(w:listbox) $w
}

proc tixScrolledListBoxBind {} {
    tixBind TixListboxState <1> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <1> {
	if {[string is true -strict [%W cget -takefocus]]} {
	    focus %W
	}
	tixScrolledListBox:Browse [tixGetMegaWidget %W]
    }

    tixBind TixListboxState <B1-Motion> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <B1-Motion> {
	tixScrolledListBox:Browse [tixGetMegaWidget %W]
    }

    tixBind TixListboxState <Up> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <Up> {
	tixScrolledListBox:KeyBrowse [tixGetMegaWidget %W]
    }

    tixBind TixListboxState <Down> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <Down> {
	tixScrolledListBox:KeyBrowse [tixGetMegaWidget %W]
    }

    tixBind TixListboxState <Return> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <Return> {
	tixScrolledListBox:KeyInvoke [tixGetMegaWidget %W]
    }


    tixBind TixListboxState <Double-1> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <Double-1> {
	tixScrolledListBox:Invoke [tixGetMegaWidget %W]
    }

    tixBind TixListboxState <ButtonRelease-1> {
	if {[set [tixGetMegaWidget %W](-state)] eq "disabled"} {
	    break
	}
    }
    tixBind TixListbox      <ButtonRelease-1> {
	tixScrolledListBox:Browse [tixGetMegaWidget %W]
    }
}

proc tixScrolledListBox:Browse {w} {
    upvar #0 $w data

    if {$data(-browsecmd) != ""} {
	set bind(specs) {%V}
	set bind(%V) [$data(w:listbox) get \
	    [$data(w:listbox) nearest [tixEvent flag y]]]
	tixEvalCmdBinding $w $data(-browsecmd) bind
    }
}

proc tixScrolledListBox:KeyBrowse {w} {
    upvar #0 $w data

    if {$data(-browsecmd) != ""} {
	set bind(specs) {%V}
	set bind(%V) [$data(w:listbox) get active]
	tixEvalCmdBinding $w $data(-browsecmd) bind
    }
}

# tixScrolledListBox:Invoke --
#
#	The user has invoked the listbox by pressing either the <Returh>
# key or double-clicking. Call the user-supplied -command function.
#
# For both -browsecmd and -command, it is the responsibility of the
# user-supplied function to determine the current selection of the listbox
# 
proc tixScrolledListBox:Invoke {w} {
    upvar #0 $w data

    if {$data(-command) != ""} {
	set bind(specs) {%V}
	set bind(%V) [$data(w:listbox) get \
	    [$data(w:listbox) nearest [tixEvent flag y]]]
	tixEvalCmdBinding $w $data(-command) bind
    }
}

proc tixScrolledListBox:KeyInvoke {w} {
    upvar #0 $w data

    if {$data(-command) != ""} {
	set bind(specs) {%V}
	set bind(%V) [$data(w:listbox) get active]
	tixEvalCmdBinding $w $data(-command) bind
    }
}

#----------------------------------------------------------------------
#
#		option configs
#----------------------------------------------------------------------
proc tixScrolledListBox:config-takefocus {w value} {
    upvar #0 $w data
    $data(w:listbox) config -takefocus $value
}


#----------------------------------------------------------------------
#
#		Widget commands
#----------------------------------------------------------------------


#----------------------------------------------------------------------
#
#		Private Methods
#----------------------------------------------------------------------
proc tixScrolledListBox:XView {w first last} {
    upvar #0 $w data

    set data(x-first) $first
    set data(x-last) $last

    $data(w:hsb) set $first $last
    tixWidgetDoWhenIdle tixScrolledWidget:Configure $w


}

proc tixScrolledListBox:YView {w first last} {
    upvar #0 $w data

    set data(y-first) $first
    set data(y-last) $last

    $data(w:vsb) set $first $last
    tixWidgetDoWhenIdle tixScrolledWidget:Configure $w

    # Somehow an update here must be used to advoid osscilation
    #
    update idletasks
}

#
#----------------------------------------------------------------------
# virtual functions to query the client window's scroll requirement
#----------------------------------------------------------------------
proc tixScrolledListBox:GeometryInfo {w mW mH} {
    upvar #0 $w data

    return [list \
	[list $data(x-first) $data(x-last)]\
	[list $data(y-first) $data(y-last)]]
}

proc tixScrolledListBox:Configure {w} {
    upvar #0 $w data

    tixWidgetDoWhenIdle tixScrolledListBox:TrickScrollbar $w

    if {$data(-anchor) eq "e"} {
	$data(w:listbox) xview 100000
    }
}

# This procedure is necessary because listbox does not call x,y scroll command
# when its size is changed
#
proc tixScrolledListBox:TrickScrollbar {w} {
    upvar #0 $w data

    set inc [$data(w:listbox) select include 0]

    $data(w:listbox) select set 0
    if {!$inc} {
	$data(w:listbox) select clear 0
    }
}

SILENT KILLER Tool