|
Displaying rows of data, PluggableMultiColumnListMorph: msg#00045lang.smalltalk.squeak.beginners
Hello, 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 start. 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 Morph. 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 arrays? Or is there an even better way to display rows and columns of data? Thanks in advance, Peter Schneider _______________________________________________ Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Using Local Date Settings, Göran Krampe |
|---|---|
| Next by Date: | Re: Delete translations, antonio |
| Previous by Thread: | Using Local Date Settings, Jack Williams |
| Next by Thread: | Re: Displaying rows of data, PluggableMultiColumnListMorph, Matthew Fulmer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |