Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Font color in disabled memo

Posted on 2002-03-22
2
Medium Priority
?
631 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:bnz
2 Comments
 

Expert Comment

by:Rabster
ID: 6888410
This is set in the Controls unit. I think it may be possible to override the function using an instance of TCustomMemo.
0
 
LVL 17

Accepted Solution

by:
inthe earned 400 total points
ID: 6888423
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question