Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Sorting in List view?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
faizangmc
Expert Cheater
Reputation: 0

Joined: 12 Nov 2013
Posts: 167

PostPosted: Sun Jul 12, 2015 12:15 pm    Post subject: Sorting in List view? Reply with quote

Hi, I have a data with 5 columns and many rows in a listview.
Is there any script that allows sorting of the data in listview after creating a trainer?

What the trainer does is extract all the 4000 player's data in the game (its a simulation game like football manager that is why so many players). And then displays all that data in a huge list.

But I want a script that will allow me to sort the data in a particular column. Like if click on the ability column header. All data should be arranged with descending order of ability. This wil show me the top 10 players with highest ability in a glance.

Can it be done. Thanks
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Jul 12, 2015 1:12 pm    Post subject: Reply with quote

Yes, implement OnColumnClick and in there clear the list, sort it internally, and then rebuild the list

(I guess just setting the SortColumn, SortDirection and SortType properties on ColumnClick works too, but it's not as accurate as sorting yourself)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
faizangmc
Expert Cheater
Reputation: 0

Joined: 12 Nov 2013
Posts: 167

PostPosted: Sun Jul 12, 2015 7:16 pm    Post subject: Reply with quote

Thnk u for the reply db.
Can you please give me a basic example script for on column click?
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites