Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by MKK2
Sat, 22 Aug 1992 03:16
Highlighting a Selected Cell
Author: MKK2
Date: Sat, 22 Aug 1992 03:16
Date: Sat, 22 Aug 1992 03:16
24 lines
1443 bytes
1443 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads