🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #903

Matrix and highlighted cells

#903
From: MKK2
Date: Sun, 30 Aug 1992 19:05
27 lines
1442 bytes
Last week I had this problem, got sort of hysterical about it one night 8-)
and posted a mostly anguished cry for help.

      Today, the rest of the app is coming along nicely, but I still have this
nagging problem that I haven't been able to solve.

      I have a Matrix of Cells in a ScrollView.  The Cells are a subclass
of TextFieldCell, though that might be the problem.  Mostly, things work OK.
The problems are:

      1.  When I mousedown on a cell, it highlights, but when I mouseup again,
          it goes back to gray.  I want the selected cell to be highlighted.

      2.  Double clicks invoke the delegate's doubleAction: OK, but single
          clicks do NOT invoke the delegate's action: method.

   I borrwed the general ideas for my code from ScrollDudeScroll, but I
guess that somewhere in there I've failed to set some behavior flag or
something.  I've tried lots of variants. I've RTFM'd the FM's up oneside
and the other.  [matrix update] doesn't do it.  Redefining drawSelf:...
doesn't seem to do it, though maybe I did that wrong.

   Any advice, folks?

      Still,

      lee Sailer, aka M
Technical Details
Message-ID: <92243.150534MKK2@psuvm.psu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!psuvax1!psuvm!mkk2

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!psuvax1!psuvm!mkk2
Organization: Penn State University
Date: Sun, 30 Aug 1992 15:05:34 EDT
From: <MKK2@psuvm.psu.edu>
Message-ID: <92243.150534MKK2@psuvm.psu.edu>
Newsgroups: comp.sys.next.programmer
Subject: Matrix and highlighted cells
Lines: 27