Perhaps it's my misunderstanding the way to use vtcl, but there's a
quick way to loose alot of carefully crafted toplevels in vtcl.

Try this: open vtcl and create two empty toplevels. Open the toplevels
dialog and hide one of the toplevels. Save this to a file. Examining 
the
file will show that both toplevels have been saved. Close this in 
vtcl and
open the same file again. Save it again without changing the hidden 
toplevel
to visible. The saved file will be missing the hidden toplevel.

A crude debug shows that this is due to the way toplevels are loaded 
with
the vTcl:find_new_procs function in misc.tcl. It determines the 
toplevels
by looking for a vTclWindow.[toplevel], and one does not exist for the
hidden one.

As I said, maybe I'm not using vtcl correctly, but this is just too 
easy a
way to lose a lot of work. For now I'm just never using the "Hide" 
option
on the toplevel dialog, and editing the main function to include a 
Window hide command for the toplevels I want hidden. Is that what I 
should
have been doing all along?

-- 
Glen Walker, Edmonton Alberta Canada


Reply via email to