A SIMPLE BUTTON????

WELL...I'M WORKING WITH A TBUTTON AND I WANT TO CHANGE THE FONT COLOR ,I HAVE USED

TBUTTON.TEXT.COLOR:=(THE COLOR THAT I WANT TO CHANGE);
TBUTTON.REFRESH;

BUT IT DOESN'T WORK.....

CAN YOU HELP ME???????????????? I ONLY WANT TO CHANGE THE COLOR, IT SOUNDS ESASY BUT IT ISN'T...

OK...I HOPE FOR YOUR ANSWERS...............
IammeAsked:
Who is Participating?
 
DrDelphiConnect With a Mentor Commented:
Use a BitButton instead.
0
 
RBertoraCommented:
Button.Font.Color := clred;

Rob;-)
0
 
EpsylonCommented:
Press 'Caps Lock' once  :o)
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
RBertoraCommented:
:-)
0
 
IammeAuthor Commented:
RBertora.................it doesn't work........it doesn's send me errors but doesn't function.........
0
 
IammeAuthor Commented:
RBertora.................it doesn't work........it doesn's send me errors but doesn't function.........
0
 
RBertoraCommented:
should work, lets see a snippet of your code.

Rob;-)
0
 
ahalyaCommented:
Iamme,

Button1.ParentFont := false;
Button1.Font.Color := whatever;

0
All Courses

From novice to tech pro — start learning today.