[squeak-dev] Morphic TableLayout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Morphic TableLayout

Mark Volkmann
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?

--
R. Mark Volkmann
Object Computing, Inc.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Morphic TableLayout

Herbert König
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.

--
Cheers,

Herbert                                        


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Morphic TableLayout

Herbert König
In reply to this post by Mark Volkmann
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!


--
Cheers,

Herbert                                        


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Morphic TableLayout

Karl Ramberg
In reply to this post by Mark Volkmann
R. Mark Volkmann wrote:
> 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?
>
>  
You can't, it's just flowing and automagick.

Karl

Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Morphic TableLayout

Andreas.Raab
In reply to this post by Herbert König
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!
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Morphic TableLayout

Brenda Larcom
In reply to this post by Herbert König
-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFI/nP0jIInAF656BkRAq/qAKCEALxibGydNzg39ZJtDxMtRdh7yACdE4nR
ZDEP/L9SHuxXb8nNea82m6Y=
=bdny
-----END PGP SIGNATURE-----


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Morphic TableLayout

Karl Ramberg
In reply to this post by Herbert König
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