Hi,
On Tue, Oct 17, 2017 at 11:42 AM, Peter Uhnák <i.uhnak(a)gmail.com> wrote:
Hi,
I went through the GLM examples and the chapter (
http://pharobooks.gforge.inria.fr/PharoByExampleTwo-Eng/latest/Glamour.pdf
) however none of them mention any of the following.
Is it possible to change the width of an action button? It seems that the
width is fixed.
Right now the width is fixed but it should be easy to change. The list of
buttons is rendered in GLMMorphicActionListRenderer; then in #morphFrom:
the width is set to default value. We can introduce a #buttonWidth: message
in the presentation that sets the width of the button. Do you want to give
it a try?
[image: Inline image 1]
Likewise is it possible to change the layout, so the buttons are on top of
each other and not side-by-side?
For changing the layout you can configure the presentation with #beVertical.
Finally it seems that setting icons does not work; tested in Pharo 6 and
Pharo 7: (screenshot above). Maybe it works only for the toolbar icons?
I made a small change so now icons are shown (latest version in moose).
Cheers,
Andrei
browser := GLMTabulator new.
browser column: #one.
browser transmit to: #one; andShow: [ :a |
a actionList
act: [:entity | entity inspect ] iconName: #glamorousInspect entitled:
'Longer Button Label...';
act: [:entity | entity explore ] icon: #glamorousOpen asIcon entitled:
'Explore'].
browser openOn: 42.
Any pointers appreciated,
Peter
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev