Rendering morph list items in NewList

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

Rendering morph list items in NewList

Uko2
Hi,

when I use strings for list items of NewList - everything is fine, but if I use morphs - I get a strange artifacts if another window showers over them. Here is an example video: https://dl.dropboxusercontent.com/u/83145561/morphItems.mov

Maybe some morph gurus have an idea what’s wrong? For now I’ve discovered that all items render themselves with #listRenderOn:atRow:bounds:color:backgroundColor:from:

Cheers!
Uko
Reply | Threaded
Open this post in threaded view
|

Re: Rendering morph list items in NewList

Nicolai Hess


2015-05-05 14:13 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
Hi,

when I use strings for list items of NewList - everything is fine, but if I use morphs - I get a strange artifacts if another window showers over them. Here is an example video: https://dl.dropboxusercontent.com/u/83145561/morphItems.mov

Maybe some morph gurus have an idea what’s wrong? For now I’ve discovered that all items render themselves with #listRenderOn:atRow:bounds:color:backgroundColor:from:

I can not reproduce this, how do you draw the items? Did you use NewListModel or do you use just NewList ?
 

Cheers!
Uko

Reply | Threaded
Open this post in threaded view
|

Re: Rendering morph list items in NewList

Pharo Smalltalk Developers mailing list
In reply to this post by Uko2
Hello
I ve the impression that it is due to the redrawing of invalid rectangles. Maybe because of a lack of efficienty of the morph list
Alain

De:"Yuriy Tymchuk" <[hidden email]>
Date:mar j mai PM à 14:13
Objet:[Pharo-dev] Rendering morph list items in NewList

Hi,

when I use strings for list items of NewList - everything is fine, but if I use morphs - I get a strange artifacts if another window showers over them. Here is an example video: https://dl.dropboxusercontent.com/u/83145561/morphItems.mov

Maybe some morph gurus have an idea what’s wrong? For now I’ve discovered that all items render themselves with #listRenderOn:atRow:bounds:color:backgroundColor:from:

Cheers!
Uko
Reply | Threaded
Open this post in threaded view
|

Re: Rendering morph list items in NewList

Uko2
In reply to this post by Nicolai Hess
I use just NewList because I need a plain morph. For items I use a method like:

listItemFor: anObject
| listItem |
listItem := Morph new
“setup morph"
yourself.
“add submorphs"
^ listItem

Uko

On 05 May 2015, at 20:58, Nicolai Hess <[hidden email]> wrote:



2015-05-05 14:13 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
Hi,

when I use strings for list items of NewList - everything is fine, but if I use morphs - I get a strange artifacts if another window showers over them. Here is an example video: https://dl.dropboxusercontent.com/u/83145561/morphItems.mov

Maybe some morph gurus have an idea what’s wrong? For now I’ve discovered that all items render themselves with #listRenderOn:atRow:bounds:color:backgroundColor:from:

I can not reproduce this, how do you draw the items? Did you use NewListModel or do you use just NewList ?
 

Cheers!
Uko


Reply | Threaded
Open this post in threaded view
|

Re: Rendering morph list items in NewList

Uko2
In reply to this post by Pharo Smalltalk Developers mailing list
Should I use another morph?

Uko

On 05 May 2015, at 21:03, Alain Plantec via Pharo-dev <[hidden email]> wrote:


From: Alain Plantec <[hidden email]>
Subject: Re : [Pharo-dev] Rendering morph list items in NewList
Date: 5 May 2015 21:03:45 CEST
To: Pharo Development List <[hidden email]>


Hello
I ve the impression that it is due to the redrawing of invalid rectangles. Maybe because of a lack of efficienty of the morph list
Alain

De:"Yuriy Tymchuk" <[hidden email]>
Date:mar j mai PM à 14:13
Objet:[Pharo-dev] Rendering morph list items in NewList

Hi,

when I use strings for list items of NewList - everything is fine, but if I use morphs - I get a strange artifacts if another window showers over them. Here is an example video: https://dl.dropboxusercontent.com/u/83145561/morphItems.mov

Maybe some morph gurus have an idea what’s wrong? For now I’ve discovered that all items render themselves with #listRenderOn:atRow:bounds:color:backgroundColor:from:

Cheers!
Uko



Reply | Threaded
Open this post in threaded view
|

Re: Rendering morph list items in NewList

Nicolai Hess
In reply to this post by Uko2


2015-05-06 14:38 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
I use just NewList because I need a plain morph. For items I use a method like:

listItemFor: anObject
| listItem |
listItem := Morph new
“setup morph"
yourself.
“add submorphs"
^ listItem

Uko


No, I still can not reproduce this one. Can you share your source?

 

On 05 May 2015, at 20:58, Nicolai Hess <[hidden email]> wrote:



2015-05-05 14:13 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
Hi,

when I use strings for list items of NewList - everything is fine, but if I use morphs - I get a strange artifacts if another window showers over them. Here is an example video: https://dl.dropboxusercontent.com/u/83145561/morphItems.mov

Maybe some morph gurus have an idea what’s wrong? For now I’ve discovered that all items render themselves with #listRenderOn:atRow:bounds:color:backgroundColor:from:

I can not reproduce this, how do you draw the items? Did you use NewListModel or do you use just NewList ?
 

Cheers!
Uko