Sign in to follow this  
Followers 0
Sontec

Sort Viewlist on itembackground or (icon)image

3 posts in this topic

I am making a Viewlist to show Active Directory users.

For disabled users, I plan to change the itembackground color to red or add a red cross icon in front of the item.

Is it possible to sort these items on icons or itembackground?

Share this post


Link to post
Share on other sites



Yes, but you'll have to handle this in your listview call back sort function.

to simplify, don't sort with the text between item A and item B but get their backgroundcolors or their image ( icon ).

Alernative,I would go with an hidden column or an array that stores all the listview item.


-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi arcker, I don't understand exactly what you mean with your first two lines.

Did you mean I have to use _GUICtrlListView_RegisterSortCallBack?

Do I have to write my own sort routine?

Your idea of using an hidden "sort" column was indeed one of the things I was thinking of...

I 'll go with the hidden column option for now :-), but other solutions are also welcome.

Arcker thanks for your valuable input!

Martijn (Sontec)

Edited by Sontec

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0