Is there any way to change the font color on buttons? I need to change it to white...
Printable View
Is there any way to change the font color on buttons? I need to change it to white...
You can do it with subclassing, but it'll be much easier if you use the Button that is shipped with Sheridan 3D Controls.
actually, it would be much easier if you used the button shipped with microsoft office 97
open the components box
select microsoft forms 2.0 object library
insert the command button from that library
and hey presto, it has a forecolor property
therefore allowing you to change the font color
did this help you?
You could do with a label, with a picturebox, image, anything, you could even make your own usercontrol for it.
I wouldn't add add another control for the sake of colored font button.
You don't have to use it just for the ForeColor. The button I referred to has some other features such as 3D text and heavy/light shadowing. In addition to that, there are other controls in the package that might be of use to you.
where can i get the Sheridan 3D Controls, I'll probably use the Micrsoft Office Buttons on this one, but i'm always looking for nifty new controls that i can convince the boss to buy, believe me i wouldn't even be messing with this if the end user didn't insist on silly blue buttons with white letters....
sorry, i was just giving him the easiest solution for his problem, and didn't know that these sheridan controls were so "nifty"!Quote:
Originally posted by Megatron
You don't have to use it just for the ForeColor. The button I referred to has some other features such as 3D text and heavy/light shadowing. In addition to that, there are other controls in the package that might be of use to you.
Add the file called Threed32.ocx to your components.
What about the liscensing info on Threed32.ocx?
sorry, my parents were related, i can't think for myself
or maybe it was that last beer...
where can i find threed32.ocx?
Try this
Open Project|Components then click browse , it should open to your windows system folder, double click on threed32.ocx you may also need to go to you Windows|System file in explorer and double click vbctrls to register it
Actually you can do it much simpler.
Add a CheckButton
Set it's sytle to Graphical
Presto..you have a command button with backcolor/forecolor
Trust me...you have to see this to believe it.
pretty clever
But a CheckBox doesn't act as a CommandButton.Quote:
Originally posted by HeSaidJoe
Actually you can do it much simpler.
Add a CheckButton
Set it's sytle to Graphical
Presto..you have a command button with backcolor/forecolor
Trust me...you have to see this to believe it.
That's what I thought when I got the same reply to this question (even form the same person if I remember well), but it really works.
No it doesn't! It looks like a CommandButton but it doesn't act as a CommandButton!
But you can make it act like one with a little bit of code.
Code:Private Sub Check1_Click()
If Check1 = Checked Then Exit Sub
Print "Button was pressed"
End Sub
Private Sub Check1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Check1 = Unchecked
End Sub
i just wanted to change the button color and font, i've since decided it looked silly and went back to the same old Command button :)