| View previous topic :: View next topic |
| Author |
Message |
Dillonz Grandmaster Cheater
Reputation: 4
Joined: 20 Jan 2008 Posts: 758 Location: Under your bed
|
Posted: Tue Mar 11, 2008 10:34 am Post subject: Trying to make custom button help please! |
|
|
| 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 |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Tue Mar 11, 2008 2:46 pm Post subject: |
|
|
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 |
|
 |
Dillonz Grandmaster Cheater
Reputation: 4
Joined: 20 Jan 2008 Posts: 758 Location: Under your bed
|
Posted: Wed Mar 12, 2008 7:42 am Post subject: |
|
|
| It didn't work....
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Wed Mar 12, 2008 8:11 am Post subject: |
|
|
| 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 |
|
 |
Dillonz Grandmaster Cheater
Reputation: 4
Joined: 20 Jan 2008 Posts: 758 Location: Under your bed
|
Posted: Wed Mar 12, 2008 2:04 pm Post subject: |
|
|
| Too confusing lol. I don't understand what to add those codes to because I tried and it didn't work...
|
|
| Back to top |
|
 |
|