BTabView - Tabs on left, right or bottom

I would like to make (an effort to) XiXMusicPlayer from scratch using only Haiku API.
In Lazarus it was posible to place tabs where you want, but using the Haiku API I only see the possibility to have them on top.
Is it possible to have the tabs not on top?

1 Like

I don’t see it documented, but I knew I had seen it done before. Skimming the source (I mean I have not tested it), it seems you’d want to SetTabSide(BTabView::kLeftSide) on your BTabView..

2 Likes

Thanks @madmax , that did the trick.

Schermafdruk_20260425_200533

2 Likes

Side tabs are supported. The most prominent place they are implemented in Haiku is the PowerStatus/Battery Desklet. I even made side tabs work in BeControlLook if you’re into that kind of thing. You can look there to see how it was done.

1 Like

Can icons be used instead of string labels ?
Because in vertical orientation, it will make way more sense to have icons to spare space.

An icon with tooltip text, ideally…

Using SetTabSide(BTabView::kLeftSide) worked fine.
I still trying out the layout with BLayoutBuilder. It is very different than using a RAD as Lazarus.
Probably I am doing a lot wrong.
I will be putting it up on Github, so that it will be possible to learn from my mistakes :slight_smile:

1 Like