[haiku-3rdparty-dev] Re: Changing the color of a text sequence in a BTextView

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Mon, 28 Nov 2011 11:49:04 -0500

On Mon, Nov 28, 2011 at 11:47 AM, Robert Stiehler
<r.stiehler85@xxxxxxxxxxxxxx> wrote:
> The result of this code is that the complete text in the BTextView
> "_txtMessages" become blue, but what i want is that just the "you> " becomes
> blue. Knows someone what i do wrong?

Did you call SetStylable(true); on that BTextView? If not, it will
only support a single style and thus affect all text in there.

Regards,

Rene

Other related posts: