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