Hello,
Am Die, 05 Dez 2000 schrieben Sie:
> You ask a good question. I ran into this problem myself. This was my
> solution: I found that if you insert your handwritten code towards the
> beginning of the script, just after the line: "init $argc $argv" that your
> code won't get deleted. A trick I use is to make this code a procedure and
> then I can call the procedure with a command button.
No, call it from predefined init function (see below).
> Don't forget if you
> use variables from outside the procedure in the procedure to use the global
> statement.
>
> ....Mark
>
> On Tue, 05 Dec 2000, Pieter De Troyer wrote:
> > Hi all,
> >
> > I'm very new with vtcl and i have some basic questions.
> >
> > Using vtcl 1.2.1 I succeeded in making a nice looking GUI
Congratulations!
>> that actually does nothing yet.
Not so good ...
> > After browsing different tutorials I couldn't find out
> > how i can create procedures and variables for my program without vtcl
> > overwriting them when saving the gui? At this moment I made the GUI,
> > saved it and then added some procedures and variables at the ensd of the
> > file. Reopening it in vtcl and making some adjustments everything got
> > lost when i saved the changes. is there a way to make procs etc. in vtcl
> > itself?
Add self-defined procedures using vtcl. Use Window / Function list / Add to
define your functions. Call them by widget commands. Edit pre-defined 'init'
function to do your initialisations. *Don't* edit your script from outside
vtcl.
> >
> > Other question: i want to use to almost identical frames in the window.
> > I would use some variables to make them look alike. How can this be done
> > in vtcl?
Perhaps use self-defined compound widgets? I'm not sure if I understand your
problem right.
Regards, Jochen
-----------------------------------------
--- Joachim Bergmeyer --- [EMAIL PROTECTED] ---
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user