[haiku-3rdparty-dev] Re: SetViewColor for BString not working :-(

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Tue, 4 Oct 2016 07:32:41 -0400

On Tue, Oct 4, 2016 at 5:18 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:

Am 01/10/2016 um 17:35 schrieb Dennis Catt:
So I finally updated to the latest of Haiku nightlies and noticed with
one of the apps I developed has a bug where SetViewColor is not working
for a BStringView.  The SetHighColor still works however.  Is this a bug
or is it expected behavior.  I remember when I originally developed the
app on Haiku A4 when SetViewColor didn't work for BStringView then is I
had to use an extra BView in order to set a desired background color for
a BStringView.

It's likely a bug; please file a ticket at https://dev.haiku-os.org/ so that
it's not forgotten about.
The color setting has been gotten a bit more complicated in order to be able
to deliver live updates for color changes, so a bug might have sneaked in
there.
Have you tried with other controls than BStringView if they behave the same
for you? If you have sample code to demonstrate the misbehavior please add
it to the ticket as well.
Thanks!

I'm not sure. A lot changed in the SetViewUIColor upgrade, so this
could be a regression; or it could be an incompatibility we actually
fixed. I vaguely recall changing something relating to this.

-waddlesplash

Other related posts: