home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7870 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!afs!greg
  3. From: greg@afs.com (Gregory H. Anderson)
  4. Subject: Re: Custom Palette for FormCell?
  5. Message-ID: <1992Dec21.185516.9233@afs.com>
  6. Sender: greg@afs.com
  7. Reply-To: greg@afs.com
  8. References: <1go48kINNre8@iskut.ucs.ubc.ca>
  9. Date: Mon, 21 Dec 1992 18:55:16 GMT
  10. Lines: 25
  11.  
  12. In article <1go48kINNre8@iskut.ucs.ubc.ca> paterson@gdss.commerce.ubc.ca  
  13. (Toby Paterson) writes:
  14. > In article <1992Dec16.190747.23282@ornl.gov> woo@ornl.gov (John W.  
  15. Wooten)  
  16. > writes:
  17. > > How do I create a custom palette for a subclass of TeXT or of Form  
  18. > > Cell?
  19. > > 
  20. > Text and FormCell are both subclasses of View.  Just follow the  
  21.            ^^^^^^^^
  22. > instructions for creating a CustomView palette.
  23.  
  24. Incorrect. FormCell is a subclass of Cell. If you make a custom Cell  
  25. class, you also have to make a custom View object to contain it. Then you  
  26. set the +cellClass of the View class to be your cell. Actually, this is  
  27. not bad general advice, because most of the interesting stuff happens  
  28. inside Cells anyway. By pushing most intelligence there, you can drag out  
  29. incredibly smart Matrices with clever Cells inside.
  30.  
  31. --
  32. Gregory H. Anderson          | Thus spake the master programmer: 
  33. Master Programmer / Manager  | "Let the programmers be many and  
  34. Anderson Financial Systems   | the managers few; then all will be 
  35. greg@afs.com  (Nextmail OK)  | productive." -- Tao of Programming
  36.