Ok, I'll take a stab at this one. A vtcl project has a particular structure. You cannot simply load just any sort of existing tcl program.
So, you need to create a new vtcl project and save it, then the output is structured such that there are some vtcl maintained pieces and then there is a set of procs that you yourself have written. If you are careful, you can insert your own additional procs into the file that vtcl creates. Look for this: ################################# # USER DEFINED PROCEDURES # Place the procs after this. I would not place code that is outside of procs into the vtcl project file (outside procs). I would instead, insert that code into either the init or the main proc that a new vtcl project will create. Correct me someone if I am wrong, but code outside of procs will not be saved from vtcl. You will probably need to include some global statements if you do have this sort of "global level" code with any variables. Then you can load up the project, it will see all the new procs, and see the new code you put into proc main or proc init. On the next save, vtcl will output all your procs as is, but in alphabetical order and will add some comment blocks before each proc (with just the proc name). From that point on, you can either edit your procs in a text editor, or you can load the project into vtcl and use it's proc editor. I use both techniques. If you study a vtcl project file (i.e. the output from a save) you will begin to understand the layout. Then with care, you can modify it with a text editor or load it up in vtcl. Again, I do both. When I want to search for all occurances of some text, like for example, cyan, and just want to change it to say, gold, this would not mess up the organization of the file, and is much easier than doing this with a gui program like vtcl. However, whenever I want to add a widget, I do that inside vtcl. This ability to modify the project file by hand or inside vtcl is a powerful feature, but if you don't know what you are doing, you could create a project file that vtcl could not read back. So, keep lots of versions around, save often and reload often. hope that helps e.t. At 12:02 PM 12/13/02 -0800, you wrote: >Send vtcl-user mailing list submissions to > [EMAIL PROTECTED] > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/vtcl-user >or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > >You can reach the person managing the list at > [EMAIL PROTECTED] > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of vtcl-user digest..." > > >Today's Topics: > > 1. How to import? (Tom Glascock, Dentar, Inc.) > >--__--__-- > >Message: 1 >Date: Thu, 12 Dec 2002 13:45:37 -0500 >From: "Tom Glascock, Dentar, Inc." <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [vtcl-user] How to import? > >I have a program that I had written in tcl/tk that I would like to import >into vtcl, but when I try to load it, vtcl throws up an error saying "Not a >vtcl project!" > >How do I do this? > >TIA, > >Tom > > >-- >Thomas S. Glascock [EMAIL PROTECTED] >Dentar, Inc. http://www.dentar.com >(513)985-0964 office cell (513)312-6673 > > > >--__--__-- > >_______________________________________________ >vtcl-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/vtcl-user > > >End of vtcl-user Digest ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ vtcl-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/vtcl-user
