Hi Carl,
I think the best way is to do it with the Options/Bindings (alt-b) menu
option. When I put my bindings in main, I found out that vtcl put the
same binding just after the creation of the widget in the
vTclWindow.top17 function.
The init function is called before the creation of the widgets and when
you save your file, vtcl will add a copy of the binding after the widget
creation, thus overwriting the one in the init function. If you edit
your .tcl file with an editor and alter the binding in init, it could
happen that you notice no change as your binding is being overwritten.
On the other hand, main is called after the creation of all the widgets,
and thus the bindings, so you will override it if you put the bindings
in this function... especially if you edit the code afterwards with a
separate editor...
But if a clean code is important I guess it is best to go for the way
vTcl offers.
Any other suggestion out there?
regards, Cristian
---------------------------------------------------------------------------
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).