1. Listview column sorting

Does anyone know how I can tell Windows(tm) to use my own comparison 
function when sorting listview columns rather than its own kinda 
alphabetic/numeric one? I have some values like durations in minutes & 
seconds which sort stupidly as it is. With my own comparison function it 
would be OK (eventually, probably).

Andy Drummond

new topic     » topic index » view message » categorize

2. Re: Listview column sorting

----- Original Message ----- 
From: "Andy Drummond" <andy at kestreltele.com>
To: <EUforum at topica.com>
Subject: Listview column sorting


> 
> 
> Does anyone know how I can tell Windows(tm) to use my own comparison 
> function when sorting listview columns rather than its own kinda 
> alphabetic/numeric one? I have some values like durations in minutes & 
> seconds which sort stupidly as it is. With my own comparison function it 
> would be OK (eventually, probably).
> 

If you are using win32lib, you can call setLVAttr() to link in your own sorting
routine.

Read the docs for details and see "ListTreeView.exw" in the demo folder for an
example.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu