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 


How to add combobox items by lua?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Mon Oct 01, 2012 12:37 pm    Post subject: How to add combobox items by lua? Reply with quote

How to add combobox items by lua? we can just add items by the form designer . but it'd be better if we can add dynamic items to an empty combobox.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Oct 01, 2012 1:27 pm    Post subject: Reply with quote

First get the Items object of the combobox ( combobox_getItems)
Then use the strings_ class function to modify the list.
E.g strings_add to add items

_________________
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
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Mon Oct 01, 2012 1:31 pm    Post subject: Reply with quote

thanks alot , i ll try it now Very Happy
Back to top
View user's profile Send private message
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Wed Oct 03, 2012 9:24 am    Post subject: Reply with quote

combobox_getCanvas(combobox)

seems to be a powerful function , what is it ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Oct 03, 2012 10:42 am    Post subject: Reply with quote

getCanvas returns the Canvas object. It's the object used to render the combobox on the form
There's not much use for a combobox besides making a image of it though as the rendering is native you can't override it with an onPaint like you can with the form's onPaint 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
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Thu Oct 04, 2012 10:45 pm    Post subject: Reply with quote

1.Can we pass parameter in form designer mode to updateamountcombobox function?

Code:
function updateamountcombobox(type)
       --code here
end
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