ofc… I would like a mini-version of glamour integrated in the pharo core… but for that the
framework has to be as generic as possible :)
thanks guys for such a good work.
Esteban
On 09 Jan 2014, at 17:09, Usman Bhatti <usman.bhatti(a)gmail.com> wrote:
I think this is a good addition to Glamour adding
individual morphs thus making it much more generic.
tx.
Usman
On Thu, Jan 9, 2014 at 3:47 PM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
In the latest Glamour, you can just do now:
GLMCompositePresentation new tabulator with: [ :tabulator |
tabulator column: #morph; column: #preview.
tabulator transmit to: #morph; andShow: [ :composite |
composite morph
morph:[:morphPresentation |
| button |
(button := SimpleButtonMorph new)
on: #mouseUp send: #value to: [morphPresentation selection: 'You just
clicked'];
label: 'I am a button. Please click me';
yourself.
]
].
tabulator transmit from: #morph; to: #preview; andShow: [ :a | a text ].
];
openOn: 42
If you click on the button, the selection port is populated and the transmission is
triggered.
Doru
On Thu, Jan 9, 2014 at 3:39 PM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
Hi Usman,
Doru just implemented what I was looking for.
See in the latest Glamour: “Morph with custom interaction” example :)
thanks!
Esteban
On 09 Jan 2014, at 15:25, Usman Bhatti <usman.bhatti(a)gmail.com> wrote:
On Wed, Jan 8, 2014 at 6:27 PM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev