I am trying to programatically open tab one or two, similar to this working example...
browser := GLMTabulator new.
browser column: #blah.
(browser transmit)
to: #blah;
andShow: [ :a |
a list title: 'One'.
a text title: 'Two'.
tab := a.].
browser openOn: Object.
browser panes last lastActivePresentation: browser panes last presentations last.
... but with a stacker, like this:
browser := GLMTabulator new.
browser title: 'Prueba'.
browser column: #testColumn.
browser transmit
to: #testColumn;
andShow: [ :presentation |
| first second |
first := #'first'.
second := #'second'.
innerStacker := GLMStacker new.
presentation custom: innerStacker.
innerStacker panes: { first . second }.
innerStacker transmit
to: first;
andShow: [ :p | p title: first ].
innerStacker transmit
to: second;
andShow: [ :p | p title: second ].
"innerStacker selection: Dictionary.
innerStacker selection: second." ].
browser openOn: #('first...' 'second...').
I've tried different ways but nothing seems to work. Like:
browser panes last lastActivePresentation: innerStacker panes last presentations pane.
or
innerStacker panes last lastActivePresentation: innerStacker panes last presentations pane.
Any idea?