Re: [Pharo-users] Custom layout in Spec

2014-06-16 Thread Benjamin
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

Re: [Pharo-users] Custom layout in Spec

2014-06-16 Thread webwarrior
>> 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

Re: [Pharo-users] Custom layout in Spec

2014-06-16 Thread Benjamin
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

Re: [Pharo-users] Custom layout in Spec

2014-06-13 Thread webwarrior
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

Re: [Pharo-users] Custom layout in Spec

2014-06-09 Thread Benjamin
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

Re: [Pharo-users] Custom layout in Spec

2014-06-08 Thread Johan Fabry
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

Re: [Pharo-users] Custom layout in Spec

2014-06-08 Thread webwarrior
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

Re: [Pharo-users] Custom layout in Spec

2014-06-08 Thread Johan Fabry
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

[Pharo-users] Custom layout in Spec

2014-06-08 Thread webwarrior
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