[haiku-development] Re: List with columns

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 2 May 2012 23:00:01 -0400

Hi David,

On Wed, May 2, 2012 at 10:24 PM, David Rawson Couzelis <drcouzelis@xxxxxxxxx
> wrote:

> I'm developing an application for Haiku. I'd like to add a list with
> columns and sortable column headers. (like in a Tracker window)
>
> Does a widget like that already exist in the Haiku API?
>

Yes, it is called a BColumnListView and can be found in
src/kits/interface/ColumnListView.cpp

I recently worked with one in the GLInfo app. You can look
in src/tests/kits/opengl/glinfo/CapabilitiesView.cpp for an example of one
being used. You can see the app in action by loading up
/boot/system/apps/GLInfo on a recent nightly. I took of a screenshot of the
app when I worked on it, it looks like this:

http://26.media.tumblr.com/tumblr_m2luz8Tuqu1r0f0hfo1_500.png

Does that look like something close to what you are looking for?

A warning though, the class is private so could (and most likely will)
change before R1.

John Scipione

Other related posts: