Sontec Posted January 5, 2012 Share Posted January 5, 2012 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 More sharing options...
arcker Posted January 5, 2012 Share Posted January 5, 2012 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 More sharing options...
Sontec Posted January 5, 2012 Author Share Posted January 5, 2012 (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 January 5, 2012 by Sontec Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now