Robert Balahura wrote:
> 
> And along the same lines, what are the significance of main and init.  I want to
> put top level instructions there, but they don't seem to be executed so I turn
> to notepad and insert in the code outside of any procedure.

[I'm not shure, could please someone check this?]

The init() function is called before the creation of your widgets,
imediatly after the script starts and the creation of global variables.

main() is called after the widgets creation.

Thus, when your script start, the order of execution is:

   1-creation and setting of global variables
   2-init() is called
   3-the *visible* widgets are created (not the ones that are hidden)
   4-main() is called

When you press the "Test" button the above sequence is also executed.

Joao


-- 
Joao Cardoso                |   e-mail: [EMAIL PROTECTED]
INESC, R. Jose Falcao 110   |   tel:    + 351 2 2094322
4050 Porto, Portugal        |   fax:    + 351 2 2008487
---------------------------------------------------------------------------
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).

Reply via email to