home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5868 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.4 KB

  1. Path: sparky!uunet!destroyer!gatech!psuvax1!psuvm!mkk2
  2. Organization: Penn State University
  3. Date: Sun, 30 Aug 1992 15:05:34 EDT
  4. From: <MKK2@psuvm.psu.edu>
  5. Message-ID: <92243.150534MKK2@psuvm.psu.edu>
  6. Newsgroups: comp.sys.next.programmer
  7. Subject: Matrix and highlighted cells
  8. Lines: 27
  9.  
  10. Last week I had this problem, got sort of hysterical about it one night 8-)
  11. and posted a mostly anguished cry for help.
  12.  
  13.       Today, the rest of the app is coming along nicely, but I still have this
  14. nagging problem that I haven't been able to solve.
  15.  
  16.       I have a Matrix of Cells in a ScrollView.  The Cells are a subclass
  17. of TextFieldCell, though that might be the problem.  Mostly, things work OK.
  18. The problems are:
  19.  
  20.       1.  When I mousedown on a cell, it highlights, but when I mouseup again,
  21.           it goes back to gray.  I want the selected cell to be highlighted.
  22.  
  23.       2.  Double clicks invoke the delegate's doubleAction: OK, but single
  24.           clicks do NOT invoke the delegate's action: method.
  25.  
  26.    I borrwed the general ideas for my code from ScrollDudeScroll, but I
  27. guess that somewhere in there I've failed to set some behavior flag or
  28. something.  I've tried lots of variants. I've RTFM'd the FM's up oneside
  29. and the other.  [matrix update] doesn't do it.  Redefining drawSelf:...
  30. doesn't seem to do it, though maybe I did that wrong.
  31.  
  32.    Any advice, folks?
  33.  
  34.       Still,
  35.  
  36.       lee Sailer, aka M
  37.