full Text diplay in a ListMorph?

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

full Text diplay in a ListMorph?

Dale Henrichs
I would like to display Text objects in a ListMorph, but from reading the code (and experience) it appears that the display code for lists, makes the text attributes homogenous across the whole line being displayed ... so any changes to emphasis or color in the Text object are lost ...

That seems to be a shame...

I've spent a bit of time this morning trying to use a Paragraph for display in the list morph, but my ninja morph skills are sadly lacking:) and I'm failing miserably,,,

So, has anyone else encountered and conquered this particular problem?

If you tell me that it is available in 2.0, I suppose that is a good enough answer, but it would be nice if there was Pharo1.4-based solution...

Dale

Reply | Threaded
Open this post in threaded view
|

Re: full Text diplay in a ListMorph?

Benjamin Van Ryseghem (Pharo)
In 1.4 Lists handle text or string only, and the way they are rendered is hardcoded

In 2.0, any kind of object can be rendered as long as they fulfill the correct API

So I guess there is nothing to do about that in 1.4, sorry :(

Ben

On Oct 21, 2012, at 8:39 PM, Dale Henrichs wrote:

> I would like to display Text objects in a ListMorph, but from reading the code (and experience) it appears that the display code for lists, makes the text attributes homogenous across the whole line being displayed ... so any changes to emphasis or color in the Text object are lost ...
>
> That seems to be a shame...
>
> I've spent a bit of time this morning trying to use a Paragraph for display in the list morph, but my ninja morph skills are sadly lacking:) and I'm failing miserably,,,
>
> So, has anyone else encountered and conquered this particular problem?
>
> If you tell me that it is available in 2.0, I suppose that is a good enough answer, but it would be nice if there was Pharo1.4-based solution...
>
> Dale
>


Reply | Threaded
Open this post in threaded view
|

Re: full Text diplay in a ListMorph?

Dale Henrichs
Thanks for getting back to me quickly, Ben.

It is indeed good news that this is supported in 2.0...

Is there a chance that I could back port the behavior from 2.0 or is the fix too involved ... from what I've played with so far, I can see how it could be done, but it would seem to involve pushing around a lot of code:)

Dale

----- Original Message -----
| From: "Benjamin" <[hidden email]>
| To: "A friendly place where any question about pharo is welcome" <[hidden email]>
| Sent: Sunday, October 21, 2012 11:45:38 AM
| Subject: Re: [Pharo-users] full Text diplay in a ListMorph?
|
| In 1.4 Lists handle text or string only, and the way they are
| rendered is hardcoded
|
| In 2.0, any kind of object can be rendered as long as they fulfill
| the correct API
|
| So I guess there is nothing to do about that in 1.4, sorry :(
|
| Ben
|
| On Oct 21, 2012, at 8:39 PM, Dale Henrichs wrote:
|
| > I would like to display Text objects in a ListMorph, but from
| > reading the code (and experience) it appears that the display code
| > for lists, makes the text attributes homogenous across the whole
| > line being displayed ... so any changes to emphasis or color in
| > the Text object are lost ...
| >
| > That seems to be a shame...
| >
| > I've spent a bit of time this morning trying to use a Paragraph for
| > display in the list morph, but my ninja morph skills are sadly
| > lacking:) and I'm failing miserably,,,
| >
| > So, has anyone else encountered and conquered this particular
| > problem?
| >
| > If you tell me that it is available in 2.0, I suppose that is a
| > good enough answer, but it would be nice if there was
| > Pharo1.4-based solution...
| >
| > Dale
| >
|
|
|

Reply | Threaded
Open this post in threaded view
|

Re: full Text diplay in a ListMorph?

Benjamin Van Ryseghem (Pharo)
It can be back ported easily, it's just a couple of methods :)

But it was at the point when we have decided not to push too much effort in 1.4, so :)


I will try to provide you a slice to do it if you want :)

Ben

On Oct 21, 2012, at 9:22 PM, Dale Henrichs wrote:

> Thanks for getting back to me quickly, Ben.
>
> It is indeed good news that this is supported in 2.0...
>
> Is there a chance that I could back port the behavior from 2.0 or is the fix too involved ... from what I've played with so far, I can see how it could be done, but it would seem to involve pushing around a lot of code:)
>
> Dale
>
> ----- Original Message -----
> | From: "Benjamin" <[hidden email]>
> | To: "A friendly place where any question about pharo is welcome" <[hidden email]>
> | Sent: Sunday, October 21, 2012 11:45:38 AM
> | Subject: Re: [Pharo-users] full Text diplay in a ListMorph?
> |
> | In 1.4 Lists handle text or string only, and the way they are
> | rendered is hardcoded
> |
> | In 2.0, any kind of object can be rendered as long as they fulfill
> | the correct API
> |
> | So I guess there is nothing to do about that in 1.4, sorry :(
> |
> | Ben
> |
> | On Oct 21, 2012, at 8:39 PM, Dale Henrichs wrote:
> |
> | > I would like to display Text objects in a ListMorph, but from
> | > reading the code (and experience) it appears that the display code
> | > for lists, makes the text attributes homogenous across the whole
> | > line being displayed ... so any changes to emphasis or color in
> | > the Text object are lost ...
> | >
> | > That seems to be a shame...
> | >
> | > I've spent a bit of time this morning trying to use a Paragraph for
> | > display in the list morph, but my ninja morph skills are sadly
> | > lacking:) and I'm failing miserably,,,
> | >
> | > So, has anyone else encountered and conquered this particular
> | > problem?
> | >
> | > If you tell me that it is available in 2.0, I suppose that is a
> | > good enough answer, but it would be nice if there was
> | > Pharo1.4-based solution...
> | >
> | > Dale
> | >
> |
> |
> |
>


Reply | Threaded
Open this post in threaded view
|

Re: full Text diplay in a ListMorph?

Dale Henrichs
Ben.

Ooooo, that would be real nice!

Thanks!

Dale

----- Original Message -----
| From: "Benjamin" <[hidden email]>
| To: "A friendly place where any question about pharo is welcome" <[hidden email]>
| Sent: Sunday, October 21, 2012 1:20:08 PM
| Subject: Re: [Pharo-users] full Text diplay in a ListMorph?
|
| It can be back ported easily, it's just a couple of methods :)
|
| But it was at the point when we have decided not to push too much
| effort in 1.4, so :)
|
|
| I will try to provide you a slice to do it if you want :)
|
| Ben
|
| On Oct 21, 2012, at 9:22 PM, Dale Henrichs wrote:
|
| > Thanks for getting back to me quickly, Ben.
| >
| > It is indeed good news that this is supported in 2.0...
| >
| > Is there a chance that I could back port the behavior from 2.0 or
| > is the fix too involved ... from what I've played with so far, I
| > can see how it could be done, but it would seem to involve pushing
| > around a lot of code:)
| >
| > Dale
| >
| > ----- Original Message -----
| > | From: "Benjamin" <[hidden email]>
| > | To: "A friendly place where any question about pharo is welcome"
| > | <[hidden email]>
| > | Sent: Sunday, October 21, 2012 11:45:38 AM
| > | Subject: Re: [Pharo-users] full Text diplay in a ListMorph?
| > |
| > | In 1.4 Lists handle text or string only, and the way they are
| > | rendered is hardcoded
| > |
| > | In 2.0, any kind of object can be rendered as long as they
| > | fulfill
| > | the correct API
| > |
| > | So I guess there is nothing to do about that in 1.4, sorry :(
| > |
| > | Ben
| > |
| > | On Oct 21, 2012, at 8:39 PM, Dale Henrichs wrote:
| > |
| > | > I would like to display Text objects in a ListMorph, but from
| > | > reading the code (and experience) it appears that the display
| > | > code
| > | > for lists, makes the text attributes homogenous across the
| > | > whole
| > | > line being displayed ... so any changes to emphasis or color in
| > | > the Text object are lost ...
| > | >
| > | > That seems to be a shame...
| > | >
| > | > I've spent a bit of time this morning trying to use a Paragraph
| > | > for
| > | > display in the list morph, but my ninja morph skills are sadly
| > | > lacking:) and I'm failing miserably,,,
| > | >
| > | > So, has anyone else encountered and conquered this particular
| > | > problem?
| > | >
| > | > If you tell me that it is available in 2.0, I suppose that is a
| > | > good enough answer, but it would be nice if there was
| > | > Pharo1.4-based solution...
| > | >
| > | > Dale
| > | >
| > |
| > |
| > |
| >
|
|
|