Ben
On 16 Jun 2014, at 15:01, webwarrior wrote:
> >> Wasn't that hard, beacuse actual layouting *is* done in Morphic.
> >
> > It is not. That’s exactly why SpecLayoutFrame exists by example.
> >
> > You can convert Spec layout into morphic layout to use in the case of
> > Morphic but thi
>> Wasn't that hard, beacuse actual layouting *is* done in Morphic.
>
> It is not. That’s exactly why SpecLayoutFrame exists by example.
>
> You can convert Spec layout into morphic layout to use in the case of
> Morphic but this is decoupled.
Now I see what you mean. But my aim was to make a lay
On 13 Jun 2014, at 17:09, webwarrior wrote:
> I implemented SpecTableLayout, which uses TableLayout policy.
Cool :)
> Wasn't that hard, beacuse actual layouting *is* done in Morphic.
It is not.
That’s exactly why SpecLayoutFrame exists by example.
You can convert Spec layout into morphic lay
I implemented SpecTableLayout, which uses TableLayout policy.
Wasn't that hard, beacuse actual layouting *is* done in Morphic.
Interface of SpecTableLayout is somewhat similar to SpecLayout.
All table layout options are supported (see
http://wiki.squeak.org/squeak/2340).
One thing that is not par
On 08 Jun 2014, at 15:21, webwarrior wrote:
> I want to make a layout based on TableLayout.
Short answer: it’s not really supported yet.
If you want to give it a try, it’s really welcome ;)
> However, I noticed that SpecInterpreter has some hardcoded behaviour for
> ContainerModel in computeSp
I have been able to get size respecting behavior using rows and columns, by
giving newColumn:width: and newRow:width. Combined with splitters (the
addSplitter message) this has worked well for me (modulo some bugs). If you
need more complex behavior than that I’m afraid I cannot help you.
On
My main requirements are such that container respects sizes and resizing
behaviour (hResizing, vResizing) of its child elements.
Proportional layout doesn't allow that.
And yes, I've read Spec documentation and some Morphic documentation.
--
View this message in context:
http://forum.world.s
Hi,
I don’t know what your requirements are for a table layout, but have you tried
using rows and columns? Maybe this can already solve your issue.
Have a look at the documentation for Spec, maybe the PFTE book chapter can be
of more help. At least it shows an example of use of rows and columns
I want to make a layout based on TableLayout.
Taking SpecLayout as example, it seems that I also have to create model
class similar to ContainerModel and adapter for it.
However, I noticed that SpecInterpreter has some hardcoded behaviour for
ContainerModel in computeSpecFrom:selector: method. Is