home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!fourd!David_B._Lamkins
- Message-ID: <1992Dec24.152938.91186@fourd.com>
- Newsgroups: comp.sys.mac.programmer
- Distribution: world
- From: David_B._Lamkins@fourd.com
- Organization: 4th Dimension BBS
- Date: Thu, 24 Dec 1992 15:29:38 EST
- Subject: Re: TCL, Another Question...
- Lines: 26
-
- > Slowly but surely I'm getting the hang of this TCL wizardry :-)
- >
- > However, I would like to display a "startup" window while the application
- > loads, and preps. My question is: where is the best place to implement this
- > behavior?
- >
- > [...]
- >
- > I suspect I will have to put my startup-window in a global variable, show
- > the window during IMyApp(), and then Close() the window in the last method
- > which is executed before event looping occurs.
-
- That's what I do. Also, I capture the tick count when I put up the window, and
- when I go back to close the window, I loop looking for a mouse or key event
- if the window hasn't been visible for some minimum time. The only other
- thing you may want to look out for is heap fragmentation - allocate the
- splash screen window record as a handle, move it high, lock it, deref it, and
- finally pass it to the new window (or dialog) routine. This way, when the
- window gets disposed, you won't leave a hole low in the heap.
-
- Dave
- ********************************************************************
- System: fourd.com Phone: 617-494-0565
- Cute quote: Being a computer means never having to say you're sorry
- ********************************************************************
-
-