On Wed, Jan 8, 2014 at 6:27 PM, Esteban Lorenzano estebanlm@gmail.comwrote:
Hi,
I remember I made same question a couple of years ago… and I didn’t have an answer at the moment, and now I have the same problem.
I have a simple browser like this
“ColumnA" -> “ColumnB"
My problem is: ColumnA renders a custom Morph. The morph is complicated (is a solar system simulation), I can select a planet to show some properties. This properties should be displayed in ColumnB
I tried something like this:
browser transmit from: #levels; to: #map; andShow: [ :a | | presentation | presentation := a morph. presentation title: 'Area Schematics'; display: [ :baseLevel | self createMorphFor: baseLevel onSelect: [ :node| presentation
selection: node ] ] ].
browser transmit from: #map; to: #properties; andShow: [ :a | a text title: 'Properties' ].
But that does not works :(
I want a way to trigger a port and update my properties pane. How I do that?
I am not sure to understand what is not working selection or updating but try having a look at the examples: GLMBasicExamples open
There are plenty that show how the ports and their transmission work.
A presentation can be updated with the "update" message.
I can have a look at the code of the browser.
Usman
I do not want to create a presenter for that simple and basic behaviour… it has to be an easy way that I’m not saying. But even if I have to do a presenter/renderer and all the bureaucracy… I still don’t know how to do it.
Any help will be welcomed.
thanks, Esteban _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev