[haiku-commits] Re: haiku: hrev44824 - src/apps/deskbar

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Mon, 12 Nov 2012 22:34:49 -0500

This represents almost a year or work so it might be a bit hard to
follow the commits, sorry about that.

Basically the main class, which is what allows for scroll arrows,
started off in Interface Kit called BScrollMenu, got moved and renamed
a couple of times and ended up in Deskbar called TInlineScrollView.
However, the class is independent of anything Deskbar-specific and
probably could be added as an independent class in Interface Kit again
if it proves be more generally useful.

Basically you define the limits of the view and AddChild to an
InlineScrollView and when you expand past those limits scroll arrows
are added to the parent (InlineScrollView) view, kind of like scroll
bars work for a BScrollView.

Both horizontal and vertical scrolling work when you run out of space
scroll arrows are automatically attached and detached. I wanted to
wait for after alpha4 to push this because although I've done a bunch
of QA there could be subtle bugs I missed and I'd rather they be found
in a nightly than a release.

Other related posts: