home *** CD-ROM | disk | FTP | other *** search
- 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
- From: pf@bilbo.bio.purdue.edu (Paul Furbacher)
- Newsgroups: comp.lang.pascal
- Subject: Re: I need help with TVISION (StatusLine)
- Message-ID: <54794@mentor.cc.purdue.edu>
- Date: 22 Jul 92 21:33:46 GMT
- References: <92203.123606LOPEZJ@EVALUN11.BITNET> <1992Jul22.111504.202068@uctvax.uct.ac.za>
- Sender: news@mentor.cc.purdue.edu
- Distribution: comp.lang.pascal
- Organization: Purdue University
- Lines: 49
-
- In article <1992Jul22.111504.202068@uctvax.uct.ac.za>,
- drvsim01@uctvax.uct.ac.za (Simon Driver) writes:
-
- in response to an article which asks:
-
- > In article below <LOPEZJ@EVALUN11.BITNET> writes:
- >
- > > -How can I do that StatusLine show help messages (like IDE of Turbo
- > > Pascal). I think that I would use the Hint function but I don't know do
- > > it.
- >
- > I asked this question a while back and got a few replies (thank you) but all
- > involved the hint. You just place a global variable in your hint function and
- > this takes care of this, but you get the following problem.
- >
- > F1 Help | Please wait while loading C:\TP6\TEST.TXT
- >
- > This doesn't help much because if it is a large file, or it is being formated,
- > the user might think (s)he can press F1 to get help during the loading process.
- [ explanation of hack deleted ]
-
- The interpretation by Simon Driver of the original request is an
- interesting one. I got the impression that the author wanted
- to know how to implement a hinted statusline. Either way,
- Simon Driver discusses the implementation of "wait" messages
- in the statusline which to me doesn't seem terribly kosher,
- even though the IDE handles it this way. Wouldn't it be more
- standard to put up a "Wait" window with some kind of moving
- indicator to show that the system is still actively working on
- the task at hand? Such a "wait window" would deactivate all
- events except an "abort"/"cancel" process keyboard or mouse
- event. Then there wouldn't be the problem inherent in using
- the status line and having it interpret a request for help, as
- described above. The hack wouldn't be necessary, unless one
- considers the following description a hack in itself. (Maybe
- everything is a hack in one sense or another, no?)
-
- It's not too hard to implement this as a descendent of
- TDialog with "Flags := Flags and not wfClose", one "panic"
- button, and a modified handle event which loops until the
- process is done, and checks for the appropriate "panic"
- event. The descendent could have a fancy draw method which,
- depending on the fraction of the process completed, would
- write a bar of appropriate length, and/or a rotating symbol between
- the following: \ | - / to show activity.
-
- Comments?
-
- PF
-