Sign in to follow this  
Followers 0
Ghastly_MIB

Sorting Listview

10 posts in this topic

#1 ·  Posted (edited)

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

All the items have the standard (first) icon.

Edited by Ghastly_MIB

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Isn't there an other way?

Edited by Ghastly_MIB

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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.

 

Share this post


Link to post
Share on other sites

I found an other way, but thanks any way.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

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.

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Sorry but it isn't realy keep the icons.

I have made a script with search function.

And it need a icon for a file type.

I just let it search the icon again and so it's done.

I'm sorry it's not a solution your looking for..

Ghastly_MIB

Share this post


Link to post
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.

 

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