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

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Mon, 7 Dec 2009 17:47:35 -0600

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: