[haiku-development] BMenuBar scrolling support

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 19 Dec 2011 16:32:16 -0500

I'd like to refactor BMenuBar to support scrolling like implemented in
BMenuWindow for BMenu's now.

I need this feature for Deskbar (which derives from BMenuBar) to support
the case where you have more apps open than will fit on the screen.

My initial thought is create a new class BMenuScroller class, put the
common stuff in there and then utilize that class in both BMenuWindow and
BMenuBar.

I am not sure how much code reuse is possible but there will be most
certainly be many differences between the implementation of scrollers in
BMenuWindow and BMenuBar.

Any suggestions on how the best way to handle this would be?

John Scipione

Other related posts: