Originally Posted by
paul_nicholls
Originally Posted by
Delfi
my code does sorting as well, but i use listview to do custom sort on the data for which i return the surface area of a rectangle to sort by and the listview sorts the items properly.
Hi Delfi :-)
I was trying to alter your code to use a stand-alone class and not a VCL component to make it more portable, but I am having difficulty for some reason...I don't suppose you could alter the code to do this?
cheers,
Paul
Yeah sorry about that, you'll have to store the rectangles in custom structures and do the sorting manually, if you need a quick sorting algorythm, the openal audio library wrapper in my sig has a simple quicksort algorythm implemented.
Bookmarks