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 <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
2015-05-05 14:13 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>:
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
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 <nicolaihess@web.de> wrote:
2015-05-05 14:13 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto:yuriy.tymchuk@me.com>>: 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 <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
2015-05-06 14:38 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>:
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 <nicolaihess@web.de> wrote:
2015-05-05 14:13 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>:
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
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" <yuriy.tymchuk@me.com> 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
participants (3)
-
Alain Plantec -
Nicolai Hess -
Yuriy Tymchuk