This is the way I solved this problem. 

if ![info exists ::vTcl] {
  # do stuff only when NOT running under vTcl
}

Regards,
Gergely

>How can I tell if my vtcl program is being
>edited or running on its own.
>
>I have some code that will add widgets to
>a frame. I want to do this at startup, but
>NOT if I am running vtcl. So, I can't put
>it into main directly. I need:
>
>if {we are in vtcl} {
>  do nothing now
>} else {
>  call procedure to add stuff in $widget(frame)
>}
>
>
>What is the acceptable way to do this?
>
>thanks
>eric
>

--------------------------------------------------------------------------
Gergely Megyeri  --  Lehrstuhl fuer Informationstechnik im Maschinenwesen
      itm        --  Technische Universitaet Muenchen
--------------------------------------------------------------------------
[EMAIL PROTECTED]  *  Tel: +49 89 289 16442  *  http://www.itm.tum.de/~gm
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to