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 


CEPageControl1>TabSheet1 : Read/Set anything on TabSheet1

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

Joined: 23 Sep 2020
Posts: 26

PostPosted: Wed Sep 23, 2020 7:01 am    Post subject: CEPageControl1>TabSheet1 : Read/Set anything on TabSheet1 Reply with quote

Im trying to make my GUI nicer by using a Tabbed Sheets.

I for some reason cannot find how to read/write anything in a TabSheet...

I can :
Code:
charactername=addresslist_getMemoryRecordByDescription(getAddressList(), "Char Name")
cn1=memoryrecord_getValue(charactername)
control_setCaption(UDF1_CELabel1, cn1)


And obviously CELabel1s caption will change accordingly.

But I cant find out to do that for anything contained in a PageControl>TabSheet..

Thx Again!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Sep 23, 2020 7:06 am    Post subject: Reply with quote

UDF1.ControlName lets you access the controls in pagecontrol regardless of what the current tabsheet is set to (Assuming you created it using the form designer)
_________________
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
pursuited357
Cheater
Reputation: 0

Joined: 23 Sep 2020
Posts: 26

PostPosted: Wed Sep 23, 2020 7:10 am    Post subject: Reply with quote

Dark Byte wrote:
UDF1.ControlName lets you access the controls in pagecontrol regardless of what the current tabsheet is set to (Assuming you created it using the form designer)


I found my mistake... I dont know why it wasnt working at first, but it was same concept as all other captions...

Code:
control_setCaption(CETrainer_CharacterName, charname)


And CharacterName was in the TabSheet the whole time...

Dunno why it wasnt working before... But it does now..

Thx again!
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