Hi,

Le 25 nov. 2014 à 18:14, Usman Bhatti a écrit :

On Tue, Nov 25, 2014 at 2:48 PM, Christophe Demarey <Christophe.Demarey@inria.fr> wrote:

Le 25 nov. 2014 à 13:50, Tudor Girba a écrit :

Hi,

act:entitled: will produce a menu item on the top right of the table. Is it not there?

ok, it is there. I did not notice the ... on the top right corner. I was expected a contextual menu. Thanks.
By the way, is there something available for contextual menus (ex: action on the selection)?

From Glamour examples (GLMBasicExamples):

| finder |
finder := GLMFinder new variableSizePanes.
finder show: [:a | a list
title: 'List';
display: [:each | $a to: each];
dynamicActionsOnSelection: [:list | {(GLMGenericAction new)  "add contextual actions"
action: [:each | self inform: 'Menu - Item', list selection printString]; 
title: 'Menu - Item ', list selection printString; 
yourself}];
act:#inspect icon: (Smalltalk ui icons iconNamed: #removeIcon) entitled:'my button' ]. "button for presentation"
finder openOn: $z

You get a contextual menu on the list and button on the presentation.
Hope it helps.

Yes, thanks a lot.

Christophe.