You should never delete a toplevel from your program while inside
Visual Tcl... If you delete a toplevel and then you save, it will disappear
from your project.

Visual Tcl has a binding on <destroy> that hides the window instead
of closing it.

However, you can hide it:

Window hide $widget(toplevel_alias)

If you really want to destroy toplevels you should do that outside Visual
Tcl
(eg. save your project and run it as standalone).

CG



|--------+------------------------------------->
|        |          [EMAIL PROTECTED]        |
|        |          Sent by:                   |
|        |          [EMAIL PROTECTED]|
|        |          eforge.net                 |
|        |                                     |
|        |                                     |
|        |          04/12/2001 02:50 PM        |
|        |          Please respond to vtcl-user|
|        |                                     |
|--------+------------------------------------->
  
>-----------------------------------------------------------------------------------------------------------|
  |                                                                                    
                       |
  |       To:     vtcl-user <[EMAIL PROTECTED]>                          
                       |
  |       cc:                                                                          
                       |
  |       Fax to:                                                                      
                       |
  |       Subject:     [vtcl-user] Destroy and source                                  
                       |
  |                                                                                    
                       |
  
>-----------------------------------------------------------------------------------------------------------|





Hi list,

I'm here again to try some help :-)

A long time ago I recive an answer to how call anothe .tcl file from one
button, and in this the command was:

Window destroy $widget(toplevel_alias)
source /directory/file.tcl

And it's works fine.

Some days ago I upgrade my Vtcl 1.2.0 to 1.5 beta 4 and the tk and tcl to
8.3,
but now the problem start:

When I use this comand to destroy the first toplevel it's don't work fine.
Yes
he call the other .tcl file but behind this one I can see the "destroied"
toplevel like an shadow.
Why?
What's wrong?

I need to resol this to finish my program. :-(

Thanks for any comments.

Anahuac


_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user




_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to