Alexis 

send it t the list so that we all learn.

Stef

On Mar 6, 2012, at 6:27 PM, Alexis Parseghian wrote:

> Thanks to all who replied, and sorry about the double post --
> something acted up with the send, and the notification came only late
> this morning...
> 
> I did have a good look at PackageTreeExample : this is the one that
> helped me figure out how to use the nodes. It was a bad example to my
> problem though, since it's a pure, single-columned  tree.
> 
> I finally noticed the difference between my code and the examples, and
> the source of the alignment errors I was getting.
> 
> All examples return the content of a cell in the form "self theme
> someKindOfUIThemeMorph: blah", while I was using "self theme builder
> newLabel:".
> 
> It turns out that regular label morphs are not properly clipped
> (verified by altering SimpleGridExample). All alignment issues were
> solved by using "self theme newTextIn: self text: blah" instead of
> generating a label morph. The latter, additionally, was ignoring the
> TreeMorph's "rowInset:" specification, while the morph generated by
> "newTextIn:text:" respects it.
> 
> Not exactly a bug, but not something obvious either, since the cell
> seems to accept pretty much any kind of morph for its contents.
> 
> Alain, I'll take the details and a cleaned-up example off-list with you 
> shortly.
> 
> Again, thanks to all for jarring my neurons :)
> 
> On Tue, Mar 6, 2012 at 1:40 PM, Alain Plantec <[email protected]> wrote:
>> can I get your code (from an attached change set as an example), it would be
>> cool to make another example out of this.
>> btw, I will answer to your questions
>> Cheers
>> Alain
>> 
>> Le 06/03/2012 00:13, Alexis Parseghian a écrit :
>> 
>>> I've been playing with MorphTree et al. for the past few days, trying
> [...8<...]
> 


Reply via email to