[haiku-3rdparty-dev] Re: Attaching a BScrollBar to a BListView

  • From: Fredrik Modèen <fredrik@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sun, 29 Nov 2009 10:22:54 +0100 (CET)

> Hi!
>
> As the title suggests, I cant seem to be able to attach a scoll bar to the
> list view. I have a list view defined called fEventList.
>
> I created a BScrollBar from an example I saw in the grok search:
> *fScrollBar = new BScrollBar(Bounds(), "MyScrollBar", fEventList, 0, 100,
> B_VERTICAL);
> *
> I put in fEventList as the target view. However, when I run the
> application,
> I dont see any scroll bar. Any reasons why this might be happening?
I guess you added the fScrollBar to the view or window and not fEventList?


>
> Thanks and regards,
> Yash
>


-- 
MVH
Fredrik Modèen


Other related posts: