Hi Dennis,
I have the impression that you do not use the last version of Roassal.
In Pharo 1.4 and 2.0, with the last version of Roassal I have the script that does let the
second circle changes its color.
--------------------
el1 := (ROElement on: 1) height: 50; width:50.
el1 + (ROCircle color: Color lightGreen).
el2 := (ROElement on: 1) height: 50; width:50.
el2 + (ROCircle color: Color lightGreen) @ ROLightlyHighlightable.
rawView := ROView new @ RODraggable.
rawView add: el1.
rawView add: el2.
ROHorizontalLineLayout on: rawView elements.
rawView open.
--------------------
Alexandre
On Sep 26, 2012, at 7:43 AM, Dennis Schenk <d.schenk(a)students.unibe.ch> wrote:
Hi,
The code does not work for me, because attributes for the ROElement ist always nil, thus
it can't set the original color.
(Or did I miss ome thing? I updated Roassal to the newest version).
I added
- attributes := Dictionary new. to the init method of ROAbstractElement
- The method attributes to ROAbstractElement to make it accessible.
Else the code of ROLightlyHighlightable leads to an error.
See the filed out ROAbstractElement here:
http://cl.ly/code/2J0T3x3y1F0y
Cheers,
Dennis
On Mon, Sep 24, 2012 at 8:01 PM, <moose-technology(a)googlecode.com> wrote:
Comment #2 on issue 843 by google....(a)ben.coman.com.au: ROLightlyHighlightable drains
element colour
http://code.google.com/p/moose-technology/issues/detail?id=843
Works for me. Thanks Alex.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.