Humm… That is a very good point. Maybe having a context, externally provided, could set the interactions.
Actually, I think the GLMRoassal2Presentation should provide context when creating the view.
Alexandre
> _______________________________________________
> On Mar 31, 2015, at 3:15 PM, Pierre CHANSON <chans.pierre@gmail.com> wrote:
>
> Hi all,
>
> I realized that currently, it is not possible to inspect elements in the GLMRosassal2 presentation when they are created, as it works only on elements created at the initialization in: GLMRoassal2Presentation>>renderOn:
>
> I think the new elements added to the RTView should be inspectable in the presentation.
>
> A possible solution would be to GLMRoassal2Presentation to observe the RTView and when notified of creation of a new element, add the interaction to the new element ?
>
> ---------------------------------------------------------------
> v := RTView new.
> x:=0.
> v add: ((RTBox new size: 40) elementOn: x).
>
> v elements when: TRMouseRightClick do: [ | b |
> b := ((RTBox new size: 40) elementOn: x).
> v add: b.
> b translateBy: (x := x + 50)@0.
> v signalUpdate ].
> v.
> ----------------------------------------------------------------------
>
> Pierre
> 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