Article View: comp.sys.next.programmer
Article #1266Re: matrix class question (SOLUTION)
From: "For deposit only"
Date: Fri, 21 Aug 1992 21:08
Date: Fri, 21 Aug 1992 21:08
68 lines
2784 bytes
2784 bytes
In article <988m58_.yikes@netcom.com> yikes@netcom.com (Jenny Doll) writes: > Nader Sahyouni writes: > > >I vaguely remember seeing a posting about someone developing a > >matrix that could have different size text fields in it. That > >would be enormously beneficial to me. If anyone remembers this > >or can tell me where to get it, I'd appreciate it. > > I too am quite interested in such a thing. I have a matrix that contains a > matrix of cells which are names of tasks. I would like to have the height of > each cell correspond to the duration of each task (short task->short cell, > long task->tall cell). I'd be happy to try the thing myself if someone could > point me in the right direction. > > Michael Brill > yikes@netcom.com > I wrote a class called "VarMatrix" that does this. It should be available in the submissions directory of sonata.cc.purdue.edu as VarMatrix.tar, unless someone moved it. The class is FREEWARE so the price is right! Here is an excerpt from the README file. ------- The VarMatrix class is a subclass of Matrix that allows variable sized columns and rows. However the overall shape of the matrix has to be a rectangle. For example, ---------------------- | | | | | ----------------------- | | | | | ----------------------- | | | | | | | | | | ----------------------- | | | | | ----------------------- Column 2 and Row 3 have different sizes from the rest. Full functionality of Matrix class should be available since VarMatrix is a subclass. An example program is also included which shows how to use the class. Basically you need to know 2 new calls. -setWidth:(float)width forCol:(int)col; -setHeight:(float)height forRow:(int)theRow; They change the width of a column and the height of a row. Future: I am planning to make this class into an IB palette that you could use from inside Interface builder. I am going to add the functionality to have cells of different type in this matrix. This class is FREEWARE. All the standard stuff applies. You are free to use it as you wish. If you decide to use it, I would like to hear from you. Just send me email. -------- Ciao, Imran
Technical Details
Message-ID:
<1992Aug21.210819.17335@leland.Stanford.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!newsReferences:
<988m58_.yikes@netcom.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!leland.Stanford.EDU!news
From: qureshi@unixhub.slac.stanford.edu ("For deposit only")
Subject: Re: matrix class question (SOLUTION)
Message-ID: <1992Aug21.210819.17335@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Reply-To: cooldude@elaine49.stanford.edu
Organization: DSO, Stanford University
References: <988m58_.yikes@netcom.com>
Date: Fri, 21 Aug 92 21:08:19 GMT
Lines: 68