Oct 18, 2002 #1 RSieffert Programmer Oct 10, 2002 8 US Why doesn't the following change the button's color when the button is clicked? procedure TfrmStart.Button1Click(Sender: TObject); begin (Sender as TButton).Font.Color := clRed; end;
Why doesn't the following change the button's color when the button is clicked? procedure TfrmStart.Button1Click(Sender: TObject); begin (Sender as TButton).Font.Color := clRed; end;
Oct 18, 2002 1 #2 DelphiAaron Programmer Jul 4, 2002 826 AU it looks like a tbuttons font color cant be changed from black.. use a TBitBtn Upvote 0 Downvote
Oct 18, 2002 Thread starter #3 RSieffert Programmer Oct 10, 2002 8 US Your suggestion of using TBitBtn will solve the problem. I wonder why it doesn't work on TButton? Bug in Delphi? Upvote 0 Downvote
Your suggestion of using TBitBtn will solve the problem. I wonder why it doesn't work on TButton? Bug in Delphi?
Oct 18, 2002 #4 bbegley Programmer Apr 29, 2002 228 US I think delphi just puts a wrapper on the windows object. Upvote 0 Downvote
Oct 18, 2002 #5 delphiman Programmer Dec 13, 2001 422 ZA >I wonder why it doesn't work on TButton? Bug in Delphi? I have noticed this about Delphi all along. If it is a bug Borland doesn't appear to want to do anuthing about it. >Your suggestion of using TBitBtn will solve the problem. Correct! Upvote 0 Downvote
>I wonder why it doesn't work on TButton? Bug in Delphi? I have noticed this about Delphi all along. If it is a bug Borland doesn't appear to want to do anuthing about it. >Your suggestion of using TBitBtn will solve the problem. Correct!
Oct 18, 2002 #6 LorenPechtel Programmer Sep 4, 2002 106 US It's not Borland's bug, but Microsoft's. Upvote 0 Downvote