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. Likewise is it possible to change the layout, so the buttons are on top of each other and not side-by-side? 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? 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 [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi,
From what I remember, the action list has to be improved to change layout. Currently, it is a simple presentation. Juraj
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by Peter Uhnak
Hi,
On Tue, Oct 17, 2017 at 11:42 AM, Peter Uhnák <[hidden email]> wrote:
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?
For changing the layout you can configure the presentation with #beVertical.
I made a small change so now icons are shown (latest version in moose). Cheers, Andrei
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Free forum by Nabble | Edit this page |