Article View: comp.sys.next.programmer
Article #1926Re: Custom Palette for FormCell?
From: Gregory H. Anderson
Date: Mon, 21 Dec 1992 18:55
Date: Mon, 21 Dec 1992 18:55
25 lines
1481 bytes
1481 bytes
In article <1go48kINNre8@iskut.ucs.ubc.ca> paterson@gdss.commerce.ubc.ca
(Toby Paterson) writes:
> In article <1992Dec16.190747.23282@ornl.gov> woo@ornl.gov (John W.
Wooten)
> writes:
> > How do I create a custom palette for a subclass of TeXT or of Form
> > Cell?
> >
> Text and FormCell are both subclasses of View. Just follow the
^^^^^^^^
> instructions for creating a CustomView palette.
>
Incorrect. FormCell is a subclass of Cell. If you make a custom Cell
class, you also have to make a custom View object to contain it. Then you
set the +cellClass of the View class to be your cell. Actually, this is
not bad general advice, because most of the interesting stuff happens
inside Cells anyway. By pushing most intelligence there, you can drag out
incredibly smart Matrices with clever Cells inside.
--
Gregory H. Anderson | Thus spake the master programmer:
Master Programmer / Manager | "Let the programmers be many and
Anderson Financial Systems | the managers few; then all will be
greg@afs.com (Nextmail OK) | productive." -- Tao of Programming
Technical Details
Message-ID:
<1992Dec21.185516.9233@afs.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!afs!gregReferences:
<1go48kINNre8@iskut.ucs.ubc.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!afs!greg From: greg@afs.com (Gregory H. Anderson) Subject: Re: Custom Palette for FormCell? Message-ID: <1992Dec21.185516.9233@afs.com> Sender: greg@afs.com Reply-To: greg@afs.com References: <1go48kINNre8@iskut.ucs.ubc.ca> Date: Mon, 21 Dec 1992 18:55:16 GMT Lines: 25