Hi,
The problem is that Mondrian either expects a morph or a list of
actions.
If you want to add your item to the Moose menu, you have to add it to
the MenuMorph.
For example:
menu := FAMIXClass new mooseMenuMorph.
menu
add: 'Your item '
target: [ 'x' inspect ]
selector: #value.
menu openInWorld
Cheers,
Doru
On 20 May 2010, at 09:57, Cyrille Delaunay wrote:
Ok
But when I wrote
view interaction menuMorphBlock: [ :element | element
mooseMenuMorph ].
view item: 'browse code' action: [:element | UIManager default
edit: element sourceCode].
The item 'browse code' doesn't appear in the menu (probably because
the mooseMenu is set as menu and can not be changed).
I wonder if there is an easy way to have a menu with: (mooseMenu
items + my own items)
2010/5/19 Veronica Isabel Uquillas Gomez <vuquilla(a)vub.ac.be>
Hi Cyrille,
it is using:
view interaction item: ......
On 19 May 2010, at 11:03, Cyrille Delaunay wrote:
Hello,
When I want to view the moose menu by right-clicking on a mondrian
element, I
have to add this to the script:
view interaction menuMorphBlock: [ :element |
element
mooseMenuMorph ].
But, when I also want to have my own specific action:
view item: 'browse code' action: [:element |
UIManager
default edit: element sourceCode].
this last one does not appear in the menu.
Is there any way to do that (to have both the moose menu and my
own actions in a
same frame)?
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev