[haiku-3rdparty-dev] Re: Setting a BStringView in a BWindow

  • From: "Yashasvi A.C." <yashasviac@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Tue, 15 Dec 2009 01:35:11 +1300

Hi!

I have tried that, but it still doesn't display anything.

Regards,
Yash

On Tue, Dec 8, 2009 at 12:47 PM, Rene Gollent <anevilyak@xxxxxxxxx> wrote:

> On Mon, Dec 7, 2009 at 5:03 PM, Yashasvi A.C. <yashasviac@xxxxxxxxx>
> wrote:
> > This is the code that I have used. Its just white displayed on the
> window.
>
> That's to be expected as a) BTextView's default background color is
> white, and b) you haven't given it any text to display. If you want it
> to match the panel's color, you can do:
>
>  result->SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR));
>
> To add some text to it, result->SetText("Your text here"); should do.
>
> Regards,
>
> Rene
>
> >
> > Thanks and regards,
> > Yash
> >
>
>

Other related posts: