On 01/06/2018 15:25, Peter Uhnák wrote:
> Hi,
> 
> I really love this idea. I've already added (hacked together) something
> similar for some of my projects so I am happy to see this is going into
> Pharo.
> 
>> - Make it parametrizable to allow users to build a bar with their own menu 
>> builder
> 
> I would love if it was possible to somewhere (Settings?) just specify a
> pragma that should be used for the construction of the menu... or
> perhaps even a list of pragmas. That way the existing mechanism can be
> simply reused and custom menus can be created just as easily.
> I think this should be very easy to add.
> 

I don't know if it should be in the SettingBrowser since Pharo currently
comes with only one menu (if someone know how to implement a new one it
will be easy for him to find the option to change the pragma of the
MenuBarMorph), but the pragma should be parametrizable in any case.

> I would really love to have this option also for the regular world menu,
> but I didn't find a way to easily achieve that.
> 
>>  - What do we do when Pharo is not wide enough?
> 
> Hamburger menu?

I'll rephrase, we have ideas to manage all those problems but how do we
implement it? Currently there is no widget to do that and sadly we don't
have enough time to create them :(

> 
>>  - What to do when a window is dragged behind?
> 
> Currently you cannot drag window above the top side (which I've learned
> only now :-D ), so the constraint would just move a bit lower?

Yes, but for now when can detect a drop on the menu bar only if the
cursor is over the MenubarMorph. If the user drop the window by dragging
the bottom, the top of the windows will be under the MenubarMorph.

> 
> Also, is it (easily) possible to configure the position of the menu?
> Both top/down, as well as RTL and LTR direction (or right-aligned LTR)
> which I mentioned for the bottom menu in an earlier github discussion.
> 

For now I don't think so. I think it would be cool to integrate this
first version then everyone can try to improve it.

> Peter
> 
> 


-- 
Cyril Ferlicot
https://ferlicot.fr

Reply via email to