home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6809 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.7 KB

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