Oct 18, 2002 #1 RSieffert Programmer Joined Oct 10, 2002 Messages 8 Location 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 Joined Jul 4, 2002 Messages 826 Location 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 Joined Oct 10, 2002 Messages 8 Location 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 Joined Apr 29, 2002 Messages 228 Location US I think delphi just puts a wrapper on the windows object. Upvote 0 Downvote
Oct 18, 2002 #5 delphiman Programmer Joined Dec 13, 2001 Messages 422 Location 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 Joined Sep 4, 2002 Messages 106 Location US It's not Borland's bug, but Microsoft's. Upvote 0 Downvote