home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20305 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  1.5 KB

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