migrating mondrian to roassal - Menus

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

migrating mondrian to roassal - Menus

Ben Coman
just documenting another migration....
this in Mondrian...
    view interaction menuItems add: 'Browse class' -> [:a2 | a2 browse ].
    view interaction registerMenu.              
appears to become this in Roassal...
    view interaction item: 'Browse class' action: #browse.      

How do you get a context menu on the background?

btw, I see that ROEaselMorphic>>populateMenuOn:   calls  
#zoomInButtonOn:  which calls  #addMenu:callBack:
Does #addMenu:callBack always draw the item in a box?  Can you get
multiple items in one box?
 From an outside perspective if there can be only one item per box then
#addButton:callBack would seem a more appropriate name.

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

Re: migrating mondrian to roassal - Menus

abergel
> just documenting another migration....
> this in Mondrian...
>   view interaction menuItems add: 'Browse class' -> [:a2 | a2 browse ].
>   view interaction registerMenu.               appears to become this in Roassal...
>   view interaction item: 'Browse class' action: #browse.      
> How do you get a context menu on the background?

You can do for example:
-=-=-=-=-=-=-=-=-=-=-=-=
view nodes: (1 to: 50).
view raw @ (ROMenuActivable new
                                item: 'hello' action: #inspect;
                                item: 'world' action: #inspect).    
-=-=-=-=-=-=-=-=-=-=-=-=
(you need to update Roassal for this)

> btw, I see that ROEaselMorphic>>populateMenuOn:   calls  #zoomInButtonOn:  which calls  #addMenu:callBack:
> Does #addMenu:callBack always draw the item in a box?  Can you get multiple items in one box?
> From an outside perspective if there can be only one item per box then #addButton:callBack would seem a more appropriate name.

Good point. What would be the behaviour you wish to have?
I would like to have a way to have window menus like in any operating systems and window managers (e.g., File, Edit, View). You click on one of these names, you have a submenu that appears below.

Is this something you would like to have? This is on my todolist, and I can give a higher priority.

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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