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

  • From: Dennis Catt <dcatt.haiku@xxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Fri, 07 Oct 2016 19:26:45 -0400

Axel Dörfler 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!

Bye,
   Axel.

Axel,

I'll try to play around with it some more this weekend.  I re-ordered
some code to get around it where I don't SetViewColor to the BStringView
until after it's been added to its parent BView.  The funny part is,
that also works in the case of A4 though I figured it would and wish I'd
would have thought of that before now.

-DCatt


Other related posts: