On Wed, 2 Jun 1999, Helmut Schrvder wrote:
> I made a GUI with vtcl and declared some procedures in external library
> files e.g. lib.tcl to do some other work. The library file is imported
> with the auto_path command. This is no problem.
> But when I load the GUI in vtcl , change something in the GUI and save
> the work, then all the externel procedures are stored in the vtcl file.
> Does any body know how to avoid this?
Somebody please add this to the FAQ if it isn't already. Is the FAQ on
Stewart's web page?
lib/globals.tcl has this line:
set vTcl(proc,ignore) "tcl.*|tk.*|auto_.*|bgerror|\\..*"
So, if you name all your external procs with some common prefixes, you can
add this to your init code:
global vTcl
append vTcl(proc,ignore) "|my.*"
There is also:
set vTcl(var,ignore) "vTcl.*|tix.*"
but you probably don't need to add to this.
I haven't tested this, but vTcl(proc,ignore) is what vTcl uses to decide
what not to save to the file.
Please let us know how this works.
...RickM...
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).