Font color in disabled memo

Hi

Is it possible to decide which font color that should be used in my disabled memo ? or is that something that windows decides and can't be changed
bnzAsked:
Who is Participating?
 
intheCommented:
hi,
yes it is stoppped by windows but you can cheat ,

put a panel on the form
put the memo on top of the panel and set align to client

on some buttons do:

procedure TForm1.Button1Click(Sender: TObject);
begin
 panel1.Enabled := false;
 memo1.Font.Color := clred;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
 memo1.Font.Color := clDefault;
 panel1.Enabled := True;
end;


works nicely :)
0
 
RabsterCommented:
This is set in the Controls unit. I think it may be possible to override the function using an instance of TCustomMemo.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.