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