using the example of GLMBasicExamples>>roassalPainting I want to add a menu in the view using ROEaselMorphic new populateMenuOn: view. While a small scrolling is done (to not have the buttons over the nodes) the buttons aren't shown. Is this a bug of the Glamour or I'm doing something wrong?
| browser |
browser := GLMTabulator withStatusbar.
browser column: #one; column: #two.
browser transmit to: #one; andShow: [ :a |
a list
title: 'Select and trigger from menu';
display: [:x | 1 to: x ];
selectionAct: [:list |
| value |
value := list selection * 10. "simulate some custom setup"
(list pane port: #customSelection) value: value ]
entitled: 'Multiply by 10 and then send outside'
].
browser transmit to: #two; from: #one port: #customSelection; andShow: [ :a |
a roassal
title: 'Numbers in Roassal';
painting: [:view :number |
view shape label.
view nodes: (1 to: number).
view edgesFrom: [:each | each // 5 ].
view treeLayout.
ROEaselMorphic new populateMenuOn: view.
]].
browser openOn: 42
--
Santiago Vidal