Hello Cyrille,
| tmpBrowser model |
model := #( b c d v a d f r ).
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
yourself ].
tmpBrowser transmit to: #list->#selection; fromOutside: #listToSelect.
tmpBrowser openOn: model.
(tmpBrowser pane port: #listToSelect) value: model second. "set here the one
to be selected"
regards,
On Wed, Jun 15, 2011 at 11:52 AM, Cyrille Delaunay <cy.delaunay(a)gmail.com>wrote;wrote:
Hello,
Is there a way to set a default selection to a list presentation? so that
when I open the browser, the morphic list has already a value selected.
I tried that:
|tmpBrowser|
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
selection: #a;
yourself
].
tmpBrowser openOn: #( b c d v a d f r).
but the list still open with nothing selected
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Andre Hora