This is interesting indeed. I think that shape singularity was made for optimisation. On the other hand you can define color as a block, so you will get different color for the same shape. Now the question: is this a bug or a feature :)
Uko
On 25 Jun 2014, at 11:37, Leo Perard leo.perard@gmail.com wrote:
Hi,
I'm not sure it is but I think I have found a bug where elements share the same instance of a shape.
Here an example:
view := RTView new.
els := (RTBox new size: 20) elementsOn: (1 to: 10). view addAll: els.
els do: [ :e | e on: TRMouseClick do: [ :event | e shape color: Color random. e update. els atRandom update. view signalUpdate ] ].
RTHorizontalLineLayout on: els. view open
It should only change the color of one element but it doesn't. So I don't know if it is wanted or not. -- Cheers, Leo Perard University of Lille 1 _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev