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 


Custom buttons with images?

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

Joined: 30 Dec 2023
Posts: 26

PostPosted: Sat Dec 30, 2023 11:29 pm    Post subject: Custom buttons with images? Reply with quote

How can you make buttons to have custom images? I'm stump what to do
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Sun Dec 31, 2023 12:32 am    Post subject: Reply with quote

You can see the relevant documentation here: /celua.txt/CECustomButton
Back to top
View user's profile Send private message
dan013
Cheater
Reputation: 0

Joined: 30 Dec 2023
Posts: 26

PostPosted: Sun Dec 31, 2023 12:57 am    Post subject: Reply with quote

LeFiXER wrote:
You can see the relevant documentation here:


Sorry, but I don't get it. I just read the documentation. I don't see any related to fixing my problem. It just custom colors.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Sun Dec 31, 2023 2:16 am    Post subject: Reply with quote

You have to code your own function to handle the
Quote:
OnPaint
event whilst setting the
Quote:
CustomDrawn
property to true. It's a lot of work for what you want to achieve. Another option can simply be using an image component and update the image when the mouse enters the image boundary which reverts back to the initial image when the mouse leaves the boundary.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Sun Dec 31, 2023 3:36 am    Post subject: Reply with quote

Check it out here.

https://forum.cheatengine.org/viewtopic.php?t=613352

Maybe you could use your own images.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
dan013
Cheater
Reputation: 0

Joined: 30 Dec 2023
Posts: 26

PostPosted: Sun Dec 31, 2023 8:28 am    Post subject: Reply with quote

LeFiXER wrote:
You have to code your own function to handle the
Quote:
OnPaint
event whilst setting the
Quote:
CustomDrawn
property to true. It's a lot of work for what you want to achieve. Another option can simply be using an image component and update the image when the mouse enters the image boundary which reverts back to the initial image when the mouse leaves the boundary.


I might do that if that's the case. anyways thanks

AylinCE wrote:
Check it out here.

Maybe you could use your own images.


I want to try it but the file is been deleted. If you would mind to reupload it. thanks .
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Sun Dec 31, 2023 9:07 am    Post subject: Reply with quote

Updated
_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
dan013
Cheater
Reputation: 0

Joined: 30 Dec 2023
Posts: 26

PostPosted: Sun Dec 31, 2023 10:46 pm    Post subject: Reply with quote

AylinCE wrote:
Updated


Thanks this will help alot
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