Thanks Alex.

Concerning the lineFrom: The code is from a Roassal example in the easel: Examples -> ROExample -> Basic -> Lines. So we should fix that there. Also the code edge + (ROLine red) does not make the line red in the example, thats probably related?

Cheers,
Dennis

On Wed, Oct 3, 2012 at 1:04 AM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Hi Dennis!

Well spotted!!
I was able to reproduce and fix the problem. The last version of Roassal should do what you expect. By the way, you should have "ROEdge from: node1 to: node2." and not "ROEdge lineFrom: node1 to: node2." because with lineFrom: you add a shape.

Cheers,
Alexandre


On Oct 2, 2012, at 12:17 PM, Dennis Schenk <d.schenk@students.unibe.ch> wrote:

> No, actually I do have the latest version and the bug is still present, but it does concern ROEdges, not ROElements. See the following script where I want to add a highlighter to an edge.
>
> --------------------
> | view rawView node1 node2 edge |
> rawView := ROView new.
> view := ROMondrianViewBuilder view: rawView.
> node1 := ROLabel elementOn: 'node1'.
> node2 := ROLabel elementOn: 'node2'.
> node1 @ RODraggable.
> node2 @ RODraggable.
> edge := ROEdge lineFrom: node1 to: node2.
> edge + (ROLine red).
>
> edge @ ROLightlyHighlightable.
>
> rawView add: edge; add: node1; add: node2.
> ROHorizontalLineLayout on: (Array with: node1 with: node2).
>
> ROEaselMorphic new populateMenuOn: view.
> view noLayout.
> view open
> --------------------
>
> This is why we have to add the changes to ROAbstractElement.
>
> Cheers,
> Dennis
>
>
> On Thu, Sep 27, 2012 at 12:04 AM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
> 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
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> _______________________________________________
> 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

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev