On Sun, 20 Feb 2000, Larry W. Virden wrote:
> During last week's Tcl conference, at least two items relating to the vtcl
> community arose.
>
> The first was a comment by one attendee who asked why vtcl doesn't allow
> one to specify the variable names it uses. Most people who have trained
> in programming strive to give all variables meaningful names - so having
> to edit the vtcl output to replace button1 everywhere with "confirmdelete"
> etc is something they always have to do. Having a field in the dialogs
> used to create the various widgets where the user specifies names to use
> seems like would be a helpful feature. It could even use the current
> naming scheme for default, for those who don't want to get that specfic.
I don't understand this comment. First, there is a preference for being
prompted for the name of every widget. Below is an example where I
specified toplevel=mytop, frame=myframe, and button=confirmdelete. Isn't
that what they want?
Secondly, I've never used the feature above; I just use the widget alias
feature. Supplying your own names would be handy when being confronted
with stack traces during debugging, I suppose.
proc vTclWindow.mytop {base} {
if {$base == ""} {
set base .mytop
}
if {[winfo exists $base]} {
wm deiconify $base; return
}
###################
# CREATING WIDGETS
###################
toplevel $base -class Toplevel \
-background grey85 -highlightbackground grey85
wm focusmodel $base passive
wm geometry $base 113x28+526+1
wm maxsize $base 1137 834
wm minsize $base 1 1
wm overrideredirect $base 0
wm resizable $base 1 1
wm deiconify $base
wm title $base "New Toplevel 2"
frame $base.myframe \
-background grey85 -borderwidth 2 -height 75 \
-highlightbackground grey85 -relief groove -width 125
button $base.myframe.confirmdelete \
-background grey85 -foreground black -highlightbackground grey85 \
-highlightthickness 0 -text {OK to DELETE}
###################
# SETTING GEOMETRY
###################
pack $base.myframe \
-in .mytop -anchor center -expand 0 -fill none -side top
pack $base.myframe.confirmdelete \
-in .mytop.myframe -anchor center -expand 0 -fill none -side top
}
Window show .
Window show .mytop
> The other item is more political. It was announced that VisualGipsy is
> now an open source product. Visual Gipsy is a graphical design application
> which looks quite like vtcl. Updates to it have occured for some time
> now.
Yes, I saw that the other day but haven't downloaded it yet.
Now would be a good time for Stewart to give us an update on his plans for
vTcl development!
...RickM...
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).