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@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@googlecode.com wrote:
Comment #2 on issue 843 by google....@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev