i'm using a ListView control and i've pretty much got it sussed apart from the sorting bit. i've got the sorting working no problem, but in a lot of programs the sort buttons (columnHeaders) have these little embedded arrows on them indicating which way the column is sorted in...
how do i do that??
Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."
Errrr...nope, u can't do that with a listview I am afraid
U will start to come across the limitations of microsofts controls.
That's why there is a huge marget for creating custom controls out there
Also, the sorting only sorts on strings
If you have the following in a column :
10
34
1
4
2
5
21
and click on the columnheader to sort it, you will get:
1
10
2
21
34
4
5
Booooooooooooooooooooooooooo
I have a module with some lovely API commands in it if you want?
It has some public functions in there and to sort on a column u use:
Hahahahaha...U r now realising the mistake of using a listview
The 1st column ALWAYS has to be Left alligned...Hahahaha.
Watch out for SubItems and ListSubItems
Each ListItem can have many ListSubItems, one for each column...Hahahaha. Gets messy
ListSubItems are the OBJECT equivalent of SubItems.
You can change color, icons, font, etc, whereas with SubItems u can't...The reason SubItems are there is coz that's how it was 1st designed and they had to keep it in there to support older apps which used it