GLMTabulator buttons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

GLMTabulator buttons

Peter Uhnák
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.

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?

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
Reply | Threaded
Open this post in threaded view
|

Re: GLMTabulator buttons

Juraj Kubelka
Hi,

From what I remember, the action list has to be improved to change layout. Currently, it is a simple presentation. 

Juraj

On Oct 17, 2017, at 06:42, Peter Uhnák <[hidden email]> 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.

<image.png>

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


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: GLMTabulator buttons

Andrei Chis
In reply to this post by Peter Uhnák
Hi,

On Tue, Oct 17, 2017 at 11:42 AM, Peter Uhnák <[hidden email]> 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?
 

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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev