I think I understand how to use TableLayout to layout morphs in a single row or column. How can I tell it to start a new row or column?
Hello Mark,
RMV> I think I understand how to use TableLayout to layout morphs in a single row or RMV> column. How can I tell it to start a new row or column?
afaik the table layout is a either row or column layout.
It' too long since I delved into it and I've abandoned that project. IIRC I decided I'd have to use rows of columns or columns of rows by nesting.
In recent times there were posts about spreadsheet projects in Squeak, you might want to look there.
Hello Mark,
to confirm my previous post:
Having remembered ChessMorph, you can do #listDirection: #leftToRight #wrapDirection #bottomToTop. but that depends on wrapping.
Remembering another place where I needed a table I used a TableLayout with #listDirection: #topToBottom to put in my own RowMorph's with their own TableLayouts for the columns.
Which is not flexible if you want column oriented and row oriented access.
So if you build such a beast please tell us!
This may be what you're looking for:
http://www.google.com/search?q=TableMorph
Cheers, - Andreas
Herbert König wrote:
Hello Mark,
to confirm my previous post:
Having remembered ChessMorph, you can do #listDirection: #leftToRight #wrapDirection #bottomToTop. but that depends on wrapping.
Remembering another place where I needed a table I used a TableLayout with #listDirection: #topToBottom to put in my own RowMorph's with their own TableLayouts for the columns.
Which is not flexible if you want column oriented and row oriented access.
So if you build such a beast please tell us!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Mark,
You can try GridLayout (on SqueakMap) if you want to specify a particular number of rows or columns. It worked for me in Trike v1 (the application I wrote it for) but it may have some eccentricities/buggy behavior depending on what combinations of layout properties you use. Also, it has some performance problems, especially with large numbers of submorphs, which I think could be solved by more aggressive caching.
Feel free to send me bug reports and/or patches. :) I won't make guarantees, but I was looking at the performance problems just a couple of weeks ago before I had to debug something else & I expect to pop stack next weekish.
Brenda
Herbert König wrote:
Hello Mark,
to confirm my previous post:
Having remembered ChessMorph, you can do #listDirection: #leftToRight #wrapDirection #bottomToTop. but that depends on wrapping.
Remembering another place where I needed a table I used a TableLayout with #listDirection: #topToBottom to put in my own RowMorph's with their own TableLayouts for the columns.
Which is not flexible if you want column oriented and row oriented access.
So if you build such a beast please tell us!
This file do some tablelayout: http://www.squeaksource.com/HtmlTableMorph/SFC-Layout-kfr.1.mcz
Karl
squeak-dev@lists.squeakfoundation.org