On Wed, 22 Mar 2000, Travis Boucher wrote:

> > Hi, I am sorry for bothering you....
> >
> > I have been using alot of VTCL.  I do not know TCL/TK very well and I
> > have one question....
> >
> > I want to be able to build a window, display it, then run a routine
> (eg.
> > main ).
> >
> > My problem is that it ends up running main, doing the whole main
> > routine, THEN displays the window.

It actually builds the window and then runs main:

Window show .
Window show .top17
main $argc $argv

It looks like it runs main first because the window doesn't appear until
"things are idle".

Perhaps all you want is simply to put this as the first line of main:

tkwait visibility .top17

This will show the window before running the rest of the code in main.

If I haven't understood your request, you need to better explain what you
want to do!

...RickM...

---------------------------------------------------------------------------
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