Rick Macdonald wrote:
> 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...
Thank you VERY much Rick. I now have the window displaying before main is
run.
I still have a minor problem. I have routines in main that dynamicly
configure widgets based on what the routine is doing.
I could rewrite main to call subroutines to do each task, but I want you
input if you think it would work before I reorganize my whole routine set.
You have been a great help and I hope to hear back from you again.
---------------------------------------------------------------------------
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).