Jump to content

Sort Viewlist on itembackground or (icon)image


 Share

Recommended Posts

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?

Link to comment
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]
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...