home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4515 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.7 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!swrinde!elroy.jpl.nasa.gov!ames!purdue!mentor.cc.purdue.edu!pf@bilbo.bio.purdue.edu
  2. From: pf@bilbo.bio.purdue.edu (Paul Furbacher)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: I need help with TVISION (StatusLine)
  5. Message-ID: <54794@mentor.cc.purdue.edu>
  6. Date: 22 Jul 92 21:33:46 GMT
  7. References: <92203.123606LOPEZJ@EVALUN11.BITNET> <1992Jul22.111504.202068@uctvax.uct.ac.za>
  8. Sender: news@mentor.cc.purdue.edu
  9. Distribution: comp.lang.pascal
  10. Organization: Purdue University
  11. Lines: 49
  12.  
  13. In article <1992Jul22.111504.202068@uctvax.uct.ac.za>, 
  14.    drvsim01@uctvax.uct.ac.za (Simon Driver) writes:
  15.  
  16.  in response to an article  which asks: 
  17.  
  18. > In article below <LOPEZJ@EVALUN11.BITNET> writes:
  19. > >      -How can I do that StatusLine show help messages (like IDE of Turbo
  20. > >  Pascal). I think that I would use the Hint function but I don't know do
  21. > >  it.
  22. > I asked this question a while back and got a few replies (thank you) but all
  23. > involved the hint. You just place a global variable in your hint function and
  24. > this takes care of this, but you get the following problem.
  25. > F1 Help | Please wait while loading C:\TP6\TEST.TXT
  26. > This doesn't help much because if it is a large file, or it is being formated,
  27. > the user might think (s)he can press F1 to get help during the loading process.
  28. [ explanation of hack deleted ]
  29.  
  30. The interpretation by Simon Driver of the original request is an 
  31. interesting one.  I got the impression that the author wanted
  32. to know how to implement a hinted statusline.  Either way, 
  33. Simon Driver discusses the implementation of "wait" messages 
  34. in the statusline which to me doesn't seem terribly kosher,
  35. even though the IDE handles it this way.  Wouldn't it be more 
  36. standard to put up a "Wait" window with some kind of moving
  37. indicator to show that the system is still actively working on
  38. the task at hand?  Such a "wait window" would deactivate all
  39. events except an "abort"/"cancel" process keyboard or mouse
  40. event.  Then there wouldn't be the problem inherent in using
  41. the status line and having it interpret a request for help, as
  42. described above.  The hack wouldn't be necessary, unless one
  43. considers the following description a hack in itself.  (Maybe
  44. everything is a hack in one sense or another, no?)
  45.  
  46. It's not too hard to implement this as a descendent of 
  47. TDialog with "Flags := Flags and not wfClose", one "panic"
  48. button, and a modified handle event which loops until the
  49. process is done, and checks for the appropriate "panic"
  50. event.  The descendent could have a fancy draw method which,
  51. depending on the fraction of the process completed, would 
  52. write a bar of appropriate length, and/or a rotating symbol between
  53. the following:   \   |   -   /   to show activity.  
  54.  
  55. Comments?
  56.  
  57. PF
  58.