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 


Adding Many items in a ListBox

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MrAsk
How do I cheat?
Reputation: 0

Joined: 20 Sep 2020
Posts: 7

PostPosted: Mon Oct 26, 2020 12:30 am    Post subject: Adding Many items in a ListBox Reply with quote

I am going to add a Long List of Items in a Listbox.
Is there any way to lessen the burden of adding strings?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Oct 26, 2020 1:20 am    Post subject: Reply with quote

do the add() calling between a listbox.items.beginUpdate()/endUpdate()

you can also prepare the strings in a single multi-line lua string and then pass that to the .Text property

_________________
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
MrAsk
How do I cheat?
Reputation: 0

Joined: 20 Sep 2020
Posts: 7

PostPosted: Mon Oct 26, 2020 3:53 am    Post subject: Reply with quote

Thank you very much
Lastly, Is there a way to make a Search Box for the List?

So when people type in the search bar, it finds the item in the ListBox
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Oct 26, 2020 3:57 am    Post subject: Reply with quote

add an editbox and in the onchange function add some code that scans though the listbox for a match, and if there is a match set the listbox ItemIndex property to the correct location

alternatively, instead of setting the itemindex you could create a secondary list with just the results and apply that to the listbox

_________________
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
MrAsk
How do I cheat?
Reputation: 0

Joined: 20 Sep 2020
Posts: 7

PostPosted: Mon Oct 26, 2020 6:21 am    Post subject: Reply with quote

Works
Thank you very much
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 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