Hi All:
 
    1. I found the solution, the solution is exectue topleve show command twice, for example
 
Toplevel2 show
Toplevel2 show
 
But, it is really wired ....
 
    2. I found I can not end all wish.exe thread when I close the application that I wrote by Visual TCL. So I need to destroy all toplevel when I delete main window ... Does any one meet this kind of problem...
 
Best Regards, Mark
----- Original Message -----
From: Mark Wu
Sent: Monday, July 21, 2003 1:33 AM
Subject: [vtcl-user] A wired tk behavior!!

Hi All:
 
    I just faced a weird problem of toplevel. I use Visual TCL to write two toplevels in a same project,  one is "Main GUI", the other is "connection dialog".
In Main GUI, I add a menu, and named "Connect...", When I press menu item "connect", the "connection dialog" will show up. This behavior works very well when I test in Visual Tcl environment.
 
    But, When I run it on Activestate Tcl, it  works not so good.
1. When I press menu item "connect..." first time, the dialog will show up, and I click "X" button on the top-right corner to close the dialog.
2. Okay, Then I click the menu item again, weird.... Nothing happened, the "Connection Dialog" does not show up.
3. So, I click the menu item third time.... IT SHOWS UP.., Then I click "X" button on the top-right corner to close the dialog again...
4. I click the the menu item again, weird.... Nothing happened, the "Connection Dialog" does not show up.
....
I fall into this weird cycle. Can anyone please kindly help me to jump out this weird cycle.....
If you need my source, I will be glad to send it to you.
 
Best Regards, Mark

Reply via email to