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

  1. Path: sparky!uunet!zephyr.ens.tek.com!psgrain!hippo!ucthpx!uctvax.uct.ac.za!drvsim01
  2. From: drvsim01@uctvax.uct.ac.za (Simon Driver)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: I need help with TVISION (StatusLine)dir
  5. Message-ID: <1992Jul23.130020.202089@uctvax.uct.ac.za>
  6. Date: 23 Jul 92 11:00:20 GMT
  7. References: <92203.123606LOPEZJ@EVALUN11.BITNET> <1992Jul22.111504.202068@uctvax.uct.ac.za> <54794@mentor.cc.purdue.edu>
  8. Distribution: comp.lang.pascal
  9. Organization: University of Cape Town
  10. Lines: 55
  11.  
  12. In article <54794@mentor.cc.purdue.edu>, 
  13.   pf@bilbo.bio.purdue.edu (Paul Furbacher) writes:
  14.  
  15. >> >      -How can I do that StatusLine show help messages (like IDE of Turbo
  16. >> >  Pascal). I think that I would use the Hint function but I don't know do
  17. >> >  it.
  18.  
  19. > The interpretation by Simon Driver of the original request is an 
  20. > interesting one.  I got the impression that the author wanted
  21. > to know how to implement a hinted statusline.
  22.  
  23. Replies to a similar question by myself and the initial question shown above, 
  24. indicate a contradiction in the question.  The problem being that the request
  25. is for a help message "like the IDE of Turbo Pascal", followed immediately by a
  26. request for help on the hint function.
  27.  
  28. >  Wouldn't it be more 
  29. > standard to put up a "Wait" window with some kind of moving
  30. > indicator to show that the system is still actively working on
  31. > the task at hand? 
  32.  
  33. The question of "standards" with regard Turbo Vision is an interesting one. I
  34. would suppose that the implementation of the IDE itself is a standard in
  35. itself. However, as you mention, a "Wait" window might be more correct. If one
  36. looks at the way Borland have set things up, they use the statusline for
  37. messages, current status and help, and a "Wait" window for processes that can
  38. be interupted or need to be monitored as is the case in Compiler window.
  39.  
  40. > It's not too hard to implement this as a descendent of 
  41. > TDialog with "Flags := Flags and not wfClose", one "panic"
  42. > button, and a modified handle event which loops until the
  43. > process is done, and checks for the appropriate "panic"
  44. > event.  The descendent could have a fancy draw method which,
  45. > depending on the fraction of the process completed, would 
  46. > write a bar of appropriate length, and/or a rotating symbol between
  47. > the following:   \   |   -   /   to show activity.
  48.  
  49. It would be easier to implement a descendent of the TWindow, which would allow
  50. greater configuration with regard colours/layout. 
  51.  
  52. Regards,
  53.         Simon.
  54.  
  55. -- 
  56. *****************************************************************
  57. \*****                                                          *\      
  58.  *****   Simon Driver                                           **
  59.  \****                                                          **\
  60.   ****   InterNet : DRVSIM01@UCTVAX.UCT.AC.ZA                   ***   
  61.   \***   FidoNet  : 5:7102/120.1                                ***\   
  62.    ***              Simon.Driver@p1.f120.n7102.z5.fidonet.org   ****
  63.    \**                                                          ****\
  64.     **   Comment  : Pascal Programmers Do It With Indentation   *****
  65.     \*                                                          *****\
  66.      *****************************************************************
  67.