home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
showversio.tcl
< prev
next >
Wrap
Text File
|
1997-06-27
|
2KB
|
83 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)showversio.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)showversio.tcl /main/titanic/6 27 Jun 1997 Copyright 1994 Westmount Technology
require procs.tcl
proc showVersionDialog {{title "About"} {showProcessInfo 0}} {
set dlg .main.versionDialog
if {![isCommand $dlg]} {
TemplateDialog new $dlg \
-modal $win95 \
-title $title
$dlg delCancelButton
$dlg delHelpButton
interface DlgColumn $dlg.top {
DlgRow r {
Image wmt {
pixmap wmt
}
DlgColumn c {
Label prodTool {
text "ObjectTeam"
}
Label version {}
Label date {}
}
}
}
$dlg.top.r.c.version text [versionInfo versionLabel]
$dlg.top.r.c.date text [versionInfo dateLabel]
if $showProcessInfo {
HorSeparator new $dlg.top.sep
Label new $dlg.top.space2
set lineCnt 0
foreach header {User Host "Process Id"} {
set row [DlgRow new $dlg.top.row$lineCnt \
-spaceType NONE \
-justification RIGHT]
Label new $row.label \
-text "$header:" \
-alignment RIGHT \
-justification TOP \
-horStretchFactor 10 \
-font "courier-bold-12"
DlgColumn new $row.col
case "$header" in {
{User} {
set info [ORB::currentUser]
}
{Host} {
set info [ORB::currentHost]
}
{"Process Id"} {
set info [ORB::currentProcessId]
}
}
set breakUpCnt 0
foreach line [split $info "\n"] {
foreach part [lineBreak $line 25 " "] {
set text [format "%-25s" $part]
Label new $row.col.label$breakUpCnt \
-text $text \
-font "courier-normal-12"
incr breakUpCnt
}
}
incr lineCnt
}
}
}
$dlg popUp
}