Hi,
I've encountered a problem with submenus in Spec's MenuModel. When opening a submenu it throws MNU MenuMorph>>activatedFromDockingBar:. It can be reproduced by opening "ApplicationWithToolbar new openWithSpec" and clicking on "File". I'm not familiar with the internals of Morphic so I do not know what the issue is. Also there seems to be some TxApplicationWithToolbar; is TX something I should be aware of? E.g. something that is going to replace Spec or something? Thanks, Peter |
Hi peter
in which version of Pharo are you? I cleaned a lot menu in 40 so this is probably related. Do you have an example I could execute? Stef > Hi, > > I've encountered a problem with submenus in Spec's MenuModel. When > opening a submenu it throws MNU MenuMorph>>activatedFromDockingBar:. > It can be reproduced by opening "ApplicationWithToolbar new > openWithSpec" and clicking on "File" > I'm not familiar with the internals of Morphic so I do not know what > the issue is. > > Also there seems to be some TxApplicationWithToolbar; is TX something > I should be aware of? E.g. something that is going to replace Spec or > something? it was there. > > Thanks, > Peter |
2014-12-14 11:04 GMT+01:00 stepharo <[hidden email]>: Hi peter Yes this happens on Pharo 4. ApplicationWithToolbar new openWithSpec then, open the "File"-menu -> MenuMorph(Object)>>doesNotUnderstand: #activatedFromDockingBar:
|
Yes, Pharo 4
|
So then this is probably my mistake. Now I will not have the time to
work on it before at least a week.
Too many other things to do that are not Pharo related. Stef Le 14/12/14 17:24, Peter Uhnák a
écrit :
|
Stef refactored all dockingbar related things out of MenuMorph into DockingBarMenuMorph, the - create a popup menu from a specproblem is, spec does not distinguish between MorphicMenuAdapter to create a MenuMorph (for popup menus) and DockingBarMenuMorph (for the other one). implements special adaptAsX method, all this (popup-)menu related build/adapt methods looks like a hack. 2014-12-14 21:15 GMT+01:00 stepharo <[hidden email]>:
|
Hi nicolai
could you publish your code somewhere? Le 20/12/14 01:32, Nicolai Hess a
écrit :
I do not remember the use of DockingBarMenuMorph (sigh... doing too mnay things). But is it needed?
May be we should push your change. It is certainly a hack. Menu were not really thought.
|
2014-12-20 9:54 GMT+01:00 stepharo <[hidden email]>:
see attachement dock_menu_spec.cs dock_menu_spec.cs (2K) Download Attachment |
I created an issue here https://pharo.fogbugz.com/f/cases/14829/Spec-MenuModel-submenu-not-working I also found the breaking commit https://github.com/pharo-project/pharo-core/commit/1c3c757366ba2cad8f367ee957a228d54414fd74 but Stef probably knows best what was going on there. Peter On Sat, Dec 20, 2014 at 8:03 PM, Nicolai Hess <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |