Hi Peter,Indeed, this was a bug. I fixed it in the latest version of Roassal2. Simply update the package to Roassal2-TudorGirba.512 and you should get your snippet running properly.Cheers,DoruOn Sat, Oct 4, 2014 at 1:50 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:_______________________________________________HiWhen I attach TRMouseClick event on an edge it gets fired but the event element is nil so I have no reference to the original object. Since RTEdge is subclass of RTAnnouncableObject I would expect it to work correctly.-------------view := RTView new.el1 := RTEllipse new size: 30; elementOn: 'a'.el2 := RTEllipse new size: 30; elementOn: 'b'.el1 translateTo: -50 @ 0.el2 translateTo: 50 @ 0.line := RTArrowwedLine edgeFrom: el1 to: el2.el1 when: TRMouseClick do: [ :event | event element inspect ]. "returns el1"line when: TRMouseClick do: [ :event | event element inspect ]. "returns nil"view add: el1; add:el2; add: line.view open.------------------Thanks,Peter
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev