home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rexxtk12.zip
/
demo
/
spectcl
/
dlog2.ui.tcl
< prev
next >
Wrap
Text File
|
2000-04-23
|
2KB
|
82 lines
#! /bin/sh
# the next line restarts using wish \
exec wish "$0" "$@"
# interface generated by SpecTcl version 1.1 from /home/ocon/rexxtk/th/demo/dlog2.ui
# root is the parent window for this user interface
proc dlog2_ui {root args} {
# this treats "." as a special case
if {$root == "."} {
set base ""
} else {
set base $root
}
label $base.label#1 \
-text Name:
entry $base.entry#1 \
-textvariable name
label $base.label#2 \
-text Phone:
entry $base.entry#2 \
-textvariable phone
button $base.button#1 \
-command {setRexxtk D2Okay} \
-text Okay
button $base.button#2 \
-command {setRexxtk D2Cancel} \
-text Cancel
# Geometry management
grid $base.label#1 -in $root -row 1 -column 1 \
-sticky e
grid $base.entry#1 -in $root -row 1 -column 2 \
-columnspan 2 \
-sticky ew
grid $base.label#2 -in $root -row 2 -column 1 \
-sticky e
grid $base.entry#2 -in $root -row 2 -column 2 \
-columnspan 2 \
-sticky ew
grid $base.button#1 -in $root -row 3 -column 2
grid $base.button#2 -in $root -row 3 -column 3
# Resize behavior management
grid rowconfigure $root 1 -weight 0 -minsize 30
grid rowconfigure $root 2 -weight 0 -minsize 30
grid rowconfigure $root 3 -weight 0 -minsize 30
grid columnconfigure $root 1 -weight 0 -minsize 30
grid columnconfigure $root 2 -weight 1 -minsize 140
grid columnconfigure $root 3 -weight 1 -minsize 159
# additional interface code
# end additional interface code
}
# Allow interface to be run "stand-alone" for testing
catch {
if [info exists embed_args] {
# we are running in the plugin
dlog2_ui .
} else {
# we are running in stand-alone mode
if {$argv0 == [info script]} {
wm title . "Testing dlog2_ui"
dlog2_ui .
}
}
}