Can't change button font color

Create a form. Add a button. Change the font color to red, change the caption. According the the help file, changing the color in the fonts portion should change the color of the text on the button, and yet it doesn't appear to do so. Anyone have an idea what I'm missing here? Changing to bold face or underline changes the caption appropriately.

This is under delphi 5, build 5.62

Oneeye
oneeyeAsked:
Who is Participating?
 
intheConnect With a Mentor Commented:
Hi

you cannot do this with TButton, since the windows pushbutton control always paints itself with the button color defined in control panel. But you can use an owner-drawn button and take over painting yourself. In fact there should be dozens of "TColorButton" etc. around already, search the usual Delphi sites.
or you could use a tbitbtn instead  


Delphi Super Page      http://sunsite.icm.edu.pl/delphi/
US mirror site:      http://www.cdrom.com/pub/delphi_www/ Torry's Delphi Pages    http://www.torry.ru/  


Regards Barry
0
 
intheCommented:
ps tbitbtn is on te additional tab of your delphi components,it is ownerdrawn so can have any color font you wish ..
0
 
duke_nCommented:
or tspeedbutton which takes the least memory of all above
0
 
oneeyeAuthor Commented:
Well, that explains it anyway... Much obliged
0
All Courses

From novice to tech pro — start learning today.