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 


Trying to make custom button help please!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Dillonz
Grandmaster Cheater
Reputation: 4

Joined: 20 Jan 2008
Posts: 758
Location: Under your bed

PostPosted: Tue Mar 11, 2008 10:34 am    Post subject: Trying to make custom button help please! Reply with quote

I'm trying to make a custom button that's an .ocx file. I'm using a picture for the button and I want the picture to change when I click it. I also want to add the feature where I can add text to the button. PM me, please and thank you!
Back to top
View user's profile Send private message MSN Messenger
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Tue Mar 11, 2008 2:46 pm    Post subject: Reply with quote

Use an image, and use Image1_Click(), Image1_MouseUp(), and Image1_MouseDown() when clicked to cheange the picture.
_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
Dillonz
Grandmaster Cheater
Reputation: 4

Joined: 20 Jan 2008
Posts: 758
Location: Under your bed

PostPosted: Wed Mar 12, 2008 7:42 am    Post subject: Reply with quote

It didn't work....
Back to top
View user's profile Send private message MSN Messenger
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Wed Mar 12, 2008 8:11 am    Post subject: Reply with quote

Quote:
Use an image, and use Image1_Click(), Image1_MouseUp(), and Image1_MouseDown() when clicked to cheange the picture.


Code:
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Place code to change when the mouse button is held down on the image.
End Sub

Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
' Code for when the mouse button is released
' Tip: Return image to normal, do what/ever the button should do.
End Sub


What's not working with that?

Also, there's a lot more to coding an OCX than just that, you need to create export functions etcetera, so not just that will work.
Back to top
View user's profile Send private message
Dillonz
Grandmaster Cheater
Reputation: 4

Joined: 20 Jan 2008
Posts: 758
Location: Under your bed

PostPosted: Wed Mar 12, 2008 2:04 pm    Post subject: Reply with quote

Too confusing lol. I don't understand what to add those codes to because I tried and it didn't work...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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