[haiku-development] Re: Issues customizing BTabView

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 16 Apr 2018 12:32:04 -0400

On Mon, Apr 16, 2018 at 12:26 PM, Kacper Kasper <kacperkasper@xxxxxxxxx> wrote:

2018-04-16 18:19 GMT+02:00 Kacper Kasper <kacperkasper@xxxxxxxxx>:
Yes, that's what the original question was about, thanks. _BTabData_
will come handy in that case I suppose. Do you think that's a blocker
or can we land the patch as is and fix when an issue crops up?

Sorry for double posting, but I found relevant documentation:
https://www.haiku-os.org/legacy-docs/bebook/BTab.html
"The Label() function returns the tab's label. The label is the same
as the target view's name."

Does this mean we can't fix this, or just need the solution outlined
in Stephan's post?

A potential way to deal with it might be to respect that behavior only
for R5 binaries. BTabView already has some compatibility behavior of
that nature in it, namely that R5's variant of it actually
removed/added views as you switched tabs rather than showing/hiding
them. We behave the same way unless the view is contained in a layout,
which obviously implies it was built for Haiku. The behavior in this
patch could work similarly.

Regards,

Rene

Other related posts: