Hello,<br><br>i want to display the results of an ongoing calculation. I'm not terribly concerned about speed, as this is just for educational purposes.<br>So i figured that PluggableMultiColumnListMorph would be a good place to start.
<br>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. <br>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.
<br>In fact, i can only select as much entries as there are columns in the Morph.<br><br>To illustrate, i did something roughly similiar to the following:<br><br>|column1 column2|<br> result := OrderedCollection new.<br>
column1 := OrderedCollection new.<br> column2 := OrderedCollection new. <br> column1 add: 'x-component'; add: 'purz'; add: 'durst'; add: 'puh'.<br> column2 add: 'y-component'; add: 'purz1'; add: 'durst1'; add: 'puh1'.
<br> result add: (column1 asArray); add: (column2 asArray).<br> result := result asArray.<br><br>And it seems like PluggableMultiColumnListMorph doesn't treat "result" as a proper array.<br>Is there a possible workaround or do i absolutely have to work with simple arrays?
<br>Or is there an even better way to display rows and columns of data?<br><br>Thanks in advance,<br>Peter Schneider<br>