[comp.sys.mac.hypercard] Display a Matrix, Suggestions for improvement/Alternate

mecegy@jane.uh.edu (02/21/90)

I display a matrix (n x m) in one of my cards.  The method I use is 
limited.  I have described my method in the following paragraphs.  I
would appreciate any SUGGESTIONS for improving my method and ALTERNATE
ways of displaying a matrix.

_________________________________________________________________

Displaying a Matrix

In one of the cards in my stack, I display a matrix. Since the matrix
is very large, I display only a part of the matrix. The way I do this
is as follows:

I display four columns at a time.  Each column is a vertical scrolling 
field.  There is also a horizontal scroll bar.  On scrolling horizontally,
the displayed values are stored in a global variable, and the columns
are updated depending on the direction of scrolling. The columns are
updated based on the matrix elements stored in the global variable. On
leaving the card, the global variable is again updated.  

Problem: If I have a n x m matrix, I display 4 rows and 4 columns only.
The performance (i.e. horizontal scrolling) in this case is sluggish
but acceptable.  In case I display 8 rows and 8 columns the horizontal
scrolling becomes very slow. 

Does anyone have any alternative method for doing this i.e. displaying
a matrix of numbers? Or any suggestions how I could improve my method?


Nilanjan
MECEGY@uhvax1.uh.edu