Yes, that's a bug. I'll look at it.

CG



|--------+------------------------------------->
|        |          Alexander Selzer           |
|        |          <alexander.selzer@rodenstoc|
|        |          k.de>                      |
|        |          Sent by:                   |
|        |          [EMAIL PROTECTED]|
|        |          eforge.net                 |
|        |                                     |
|        |                                     |
|        |          05/03/2001 12:37 AM        |
|        |          Please respond to vtcl-user|
|        |                                     |
|--------+------------------------------------->
  
>-----------------------------------------------------------------------------------------------------------|
  |                                                                                    
                       |
  |       To:     [EMAIL PROTECTED]                                      
                       |
  |       cc:                                                                          
                       |
  |       Fax to:                                                                      
                       |
  |       Subject:     Re: [vtcl-user] BUG: tclet in v1.5.1b4                          
                       |
  |                                                                                    
                       |
  
>-----------------------------------------------------------------------------------------------------------|




cgavin wrote:
>
> What's the bug ? I was able to run a Tclet on my
> Linux system. Do you get an error message ?

A simple Tclet looks like this:
--------
#############################################################################

# Visual Tcl v1.51 Tclet
#

#################################
# USER DEFINED PROCEDURES
#
proc init {argc argv} {

}

init $argc $argv


proc {main} {argc argv} {
wm protocol .top WM_DELETE_WINDOW {exit}
}

#################################
# VTCL GENERATED GUI PROCEDURES
#
button .b \
    -text button
pack .b \
    -in .top -anchor center -expand 0 -fill none -side top


main $argc $argv
-------

Since toplevel is not allowed in Tclets, the button statement was
correctly changed from
   button .top.b
to
   button .b

Also the pack command was changed that way. But then there is still this
"-in .top". The error message is:

-------
An error occured during execution of this Tclet:
bad window path name ".top"
(...)
-------

IMHO the only solution is, to delete this -in statement.

Another error is the following line in proc {main}

    wm protocol .top WM_DELETE_WINDOW {exit}

This is also nonsens in Tclets and has again a reference to .top.

Actually I cannot say, when these bugs first occurred. But I generated
Tclets 2, 3 years ago with no problems.

Alex
--
Dipl.-Ing. (FH) Alexander Selzer    Rodenstock Praezisionsoptik
Technische Datenverarbeitung        GmbH & Co. KG
Isartalstr. 43  D-80469 Muenchen    ein Unternehmen der LINOS AG
Tel.: +49-89-7202-123  Fax: -628    http://www.rodenstockoptics.de/

_______________________________________________
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