You can fire up vTcl and start using the Toolbar without ever selecting
the main menu item "File/New" which executes the function that I copied
below.
The most noticable thing that happens in this case is that you don't get
the Function window initialized with the "init" and "main" functions.
Saving the application seems to get these two functions into the output
file, but I worry that this may have some not-so-obvious problems. At the
least, it's probably confusing.
vTcl could/should either somehow force the user to select File/New or
internally run the vTcl:new procedure if the user goes right for the
toolbar.
proc vTcl:new {} {
global vTcl
vTcl:close
vTcl:new_widget toplevel
vTcl:setup_bind_tree .
vTcl:update_top_list
vTcl:update_var_list
vTcl:update_proc_list
set vTcl(project,name) "unknown.tcl"
wm title $vTcl(gui,main) "Visual Tcl - $vTcl(project,name)"
}
...RickM...