|
-
Aug 30th, 2000, 11:42 AM
#1
Thread Starter
Hyperactive Member
Is there any way to change the font color on buttons? I need to change it to white...
VB6.0 SP4
Windows 2000
I'm thinking of a number between
-
Aug 30th, 2000, 11:45 AM
#2
You can do it with subclassing, but it'll be much easier if you use the Button that is shipped with Sheridan 3D Controls.
-
Aug 31st, 2000, 05:13 AM
#3
Conquistador
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?
-
Aug 31st, 2000, 06:08 AM
#4
transcendental analytic
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.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 31st, 2000, 07:58 AM
#5
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.
-
Aug 31st, 2000, 08:48 AM
#6
Thread Starter
Hyperactive Member
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....
VB6.0 SP4
Windows 2000
I'm thinking of a number between
-
Sep 1st, 2000, 04:45 AM
#7
Conquistador
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.
sorry, i was just giving him the easiest solution for his problem, and didn't know that these sheridan controls were so "nifty"!
-
Sep 1st, 2000, 09:18 AM
#8
Add the file called Threed32.ocx to your components.
-
Sep 1st, 2000, 09:40 PM
#9
Thread Starter
Hyperactive Member
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...
VB6.0 SP4
Windows 2000
I'm thinking of a number between
-
Sep 1st, 2000, 09:47 PM
#10
Conquistador
where can i find threed32.ocx?
-
Sep 1st, 2000, 10:17 PM
#11
Thread Starter
Hyperactive Member
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
VB6.0 SP4
Windows 2000
I'm thinking of a number between
-
Sep 1st, 2000, 10:35 PM
#12
_______
<?>
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.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 4th, 2000, 05:49 AM
#13
Conquistador
-
Sep 4th, 2000, 07:07 AM
#14
Re: <?>
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.
But a CheckBox doesn't act as a CommandButton.
-
Sep 4th, 2000, 07:27 AM
#15
Addicted Member
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.
Regards,
Laurens
Using VB5 Enterprise edition SP3
VB6 Enterprise edition SP5
-
Sep 4th, 2000, 07:55 AM
#16
No it doesn't! It looks like a CommandButton but it doesn't act as a CommandButton!
-
Sep 4th, 2000, 02:20 PM
#17
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
-
Sep 4th, 2000, 03:52 PM
#18
Thread Starter
Hyperactive Member
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
VB6.0 SP4
Windows 2000
I'm thinking of a number between
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|