PATH:
usr
/
lib64
/
tcl8.5
/
Tix8.4.3
# -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- # # $Id: OldUtil.tcl,v 1.5 2004/03/28 02:44:57 hobbs Exp $ # # OldUtil.tcl - # # This is an undocumented file. # Are these features used in Tix : NO. # Should I use these features : NO. # # Copyright (c) 1993-1999 Ioi Kim Lam. # Copyright (c) 2000-2001 Tix Project Group. # Copyright (c) 2004 ActiveState # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # proc setenv {name args} { global env if {[llength $args] == 1} { return [set env($name) [lindex $args 0]] } else { if {[info exists env($ename)] == 0} { bgerror "Error in setenv: " "environment variable \"$name\" does not exist" } else { return $env($name) } } } #---------------------------------------------------------------------- # # # U T I L I T Y F U N C T I O N S F O R T I X # # #---------------------------------------------------------------------- # RESET THE STRING IN THE ENTRY proc tixSetEntry {entry string} { set oldstate [lindex [$entry config -state] 4] $entry config -state normal $entry delete 0 end $entry insert 0 $string $entry config -state $oldstate } # GET THE FIRST SELECTED ITEM IN A LIST proc tixListGetSingle {lst} { set indices [$lst curselection] if {$indices != ""} { return [$lst get [lindex $indices 0]] } else { return "" } } #---------------------------------------------------------------------- # RECORD A DIALOG'S POSITION AND RESTORE IT THE NEXT TIME IT IS OPENED #---------------------------------------------------------------------- proc tixDialogRestore {w {flag -geometry}} { global tixDPos if {[info exists tixDPos($w)]} { if {![winfo ismapped $w]} { wm geometry $w $tixDPos($w) wm deiconify $w } } elseif {$flag eq "-geometry"} { update set tixDPos($w) [winfo geometry $w] } else { update set tixDPos($w) +[winfo rootx $w]+[winfo rooty $w] } } #---------------------------------------------------------------------- # RECORD A DIALOG'S POSITION AND RESTORE IT THE NEXT TIME IT IS OPENED #---------------------------------------------------------------------- proc tixDialogWithdraw {w {flag -geometry}} { global tixDPos if {[winfo ismapped $w]} { if {$flag eq "-geometry"} { set tixDPos($w) [winfo geometry $w] } else { set tixDPos($w) +[winfo rootx $w]+[winfo rooty $w] } wm withdraw $w } } #---------------------------------------------------------------------- # RECORD A DIALOG'S POSITION AND RESTORE IT THE NEXT TIME IT IS OPENED #---------------------------------------------------------------------- proc tixDialogDestroy {w {flag -geometry}} { global tixDPos if {[winfo ismapped $w]} { if {$flag eq "-geometry"} { set tixDPos($w) [winfo geometry $w] } else { set tixDPos($w) +[winfo rootx $w]+[winfo rooty $w] } } destroy $w }
[-] StackWin.tcl
[edit]
[-] VResize.tcl
[edit]
[-] LabEntry.tcl
[edit]
[-] fs.tcl
[edit]
[-] EFileBox.tcl
[edit]
[-] Meter.tcl
[edit]
[-] StdBBox.tcl
[edit]
[-] CObjView.tcl
[edit]
[-] DefSchm.tcl
[edit]
[-] BtnBox.tcl
[edit]
[-] OldUtil.tcl
[edit]
[-] WInfo.tcl
[edit]
[+]
..
[-] Compat.tcl
[edit]
[-] ComboBox.tcl
[edit]
[-] SWidget.tcl
[edit]
[-] LabFrame.tcl
[edit]
[-] EFileDlg.tcl
[edit]
[-] FileDlg.tcl
[edit]
[-] Balloon.tcl
[edit]
[-] SListBox.tcl
[edit]
[+]
pref
[-] README.txt
[edit]
[-] PopMenu.tcl
[edit]
[-] DirList.tcl
[edit]
[-] Control.tcl
[edit]
[-] FileBox.tcl
[edit]
[-] StatBar.tcl
[edit]
[-] pkgIndex.tcl
[edit]
[-] StdShell.tcl
[edit]
[-] Tix.tcl
[edit]
[-] license.terms
[edit]
[-] Select.tcl
[edit]
[-] OptMenu.tcl
[edit]
[-] DirDlg.tcl
[edit]
[-] Shell.tcl
[edit]
[-] STList.tcl
[edit]
[+]
bitmaps
[-] LabWidg.tcl
[edit]
[-] DirBox.tcl
[edit]
[-] VStack.tcl
[edit]
[-] SHList.tcl
[edit]
[-] Variable.tcl
[edit]
[-] NoteBook.tcl
[edit]
[-] ResizeH.tcl
[edit]
[-] Grid.tcl
[edit]
[-] SGrid.tcl
[edit]
[-] SimpDlg.tcl
[edit]
[-] VTree.tcl
[edit]
[-] FileEnt.tcl
[edit]
[-] Utils.tcl
[edit]
[-] Event.tcl
[edit]
[-] Tree.tcl
[edit]
[-] HListDD.tcl
[edit]
[-] MultView.tcl
[edit]
[-] Init.tcl
[edit]
[-] TList.tcl
[edit]
[-] FloatEnt.tcl
[edit]
[-] libTix.so
[edit]
[-] DialogS.tcl
[edit]
[-] DirTree.tcl
[edit]
[-] DtlList.tcl
[edit]
[-] Console.tcl
[edit]
[-] PanedWin.tcl
[edit]
[-] HList.tcl
[edit]
[-] FileCbx.tcl
[edit]
[-] ListNBk.tcl
[edit]
[-] SWindow.tcl
[edit]
[-] ChkList.tcl
[edit]
[-] IconView.tcl
[edit]
[-] SText.tcl
[edit]
[-] DragDrop.tcl
[edit]
[-] Primitiv.tcl
[edit]
[+]
html