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

  1. Path: sparky!uunet!gatech!psuvax1!psuvm!mkk2
  2. Organization: Penn State University
  3. Date: Fri, 21 Aug 1992 23:16:19 EDT
  4. From: <MKK2@psuvm.psu.edu>
  5. Message-ID: <92234.231619MKK2@psuvm.psu.edu>
  6. Newsgroups: comp.sys.next.programmer
  7. Subject: Highlighting a Selected Cell
  8. Lines: 24
  9.  
  10. I don't seem to be able to figure out how to highlight selected cells in
  11. a matrix in a scrollview.  I've RTFMs til Digital Librarian is burned into the
  12. monitor 8-)
  13.  
  14. I have a subclass of TextFieldCell which I putCell into a Matrix.  The Matrix
  15. has a LT_GRAY background, and I've tried LT_GRAY and -1 for the Cells.
  16.  
  17. When I press the mouse button, the cell under the cursor highlights, which
  18. is good.  When I release the mouse button, it turns gray again, which is
  19. not what I want.  I want it to stay white.  (The whole cell, not just the
  20. text, which isn't editable).
  21.  
  22. The cell *is* selected OK, since when I push other buttons that cause things
  23. to happen to [theMatrix selectedCell] they happen to the right one.  So,
  24. how do I get the cell to stay highlighted?  (Oh yeah, theMatrix is RADIOMODE.)
  25.  
  26. A related (??) problem is that though setDoubleAction: behaves as I think it
  27. should, I cannot get setAction to work.  When I double click a Cell, I
  28. call the targets action, but when I single click it, I don't
  29.  
  30. I am figuring that I DON'T UNDERSTAND.  That happens sometimes, know what I
  31. mean?
  32.  
  33. thanks for listening, I feel better already.
  34.