Although I have been using FXIconList as a listview in my applications,
it is missing a few things like column justification and gridlines. So,
I started playing around with FXTable to see if I could get it to work
as a listview.
I have pretty much gotten it working like I would want. Here are the
advantages/disadvantages I have noticed between using FXTable or
FXIconList as a listview widget:
FXTable
---------
Advantages:
* Gridlines
* Column justification
* Looks nicer (IMO)
* Can specify custom column header arrow.
Disadvantages:
* Lose column resizing (I know FXTable has column resizing, but I had to
turn it off to get the rest of my sample app to work right.)
* You have to do your listview sorting outside of the listview, instead
of letting the widget handle it.
Anyway, I have include a sample program that demonstrates how it looks.
Give it a try. If you figure out a better way to do something in the
program, please let me know.
Thanks.
Jamey Cribbs
|