home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!cbnewsk!cbnewsj!att-out!oucsboss!oucsace!tswingle
- From: tswingle@oucsace.cs.ohiou.edu (Tom Swingle)
- Newsgroups: comp.lang.pascal,comp.lang.os.msdos.programmer
- Subject: Broadcast messages aren't getting through in Turbo Vision--SOLVED!!
- Message-ID: <1992Nov21.204641.23525@oucsace.cs.ohiou.edu>
- Date: 21 Nov 92 20:46:41 GMT
- References: <1992Nov20.051126.23961@oucsace.cs.ohiou.edu>
- Organization: Ohio University CS Dept,. Athens
- Lines: 21
-
- With the help of the replies that I received, I have tracked down the problem.
-
- My problem before was that I was only looking at TWindow.HandleEvent for the
- solution. However, when I failed to find anything there, I should have kept
- going up the heirarchy for the solution. TWindow is descended from TGroup, so
- TWindow.HandleEvent calls TGroup.HandleEvent. TGroup.HandleEvent calls the
- HandleEvent for each of its views. I traced the problem to one of these views
- that TGroup.HandleEvent was passing the event along to; this was where the
- event was getting inappropriately cleared.
-
- The moral? Always remember that you have to trace both upwards (through
- overridden ancestor methods that your methods call) and downwards (through
- "member" objects attached to yours, as with TGroup), and that you have to
- trace all the way to the end, not just one step back.
-
- Class is over. Go home now.
- --
- "The problem you are experiencing is | "To be sure of hitting the target,
- not with the network nor with the | shoot first and, whatever you hit,
- station. Please adjust your set." | call it the target."
- More ramblings from: tswingle@oucsace.cs.ohiou.edu/tswingle@bigbird.cs.ohiou.edu
-