[Newbies] Displaying rows of data, PluggableMultiColumnListMorph

Peter Schneider hypolit at googlemail.com
Fri Oct 12 16:56:55 UTC 2007


i want to display the results of an ongoing calculation. I'm not terribly
concerned about speed, as this is just for educational purposes.
So i figured that PluggableMultiColumnListMorph would be a good place to
My problem now is, that it only wants to take Arrays as its source list.
Because i don't know how many rows of data need to be displayed, i just
threw all of them in an OrderedCollection.
If i convert this OrderedCollection with "asArray" and feed it to the
MultiColoumnMorph the contents are displayed just fine, but i can't select
any entries or navigate using the arrow keys.
In fact, i can only select as much entries as there are columns in the

To illustrate, i did something roughly similiar to the following:

|column1 column2|
    result := OrderedCollection new.
    column1 := OrderedCollection new.
    column2 := OrderedCollection new.
    column1 add: 'x-component'; add: 'purz'; add: 'durst'; add: 'puh'.
    column2 add: 'y-component'; add: 'purz1'; add: 'durst1'; add: 'puh1'.
    result add: (column1 asArray); add: (column2 asArray).
    result := result asArray.

And it seems like PluggableMultiColumnListMorph doesn't treat "result" as a
proper array.
Is there a possible workaround or do i absolutely have to work with simple
Or is there an even better way to display rows and columns of data?

Thanks in advance,
Peter Schneider
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20071012/d59e58ff/attachment.htm

More information about the Beginners mailing list