[haiku-development] Re: tracker patch

On 2007-05-29 at 20:38:00 [+0200], Michael Berg <mike@xxxxxxxxxxx> wrote:
> I've looked at the code a bit, here's what I see.
> 
> The team items are held in TExpandoBar.  Which is descended from BMenuBar.
>  BMenuBar is a customized BMenu.  BMenu's as top level or 'root' menus do
> not scroll.
> 
> So in order to get TExpandoBar to scroll we have to either change BMenuBar
> to allow for scrolling or introduce a new view that TExpandoBar would sit in
> and be scrolled by.  I think that the BMenu, BMenuBar and BMenuItem
> hierarchy would benefit from the changes but I don't know what others would
> think to reworking the internals of them.  I think that adding scrolling to
> TExpandoBar directly would become a very ugly hack.  Adding a new view into
> the mix, while very basic could hinder performance.

I don't see adding a view having an impact on performance.

> The best bet would be to reimplement BMenu as a BMenuItem descendant.

This is no option at the moment, since we aim for BeOS R5 binary 
compatibility.

CU, Ingo

Other related posts: