Jump to content

Sorting Listview


Recommended Posts

When i'm sorting a listview, all the items losses their icons.

All the items have the standard (first) icon.

Can you follow the recommendation for posting a bug?

See at the top of this subforum.

Perhaps you post to a wrong forum.

Link to comment
Share on other sites

I tried that UDF but it won't work

The key thing is, is it's not a bug, you'll have to create your own sort to deal with listview with images.

The example I posted there works for me.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Might help the users on the forum if you told how.

Yeah, would be very helpfull B)

BTW: I'm still working on a buildin "GUICtrlListViewSortRegister(listviewID, userfunction)"-callback-function.

It's not perfect at the moment but it will then call a userfunction with 3 parameters: 1st value, 2nd value and clicked-column, so everybody you could then use this callback-function.

The only thing you have to do is then to return the right value (1 or -1).

So you could compare the values like you want (as numbers, string, whatever).

...

But needs a little more time cause at the moment I'm working again on the GUIGetMsg(1/2)-extensions/GUIMsgRegister() to get more Windows-messages and so on...

So long :o

Holger

Link to comment
Share on other sites

Yeah, would be very helpfull B)

BTW: I'm still working on a buildin "GUICtrlListViewSortRegister(listviewID, userfunction)"-callback-function.

It's not perfect at the moment but it will then call a userfunction with 3 parameters: 1st value, 2nd value and clicked-column, so everybody you could then use this callback-function.

The only thing you have to do is then to return the right value (1 or -1).

So you could compare the values like you want (as numbers, string, whatever).

...

But needs a little more time cause at the moment I'm working again on the GUIGetMsg(1/2)-extensions/GUIMsgRegister() to get more Windows-messages and so on...

So long :o

Holger

Looking forward to those, and the ControlTreeView i believe you started on :graduated:

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...