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)?
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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
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@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
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@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Speaking louder won't make the point worthier."
I haven't had a look at it yet. I will address this soon. It has been asked more than once already.
Cheers, Alexandre
On 21 May 2010, at 07:02, Tudor Girba wrote:
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@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Speaking louder won't make the point worthier."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Cyrille,
Please, update Mondrian with its last version. This issue is now fixed.
Cheers, Alexandre
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@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev